This signup form introduces user profile fields progressively to reduce initial friction while keeping the layout compact and readable in constrained UI previews.
HTML
<form class="signup-progressive">
<input type="email" placeholder="Email" />
<input type="password" placeholder="Password" />
<input type="text" placeholder="Username" />
<button type="submit">Create Account</button>
</form>CSS
.signup-progressive {
width: 200px;
padding: 0.9rem;
border-radius: 18px;
background: linear-gradient(180deg, #ffffff, #f9fafb);
box-shadow: 0 18px 36px rgba(0,0,0,0.14);
display: grid;
gap: 0.45rem;
text-align: center;
}
.signup-progressive input {
padding: 0.45rem;
border-radius: 10px;
border: 1px solid #e5e7eb;
font-size: 12px;
color: #111827;
transition: border-color 150ms ease, box-shadow 150ms ease;
}
.signup-progressive input:focus {
border-color: #6366f1;
box-shadow: 0 0 0 2px rgba(99,102,241,0.25);
outline: none;
}
.signup-progressive button {
margin-top: 0.25rem;
padding: 0.45rem;
border-radius: 999px;
border: none;
background: #6366f1;
color: #ffffff;
font-size: 12px;
cursor: pointer;
transition: transform 150ms ease;
}
.signup-progressive button:hover {
transform: translateY(-1px);
}
@media (prefers-color-scheme: dark) {
.signup-progressive {
background: linear-gradient(180deg, #111827, #020617);
}
.signup-progressive input {
background: #020617;
border-color: #374151;
color: #e5e7eb;
}
}Notes
- Reduces perceived signup effort
- Clean stacking for preview tiles
- Easily extensible to multi-step flows
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.
