This reset form emphasizes confirmation feedback after a reset request using visual state change instead of additional messaging.
HTML
<section class="reset-success">
<span class="reset-success__icon">✓</span>
<p class="reset-success__text">Reset link sent</p>
<button class="reset-success__action">Back to Login</button>
</section>CSS
.reset-success {
width: 200px;
padding: 1rem;
border-radius: 16px;
background: #ffffff;
box-shadow: 0 16px 32px rgba(0,0,0,0.12);
text-align: center;
display: grid;
gap: 0.5rem;
}
.reset-success__icon {
width: 32px;
height: 32px;
border-radius: 50%;
background: #22c55e;
color: #ffffff;
display: grid;
place-items: center;
font-size: 16px;
margin: 0 auto;
}
.reset-success__text {
font-size: 12px;
color: #374151;
}
.reset-success__action {
padding: 0.45rem;
border-radius: 999px;
border: none;
background: #6366f1;
color: #ffffff;
font-size: 12px;
cursor: pointer;
transition: transform 150ms ease;
}
.reset-success__action:hover {
transform: translateY(-1px);
}
@media (prefers-color-scheme: dark) {
.reset-success {
background: #111827;
color: #e5e7eb;
}
.reset-success__text {
color: #d1d5db;
}
}Notes
- Clear success-state communication
- Reduces user uncertainty
- Ideal for modal or card-based 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.
