Authentication Forms

Sign-in, registration, password-recovery and server-validation examples composed from forms, inputs, checkboxes, buttons, alerts and utility classes.

Sign in

Use a form-level alert for a credential error when no single field caused the failure. A generic message avoids revealing whether an account exists.

Sign in

Access your workspace

Password recovery

Ask only for the account identifier needed to start recovery. Return the same generic response whether the account exists so the form does not expose registered email addresses.

Reset your password

Request a secure reset link

Check your inbox

If an account matches the address, we will send password-reset instructions.

Back to sign in

Registration with server validation

On an unsuccessful server response, move focus to the error summary and link each message to its field. Preserve safe text and choice values so users only correct the errors; clear password fields instead of returning secrets in HTML.

Create an account

Correct the highlighted fields

An account already uses this email address.
Use at least 12 characters.
Choose a password that has not appeared in a known data breach.

Registration

Pair every required field with its visible label, and expose password guidance through aria-describedby. Give required checkboxes an explicit submission value.

Create an account

Start with your account details

Choose a strong password

Password managers can create and store one for you.

Use at least 12 characters.