For AI agents: the complete documentation index is available at https://wallarm.github.io/design-system/llms.txt, the full documentation bundle is available at https://wallarm.github.io/design-system/llms-full.txt, and this page is available as Markdown at https://wallarm.github.io/design-system/patterns/auth-page.md.

Auth page

Components: AnimatedBackground, Logo, Heading, Text, VStack, HStack, Field, FieldLabel

+18 more

FieldError, FieldGroup, Input, PasswordInput, OTPInput, PasswordComplexity, Button, Badge, Separator, RadioGroup, Radio, RadioIndicator, RadioLabel, Tag, Link, UtilityPage, Card, Toaster

An auth page is one 480px card, centered on AnimatedBackground, that holds one step of the sign-in flow.

When to use

NeedUseNot
Sign in with email and passwordAuth card: email step, then password stepA Dialog over the app
Pick one of several organizationsAuth card with RadioGroup variant='card'Select inside the card
Enter a reset code and a new passwordAuth card with OTPInput, PasswordInput, PasswordComplexitySix separate Inputs
Show a 404, 403, 500 or offline screenUtilityPageThe auth card
Show that the app loads after sign-inSplashScreenA spinner inside the auth card

There is no AuthCard, AuthPage, AuthLayout or LoginForm component; copy the first example into your app.

Rules

Layout and spacing

  • Never render the card inside Page or AppShell.
  • AnimatedBackground centers the card. Never center it yourself with fixed, absolute or translate.
  • Card: w-[480px] rounded-12 border-1 border-border-primary-light bg-bg-surface-1 px-48 pt-32 pb-80 flex flex-col gap-32.
  • Never add a shadow. Never use Card: it owns 16px padding.
  • Never use UtilityPage for an auth step: its title is styled as an error code. Never copy its w-[482px].
  • Never copy the AppShell LoginFlow story; it has a shadow.
  • Logo: Logo type='full' size='md' className='mb-32 self-start' (64px to the title).
  • Title block: VStack gap={0} align='start', Heading size='2xl' weight='medium' over Text size='sm' color='secondary'.
  • Form: VStack gap={16} or FieldGroup. Never wrap Field to add margins.
  • SSO and "Back" buttons: variant='secondary' color='neutral' fullWidth, stacked with VStack gap={8}. OR row: HStack gap={12} with two Separator className='flex-1' around a span className='text-xs text-text-tertiary'.
  • Never pass size to Button, Input or PasswordInput in the card. The 36px defaults are correct.
  • Never pass className to Field, Heading or Text. It is not applied.
  • If the card outgrows the viewport, add max-h-[calc(100dvh-64px)] overflow-y-auto.
  • Background: bg-component-app-shell-bg. There is no bg-card, bg-primary or bg-surface.

Flow

  • One card asks one thing. If a step needs two decisions, split it into two cards.
  • If the email domain uses SSO, redirect after the email step. Never show an empty password step.
  • If there are 6 or more organizations, show 5 and a ghost "Show more" Button under the group.

Form behavior

  • Use one <form onSubmit> per card; the primary Button is type='submit' fullWidth.
  • Give every other Button in the form type='button'; without it, the button submits.
  • Never put a bare FieldAction in a <form>: it submits the form. Use FieldAction asChild with an <a href>.
  • autoComplete: email, current-password (sign-in), new-password (reset).
  • Pass otp and groupSize={3} to OTPInput. The default groups 2 + 2 + 2.
  • Never add disabled={pending} next to loading; use disabled only for an incomplete form. Keep fields enabled while pending.
  • If sign-in fails, show FieldError under the password and keep both values. Never use an Alert, Banner or toast.
  • If the code is wrong, pass error to OTPInput and add a FieldError in the same Field.
  • Show the "LAST" badge on at most one button.
  • For the resend countdown, use Link disabled. FieldAction takes no disabled.
  • Import FieldAction and FieldIndicator from @wallarm-org/design-system/Field, useToast from @wallarm-org/design-system/Toast, icons from @wallarm-org/design-system/icons.

Copy

PartWriteNot
Sign-in title / subtitle"Welcome back!" / "Sign in to your account""Login"
Other titles"Select organization", "Reset password""Choose org"
Credentials error"Email or password is incorrect.""Wrong password", "User not found"
Submit"Sign in" on the password step, "Continue" elsewhere"Log in", "Submit", "Next"
SSO button"Continue with {provider}""Sign in with SSO"
Separator"OR""or continue with"
Organization subtitle"Choose which organization to sign in to.""Select one"
Reset subtitle"We've sent a code to {email}""Check your inbox"
Resend"Resend in {n}s", then "Resend code""Didn't get it?"
Reset toast"Password reset""Your password was reset successfully!"
Placeholders"you@your-company.com", "Enter""Email", "Password"
  • Never say which credential is wrong. Use sentence case.

Examples

The sign-in flow in the card shell every step renders inside.

The sign-in flow: an email step, then a password step with "Forgot password?", the OR row and SSO buttons, one of them marked "LAST". There is no backend, so "Sign in" always shows the wrong-credentials state; an SSO button shows its spinner on that button only.

A password field with "Forgot password?" as a link and the failed state.

The failed password step: the error names neither credential, the password stays in the field, and editing it clears the error.

The OR row and SSO buttons with the "LAST" badge.

A clicked SSO button shows its spinner; the other buttons stay as they are.

Organization select, collapsed to 5 rows with "Show more".

Organization select for a user in 7 organizations: card radios collapsed to 5 rows, with a ghost "Show more" button under the group.

The reset code with a resend countdown, and the password rules from passwordValidators.

Password reset: a 6-digit code with a resend countdown, a new password with its confirmation, and the full rule list from passwordValidators. "Continue" stays disabled until the code is complete and every rule is met; it then shows the "Password reset" toast.

States

StateShowExample component
Email stepEmail field and "Continue"Field + Input type='email'
Password stepPassword, "Forgot password?", OR, SSOPasswordInput, FieldAction asChild
SubmittingSpinner on "Sign in"Button loading
Wrong credentialsRed password border, error lineField invalid, PasswordInput error, FieldError
Last used method"LAST" on one buttonBadge size='small' color='blue'
SSO redirectSpinner on the clicked button onlyButton loading
Organization chosenBuilding icon, name, "Change" above the fieldsTag + Link type='muted' size='sm'
6+ organizations5 rows, then "Show more" / "Show less"Ghost Button
Resend countdown"Resend in 55s", disabledLink disabled
Password rulesDot for unmet, check and strike-through for metPasswordComplexity
Reset doneSign-in card, then a toasttoast.create({ title: 'Password reset', type: 'default' })

What your app owns

  • Step routing, the password-or-SSO lookup, credential checks, pending and error state, SSO redirects, the resend timer, code verification and the reset email.
  • Storing the last-used method (cookie or localStorage).
  • One Toaster at the app root.

These do not exist:

  • A variant on UtilityPage.
  • A label prop on Separator, or a badge prop on Button.
  • A "Show more" row in RadioGroup. The card variant shows separate cards, not one joined list.
  • A clear (X) button on Input, or a tertiary Text color.
  • An outline for the last-used button. Render the badge only.
  • A non-focusable Tag. Accept the extra tab stop.