This login form surfaces device trust context during authentication, commonly used in enterprise and security-focused interfaces.
HTML
<form class="login-device">
<p class="login-device__hint">Recognized device</p>
<input type="password" placeholder="Password">
<button type="submit">Continue</button>
</form>CSS
.login-device {
width: 200px;
padding: 0.75rem;
border-radius: 18px;
background: #ffffff;
display: grid;
gap: 0.4rem;
border: 1px solid #e5e7eb;
text-align: center;
}
.login-device__hint {
font-size: 11px;
color: #059669;
}
.login-device input {
padding: 0.45rem 0.5rem;
border-radius: 10px;
border: 1px solid #d1d5db;
font-size: 12px;
}
.login-device button {
padding: 0.4rem;
border-radius: 999px;
border: none;
background: #2563eb;
color: #ffffff;
font-size: 12px;
}
@media (prefers-color-scheme: dark) {
.login-device {
background: #27272a;
border-color: #3f3f46;
}
.login-device__hint {
color: #6ee7b7;
}
.login-device input {
background: #09090b;
color: #f4f4f5;
border-color: #3f3f46;
}
}Notes
- Trust context surfaced inline
- Minimal input surface
- Common in enterprise 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.
