Responsive form page — centered card, mobile-friendly
A complete login/register page: centered card, responsive, branded. The pattern every auth page uses.
body is a flex container, centered — the card is always in the middle of the screen. background: linear-gradient — a nice purple gradient. Change it to match your brand. min-height: 100vh + padding: 1rem — fills the viewport, with a small margin on mobile. max-width: 400px + width: 100% — responsive: 400px on desktop, full width (minus padding) on mobile. box-shadow: 0 20px 60px — a big soft shadow makes the card 'float' above the gradient. border-radius: 16px — generous rounding, feels modern. Focus ring color matches the gradient (#667eea) — consistent branding. width: 100% on the button — full-width button, common in auth forms. box-sizing: border-box on inputs — critical! Without it, padding makes inputs wider than 100%.
-
Change the gradient from #667eea #764ba2 to #a0c000 #58a6ff→ green-to-blue gradient -
Change max-width: 400px to 350px→ narrower card -
Change border-radius: 16px to 8px→ less rounded — more 'corporate' -
Change the focus color from #667eea to #a0c000→ focus ring becomes green -
Change box-shadow: 0 20px 60px to 0 4px 12px→ smaller shadow — card feels flatter