How is light bent from air into water?

Light is bent towards the normal as it enters from Air (Rare Medium) to Water (Denser Medium) travelling in a straight line.