codepenz
← Back to catalog

Login Form with Floating Placeholder

A dark glassy login card whose labels sit inside the fields until you focus or fill them, then float up into a small cyan caption — pure CSS via the :focus/:valid ~ label sibling selector, no JavaScript.

Formscssformsfloating-labellogin
Added July 9, 2026