Actually having it inside a complete example of the login page made a huge difference; placing the bits you're focusing on in a proper context helps to understand how best to integrate different parts.
Fluid Dynamicist at the core, lover of chaos theory. Experienced scientist, developer and team lead working in wind energy — from startups to heavy industry.