aligning the text in the middle (vertically)

the 40px just made it stick to the bottom. however, with 1em insted you can change the height of the input and it will always stay in the middle.