A compact login form that separates identity and credential steps to reduce cognitive load.
HTML
<form class="login-step">
<input type="email" placeholder="Email">
<button type="submit">Continue</button>
</form>CSS
.login-step {
width: 200px;
padding: 0.85rem;
border-radius: 18px;
background: #ffffff;
display: grid;
gap: 0.5rem;
box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}
.login-step input {
padding: 0.45rem 0.5rem;
border-radius: 10px;
border: 1px solid #e5e7eb;
font-size: 12px;
}
.login-step button {
padding: 0.45rem;
border-radius: 999px;
border: none;
background: #6366f1;
color: #ffffff;
font-size: 12px;
cursor: pointer;
transition: transform 150ms ease;
}
.login-step button:hover {
transform: translateY(-1px);
}
@media (prefers-color-scheme: dark) {
.login-step {
background: #020617;
}
.login-step input {
background: #020617;
color: #e5e7eb;
border-color: #374151;
}
}Notes
- Step-based auth flow
- Minimal initial input
- Works well for SSO-first apps
Preview styles shown. Production customization recommended.
Browse More UI Components
Explore hundreds of reusable HTML & CSS UI components built for modern web projects.
Discover buttons, cards, loaders, animations, layouts, and more all with live previews and clean, copy-paste code.
