This login form emphasizes security and trust by surfacing reassurance signals alongside the primary authentication action.
HTML
<form class="login-trust">
<input type="email" placeholder="Email" />
<input type="password" placeholder="Password" />
<span class="login-trust__badge">Secure login</span>
<button type="submit">Continue</button>
</form>CSS
.login-trust {
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;
}
.login-trust input {
padding: 0.45rem;
border-radius: 10px;
border: 1px solid #e5e7eb;
font-size: 12px;
color: #111827;
}
.login-trust__badge {
font-size: 11px;
font-weight: 600;
color: #16a34a;
}
.login-trust button {
padding: 0.45rem;
border-radius: 999px;
border: none;
background: #22c55e;
color: #ffffff;
font-size: 12px;
cursor: pointer;
transition: transform 150ms ease;
}
.login-trust button:hover {
transform: translateY(-1px);
}
@media (prefers-color-scheme: dark) {
.login-trust {
background: linear-gradient(180deg, #111827, #020617);
}
.login-trust input {
background: #020617;
border-color: #374151;
color: #e5e7eb;
}
.login-trust__badge {
color: #4ade80;
}
}Notes
- Reinforces security perception
- No extra steps added
- Ideal for enterprise auth
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.
