Time Bound Password Reset Prompt

A reset form that communicates expiration timing to set user expectations clearly.

HTML

<form class="reset-timer">
  <span class="reset-timer__text">Link expires in 10 minutes</span>
  <button type="submit">Resend</button>
</form>

CSS

.reset-timer {
  width: 200px;
  padding: 0.75rem;
  border-radius: 16px;
  background: #f9fafb;
  display: grid;
  gap: 0.4rem;
  text-align: center;
}

.reset-timer__text {
  font-size: 11px;
  color: #6b7280;
}

.reset-timer button {
  padding: 0.4rem;
  border-radius: 999px;
  border: none;
  background: #111827;
  color: #ffffff;
  font-size: 12px;
}

@media (prefers-color-scheme: dark) {
  .reset-timer {
    background: #020617;
  }

  .reset-timer__text {
    color: #9ca3af;
  }
}

Notes

  • Time expectation clarity
  • No countdown animation
  • Ideal for email-based resets

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.

Leave a Reply

Your email address will not be published. Required fields are marked *