This template demonstrates complete authentication flows for government services, including sign in, account creation, password recovery, and two-factor authentication.
Sign in
A centered sign-in form for government services. Includes email/password fields, remember me checkbox, and links to password recovery and account creation.
Sign in to your account
Don't have an account? Create one now
Create an account
A registration form for new users. Collects name, email, and password with confirmation.
Create your account
Already have an account? Sign in
Forgot password
A password recovery form that sends a reset link to the user's email address.
Reset your password
Enter your email address and we'll send you a link to reset your password.
Remember your password? Sign in
Two-factor authentication
A verification code entry form for two-factor authentication. The user receives a 6-digit code via email or SMS.
Verify your identity
We sent a 6-digit verification code to j***@email.gov
MFA code entry states
Loading state
Sending verification code...
Success state
Verification successful
You have been authenticated. Redirecting to your dashboard...
Error state
Verification failed
The code you entered is incorrect or has expired. Please try again.
Session management
Session expiring warning
Session expiring: Your session will expire in 5 minutes. or sign out now.
Session expired
Your session has expired. Please sign in again to continue.
Accessibility considerations
- Use proper
autocompleteattributes for username and password fields - Associate error messages with form fields using
aria-describedby - Use
aria-invalid="true"for fields with validation errors - Provide clear instructions for MFA code format (6 digits, numeric only)
- Ensure form labels are properly associated with inputs
- Use
role="alert"for error messages to announce them to screen readers - Provide alternative authentication methods for users who cannot receive SMS or email