The 'height' property is what causes vertical shifts in inputs. To determine input heights, one needs to use line-height, padding and border.
To check, append to the snippet:
input { height: unset; }