Authentication
Authentication flows are the first interaction users have with your product. A smooth, clear auth experience builds trust and reduces drop-off. This pattern covers sign in, sign up, password reset, and MFA verification.
Components used
Anatomy
Best practices
Sign in
Email + Password fields, "Remember me" checkbox, "Forgot password?" link below the form. Primary button: "Sign in". Below the form: "Don't have an account? Sign up" link. Optional social provider buttons separated by "or" divider.
Sign up
Name + Email + Password fields. Show password strength meter as the user types. Terms of service checkbox (required). Primary button: "Create account". Below: "Already have an account? Sign in" link.
Password reset
Three-step flow: (1) Enter email → "Send reset link", (2) Enter OTP code from email, (3) Enter new password + confirm. Show Alert for success/error states at each step. Allow "Back to sign in" at every step.
Loading states
When the form submits, show a Spinner inside the Button and disable all form fields. This prevents duplicate submissions and gives clear feedback. On error, re-enable the form and show an Alert with the error message.
Layout
Use Split Page Layout on desktop — brand/illustration on the left, form on the right. On mobile, hide the illustration panel and show only the form card, centered. Keep the form narrow (max 400px) for comfortable reading.