When dealing with door alignment the rotation or pivot point of the hinge is the main factor. When you adjust or bend a hinge, think about what that will do to the pivot point. If the whole door needs to be moved to the rear, figure out how to move both upper and lower pivot points to the rear.
The latch is the other factor. It affects the up/down and in/out on the latching end of the door. Two of the three dimensions. While the hinges work together in all three: up/down, in/out, front/rear.
Ideally, the door should not be raised or lowered by the latch as it is closed. It should just click shut. Most of the time, life is not ideal.