Two-Factor Auth Card
A 2FA code entry card with a large spaced code input.
Requires Bootstrap 5. Add the CDN tags below to your page (styles in
<head>, scripts before </body>). The downloaded file already includes them.<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"><script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script><div class="card border-0 shadow text-center" style="max-width:340px">
<div class="card-body p-4">
<div class="fs-1 mb-2">🛡️</div>
<h6 class="fw-bold">Two-factor authentication</h6>
<p class="text-secondary small mb-3">Enter the code from your authenticator app.</p>
<input class="form-control form-control-lg text-center fw-bold mb-3" placeholder="000000" maxlength="6" style="letter-spacing:8px">
<button class="btn btn-primary w-100 mb-2">Verify</button>
<a href="#" class="small text-decoration-none">Use a backup code</a>
</div>
</div>Free to use.This component uses Bootstrap 5 (linked above). Copy any file, or download a ready-to-open .html page with the CDN links already included.