Skip to content
OAIT Design System

Design system / Patterns

Authentication

Sign in, create an account, recover access, set up a new account, confirm it is you, and allow an app: one card on a tonal panel, one step at a time. Template 2 of 11 (canonical §11, D-BCP-24).

Used by every product's sign-in, create-account, forgot-password, reset, setup, step-up, and consent screens. Global ID's AuthFrame is the model: the most complete sign-in, and the one tested with the dummy-proof rules (D-BCP-24).

Purpose

  • Get a person into their account with the least effort and no puzzles: face or fingerprint first wherever passkeys exist, a password and a code as the fallback, never a CAPTCHA (D-BCP-25, canonical §13).
  • Make Global ID the way in. Every product offers "Sign in with Global ID", unmodified, directly under its filled "Sign in" button (D-BCP-15, D-CAI-19, D-BCP-43).
  • Keep one shape for every step of every product, so a person who has signed in once recognizes every other sign-in (D-BCP-24).
  • Mobile first, no scrolling (D-BCP-43). The panel starts 8px under the header (16px from 640px). The sign-in card has 24px padding on a phone and 40px from 640px, sits in the middle of the panel, and the whole page fits a window 640px tall or more without scrolling (the card is 494px tall on a phone and 526px on a desktop). A shorter window, an open phone keyboard, or the error banner on a short phone (it adds 62 to 82px) scrolls the whole page; nothing is clipped or pinned (D-LAY-17). The email field's placeholder is "name@gu.edu.lb", the University's address form, and the password's is "Your password"; placeholders are examples and never replace the labels. Saved passkeys are offered by the email field's autofill.
  • One sign-in page (D-BCP-41). The sign-in screen is the same page on every product: the same header (lock-up and language switcher only), panel, card, order, and words. A product changes its lock-up and its name in "New to {Product}? Create account", nothing else. A product with no accounts of its own shows the heading and Sign in with Global ID alone. No other provider's button and no product-specific entry (a guest code, a role switch) sits on it; those live on the product's own pages. Global ID's own sign-in, where the kit leads, keeps the same frame and card with its own steps.
  • How people arrive. Every site header carries a sign-in pair: "Sign in", which opens this page, and the Global ID circle, which starts sign-in with Global ID at once (D-CSN-53, D-CSN-55). A person also lands here when that is cancelled or fails.

When to use

Screen What it is
Sign in The first step of a session, or after "That took too long. Sign in again."
Create account A new person, including a role choice when the product has roles
Forgot password, reset Recovery by email link
Setup The first visit from an invitation link: save face or fingerprint, optionally a password, a code app, and backup codes
Step-up "Confirm it’s you" before an area that needs a recent check (admin areas within 15 minutes)
Consent "Let {app} use your Global ID?" when another product asks to sign a person in
A link that cannot be used "This link has expired. Ask the ID office for a new one." inside the same card

Use something else when:

Need Use
Change a password, add a passkey, sign out of a device, from inside the account Forms and settings (one-field edits, confirm modals)
A page that is missing or broken, outside a sign-in flow Empty, error, and offline
A long form (a contact form, an application) Forms and settings; a contact form uses the 460px column of Legal and help

Structure

The page is a document page that scrolls as a whole, so the phone keyboard never hides the focused field; nothing sits in a fixed-height box (D-LAY-17).

Desktop (from 1024px)

# Block What it holds Component
0 Skip link "Skip to content", to <main id="main" tabindex="-1"> Link
1 Header The 72px sticky glass site header, spanning the window with the gutter (the panel under it is a full-bleed frame): the lock-up (one link home) at the start, the language switcher at the end. No section links, no menu button, no CTA Site header, Logo lock-up, Language switcher
2 Panel (<main>) A tonal panel (surface-container-low, rounded-hero) that fills the rest of the window height, 16px from the window's sides, with four kit shapes in the four pastels, cropped by its edge and hidden from assistive technology (aria-hidden="true") Panel
3 Card One floating form card, centered on the inline axis and 56px under the panel's top edge: rounded-sheet, card-elevated-container, shadow-elevation-1, at most 460px wide (max-w-form), padded 40px, its blocks 24px apart Card: floating
3a h1 The step title, text-headline-md, a label without a full stop; it takes focus when the step changes —
3b Intro One or two sentences, text-body-lg text-on-surface-variant, 8px under the h1 —
3c Error banner Only after a failed attempt: an error banner, role="alert" Banner
3d Global ID "Sign in with Global ID" (the portable kit), directly under the main action, 12px below it, with no "or" divider (D-BCP-43). Never in Global ID itself Sign in with Global ID
3e Fields Label above, 56px, 20px apart Text field
3f Main action One full-width filled lg button Button
3g Quiet options Links: "Forgot your password?" as a standalone link between the password field and the main action; "New to Global Jobs? Create account" as the card's last line Link
4 Below the panel The "Privacy notice" link, centered Link

(canonical §11 row 2, §1.8, §10.4, §10.10; D-BCP-24, D-BCP-15, D-CAI-19, D-ARC-15, C-8)

Phone (below 640px)

# Block What changes
1 Header The S lock-up (32px mark, name, no sub-line); the language switcher stays in the bar because this header has no menu: a 48px icon button for three languages, the other language's name for two (D-BCP-24, D-CSN-39)
2 Panel 8px from the window edges plus the side safe-area inset; padding 32px block, 8px inline
3 Card The full width of the panel: 20px inline padding, 40px block; the main action stays full width; the card grows with its content and the page scrolls
4 Below the panel The privacy link, then the bottom safe-area inset

In between (640–1023px)

  • From 640px the panel sits 16px from the window edges with 56px block and 16px inline padding; the card takes its 40px padding and stops growing at 460px (C-8, D-LAY-11).
  • The header shows the M lock-up with its sub-line from 640px; a three-language switcher shows its label from 768px (D-ARC-28, D-CSN-39).
  • Nothing else changes: one column at every width.

Step by step

Each step is the same card with a new h1. When a step replaces another, the new h1 takes focus (D-BCP-25).

Flow Steps
Sign in, every product (the same page, D-BCP-41, D-BCP-43) "Sign in" · Email address (placeholder "name@gu.edu.lb") · Password (placeholder "Your password", with "Show password") · "Forgot your password?" · "Sign in" · the kit · "New to {Product}? Create account"
Sign in, Global ID "Sign in with your Global ID" · "One account for every Global University app." · Email · "Sign in with face or fingerprint" with "No password needed. Also called a passkey." under it · "Use password instead". Then the password step: "Sign in with your password" · Email · Password · "Sign in" · "Use face or fingerprint instead". With a password, a code step follows: "Enter your code" · "6-digit code" · "Verify" · "Use a backup code instead"
Create account A role choice first when the product has roles (choice cards: "I’m looking for a job" / "I’m hiring"), then the form, a consent checkbox that links the privacy notice (in a new tab, announced), then a success step that shows what was created (the Global ID number in font-mono text-code-md) with one main action
Recovery One email field and "Send reset link" with a help sentence, then "Check your email" (the same words whether or not the account exists), then a new password, then done. An expired reset link: the heading "Request a new reset link" and the button "Send a new reset link" (Global ID)
Setup (from an invitation) "Set up your Global ID" · "Set up with face or fingerprint" · "Waiting for your device…" · optionally "Add a password too?" ("Add a password" or "Skip for now") · "Save your backup codes" · "You’re all set, {name}" · "Go to Home"
Step-up "Confirm it’s you" · why it asks ("The admin area asks for your face or fingerprint again after 15 minutes.") · "Confirm with face or fingerprint"
Consent The app's tile and Global ID's mark · "Let {app} use your Global ID?" · a "Signed in as" box · "{app} will see:" with an icon and a reason for each item · two 56px buttons in one row, "Cancel" (outlined lg) then "Allow" (filled lg with a leading check), the row wrapping with "Allow" on top on a narrow card · "Nothing is shared until you choose Allow."

(D-BCP-15, D-BCP-20, D-BCP-23, D-BCP-24; the consent screen as in Global ID's approved mock-up)

Product note (Global ID): its newest code opens sign-in on the password step, as production does; only an app that asks for face or fingerprint opens it on the passkey step (R-38). It also words two of these lines differently and changes the setup order. The passkey step’s intro reads "Use your password or a passkey to sign in." and the passkey hint "Use a passkey you have already added on a device."; setup asks for a password first and a passkey within seven days ("Add a passkey"). New copy keeps "face or fingerprint" before "passkey" (canonical §12.1), as the lines in the table do.

Skeleton

A family product's sign-in with the reference classes, as in sign-in.html. The kit's logo symbol is included once per page (Sign in with Global ID).

<!doctype html>
<html lang="en" dir="ltr" data-theme="light">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
  <title>Sign in · Global Jobs</title>
  <meta name="robots" content="noindex">
</head>
<body>
  <a class="oa-skip-link" href="#main">Skip to content</a>

  <header class="oa-site-header">
    <div class="oa-site-header__inner"><!-- page layout: the frame spans the window (gutter only) -->
      <a class="oa-lockup" href="/en">…mark and name…</a>
      <div class="oa-site-header__actions">…language switcher…</div>
    </div>
  </header>

  <main id="main" tabindex="-1" class="oa-panel oa-panel--tonal"><!-- page layout: auth frame margins and padding, fills the height, centers the card on both axes -->
    <span class="oa-shape oa-shape--circle oa-shape--peach" aria-hidden="true"></span>
    …three more kit shapes…
    <div class="oa-card oa-card--floating">
      <div class="oa-stack oa-stack--tight">
        <h1 class="oa-text-headline-md" id="step-title" tabindex="-1">Sign in</h1>
        <p class="oa-card__body">…one or two sentences…</p>
      </div>
      <div class="oa-banner oa-banner--error" role="alert">…only after a failed attempt…</div>
      <form class="oa-stack oa-stack--fields" action="…" method="post" novalidate>
        <div class="oa-field">
          <label class="oa-field__label" for="email">Email address</label>
          <div class="oa-field__control" dir="ltr">
            <input class="oa-field__input" id="email" name="email" type="email" autocomplete="username webauthn" autocapitalize="none" spellcheck="false" placeholder="name@gu.edu.lb">
          </div>
        </div>
        <div class="oa-field">
          <label class="oa-field__label" for="password">Password</label>
          <div class="oa-field__control" dir="ltr">
            <input class="oa-field__input" id="password" name="password" type="password" autocomplete="current-password" placeholder="Your password">
            <button class="oa-icon-btn oa-field__trailing" type="button" aria-label="Show password" aria-pressed="false" aria-controls="password"><span class="oa-icon" aria-hidden="true" translate="no">visibility</span></button>
          </div>
        </div>
        <!-- page layout: -14px block margins, so the 48px link takes 20px of the column -->
        <p><a class="oa-link oa-link--standalone" href="…"><span class="oa-link__label">Forgot your password?</span></a></p>
        <button class="oa-btn oa-btn--filled oa-btn--lg oa-btn--wide" type="submit">Sign in</button>
      </form>
      <!-- directly under "Sign in", 12px below it (D-BCP-43) -->
      <button class="oa-gid-kit" type="button" data-global-id-sign-in aria-label="Sign in with Global ID"><svg class="oa-gid-kit__logo" aria-hidden="true" focusable="false"><use href="#oa-gid-kit-logo"/></svg><span class="oa-gid-kit__label" lang="en" translate="no">Global ID</span></button>
      <p class="oa-text-body-md">New to <bdi lang="en" translate="no">Global Jobs</bdi>? <a class="oa-link" href="…">Create account</a></p>
    </div>
  </main>

  <footer class="oa-footer oa-footer--app"><!-- page layout: centered, 8px under the panel -->
    <ul class="oa-footer__legal-links"><li><a class="oa-footer__legal-link" href="…">Privacy notice</a></li></ul>
  </footer>
  <div class="oa-snackbar-host" role="status" aria-live="polite"></div>
</body>
</html>

Tailwind CSS v4 (canonical §11 row 2, §10.10; D-LAY-11, C-8):

Region Tailwind v4
Body flex min-h-dvh flex-col bg-surface text-on-surface pb-[calc(1rem+env(safe-area-inset-bottom))]
Header frame flex h-18 w-full items-center gap-3 px-gutter sm:px-gutter-medium inside the sticky glass bar (sticky top-0 z-30 short:static bg-surface/80 backdrop-blur-xl)
Panel (<main>) relative isolate flex flex-1 flex-col items-center justify-center overflow-hidden rounded-hero bg-surface-container-low mx-[calc(0.5rem+env(safe-area-inset-left))] mt-2 px-2 py-1 sm:mx-4 sm:mt-4 sm:px-4 sm:py-8 (8px under the header, 16px from 640px, so the bar and the pattern never touch, D-BCP-43)
Card relative flex w-full max-w-form flex-col gap-4 rounded-sheet border border-transparent bg-card-elevated-container p-6 shadow-elevation-1 sm:p-10 (the sign-in page, D-BCP-43: 24px padding on a phone, 40px from 640px, 16px between parts; the kit -mt-1 so it sits 12px under "Sign in"; the other steps keep gap-stack-loose)
Step title text-headline-md (with tabindex="-1"); the title and the intro sit together in flex flex-col gap-stack-tight
Intro text-body-lg text-on-surface-variant
Form flex flex-col gap-fields (gap-4 on the sign-in page; its "Forgot your password?" row takes -my-3.5, so the 48px link sits 16px from the field and from the button)
Main action the button recipe for filled lg with wide (full width, 56px, the label may wrap to two lines)
Shapes pointer-events-none absolute -z-1 rounded-full bg-pastel-peach opacity-(--opacity-decor) print:hidden, one per pastel, placed with logical insets (Imagery: the decoration kit)

Components used

Link (skip link, privacy link, quiet options) · Site header · Logo lock-up · Language switcher · Panel · Card (floating) · Sign in with Global ID · Text field (email, password with show and hide, one-time code, phone) · Checkbox, radio, and switch (consent) · Choice card (roles) · Button · Banner (error, warning for link problems) · Progress (spinner while waiting) · Avatar and Logo lock-up (consent tiles) · Snackbar (host).

Content

Task-screen tone: literal, step by step, one idea per sentence (D-BCP-16). "Face or fingerprint" always comes before "passkey"; the word "passkey" appears beside it where people must recognize it (canonical §12.1, §13).

Element Rule Real lines
Step title A label, no full stop; says the step ("Sign in", never "Welcome Back" or "Log in") (D-BCP-17, D-BCP-21) "Sign in" (Jobs) · "Sign in with your password" · "Forgot your password?" · "Confirm it’s you" · "Enter your code" (Global ID)
Intro One or two sentences, what to do "One account for every Global University app." · "Enter the email address on your Global ID account." (Global ID)
Field labels Visible above the field; format help goes in helper text under the field; a placeholder holds at most "For example: …" and is never the only hint (D-CAI-09, D-CAI-10) "Email address" · "Password" · "6-digit code" · "Email or Global ID number" with the helper "Guests can also use their phone number. If it is shared, use your Global ID number."
Main action Verb first, the result; never "Submit" or "Log in" "Sign in" · "Send reset link" · "Verify" · "Confirm with face or fingerprint" · "Create password"
Passkey wording Plain words, the technical name second "Sign in with face or fingerprint" + "No password needed. Also called a passkey."
Quiet options Text buttons or links that say where they go "Use face or fingerprint instead" · "Use password instead" · "Forgot your password?" · "Back to sign in" · "New to Global Jobs? Create account"
Kit Visible label "Global ID" (never translated); the accessible name localized "Sign in with Global ID" · "تسجيل الدخول باستخدام ⁦Global ID⁩" · "Se connecter avec Global ID"
Errors What happened, what to do; calm; never "invalid", "please", or blame; never say whether an account exists (D-BCP-20) "That email or password isn’t right." · "Too many tries. Wait a minute and try again." · "That code didn’t work. Type the one showing now." · "Your face or fingerprint wasn’t checked. Try again."
Not allowed Why, and who helps "This link doesn’t work. Ask the ID office for a new one." · "Your Global ID isn’t active. Ask the ID office for help."
Waiting Verb-ing and the ellipsis character "Waiting for your device…" · "Sending…" · "Taking you to your Global ID…"
Consent A question naming the app; what it will see and why; what it will never see; a reassurance line under the buttons (D-BCP-23) "Let Library use your Global ID?" · "Library will see:" · "Your university email" + "For due-date reminders" · "Library will never see your password, grades, or payments." · "Nothing is shared until you choose Allow." (Global ID mock-up)
Create account The button is "Create account", never "Sign up" or "Register" (D-BCP-21) "Create your free account" · "First, tell us what you want to do." (Jobs)

Arabic and French from Global ID's catalog (typographic apostrophes applied): the main action "تسجيل الدخول" / "Se connecter"; the passkey action "تسجيل الدخول بالوجه أو البصمة" / "Se connecter avec le visage ou l’empreinte"; the wrong-password error "البريد الإلكتروني أو كلمة المرور غير صحيحة." / "Cet e-mail ou ce mot de passe n’est pas correct."; step-up "التأكيد بالوجه أو البصمة" / "Confirmer avec le visage ou l’empreinte"; "Back to sign in" "العودة إلى تسجيل الدخول" / "Retour à la connexion". Arabic action labels are verbal nouns (D-BCP-22). The "or" divider reads "أو" and "ou" (native review). English lists take the serial comma; the consent mock-up writes "your password, grades or payments" without it today (D-BCP-17).

States

State What the card does
Ready The h1, the intro, empty fields, the main action enabled. Never disable the main action to signal an empty or invalid form (D-CAI-06)
Waiting The main action keeps its colors, width, and focus, shows a spinner and a progress label, aria-busy="true" and aria-disabled="true", and ignores presses: "Waiting for your device…" during a passkey ceremony, "Sending…" for a reset link (D-CAI-06)
Field error Checked on submit, then live: the error border, a filled 16px error icon, and the message under the field, with aria-invalid="true" and aria-describedby; focus moves to the first invalid field (D-CAI-10)
Failed attempt An error banner under the intro, role="alert", with what to do; the fields keep their values, the password is cleared (Global ID). Locked out: "Too many tries. Try again in {minutes} minutes, or sign in with face or fingerprint." (an ICU plural)
Link problem The step's h1 and a warning notice with the link_off icon and the message; nothing to press, the message says where a new link comes from (Global ID)
Success The next step replaces the card's content and its h1 takes focus; at the end a sentence such as "Taking you to your Global ID…" while the next page loads. Recovery ends on "Check your email" whatever the address
Timed out "That took too long. Sign in again." returns to the first step with the banner

Accessibility

  • Headings and focus. One h1 per step, focused (tabindex="-1") when the step changes so a screen reader starts the new step from its title; after a failed submit, focus goes to the first invalid field, or the banner when no field is at fault (canonical §13, D-BCP-25).
  • Live messages. The error banner is role="alert"; field messages are tied with aria-describedby, never live regions; the page's status region is mounted at load (D-CAI-10).
  • Accessible authentication (WCAG 3.3.8). No CAPTCHA puzzles: a honeypot field and a rate limit instead. Paste is allowed in every field. autocomplete on every field: username, current-password, new-password, one-time-code (Global ID adds webauthn to the email field so the browser can offer a saved passkey) (canonical §13).
  • Honeypot. One visually hidden field ("Leave this empty"), aria-hidden="true", tabindex="-1", autocomplete off; never shown to a person (Global ID). In the reference CSS its wrapper is <div class="oa-visually-hidden oa-honeypot" aria-hidden="true">; .oa-honeypot drops the input's browser border and fill.
  • Password. A 48px "Show password" icon button inside the field: aria-pressed, the same name in both states, aria-controls the input, visibility / visibility_off (D-CAI-11).
  • One-time code. One field with inputmode="numeric" and one-time-code, never split boxes (D-CAI-11).
  • The kit. A real <button> with its localized accessible name; its visible label "Global ID" is part of that name, so voice control works (WCAG 2.5.3) (D-CAI-19).
  • Targets and contrast. 48px for every control, 56px for the main action; field edges outline at 3:1 (canonical §13).
  • Redundant entry. Never ask twice in one flow: the email typed on the passkey step fills the password step (WCAG 3.3.7).
  • Timing. Say when a step timed out and offer the way back; never sign a person out without saying why (canonical §13).

RTL and languages

  • The card is centered, so only its content mirrors: labels and text start at the right, the "Show password" button sits at the inline end, the back arrow (arrow_back) turns (D-BCP-30).
  • Email, password, code, and phone inputs keep dir="ltr" in every language; name fields hold user content and take dir="auto", so a Latin name typed on an Arabic page keeps its order; the kit's label "Global ID" stays left to right (D-BCP-30, D-CAI-19).
  • Product names in Arabic sentences sit in <bdi lang="en" translate="no">, in an accessible name between U+2066 and U+2069 (D-BCP-03).
  • Kit shapes are placed with logical insets, so they mirror with the page; Global ID's AuthFrame places them with left and right today (D-BCP-37, D-BCP-30; ID-2.40).
  • French runs about 26% longer, and short labels up to 32%: "Utiliser plutôt le visage ou l’empreinte" must wrap, never truncate, at 360px (D-TYP-15).
  • The language switcher keeps the step: switching language re-renders the same step with the same values where possible (D-BCP-29).

Do and don't

Do Don't
Put "Sign in with Global ID" directly under the filled "Sign in" Put the Global ID button first behind an "or" divider, or last under "or continue with" (Games today)
Use the kit unmodified, white or dark Draw your own Global ID button (Games' drifted copy, GG-1.13)
One full-width filled lg main action per step A dark submit button, or a second filled button such as a colored "Guest QR"
"Sign in" without an arrow "Sign in →" (submits never carry arrows, GG-2.22)
Put format help under the field ("Staff accounts: use your assigned phone number as the username.") Put instructions in the placeholder ("you@example.com or 70123456")
One centered card on the tonal panel, the header above it A story aside beside the form (Games' split) or a header-less card with no <main> (Tamakkan's login)
"Sign in" and "Create account" "Sign In", "Sign Up", "Log in", or "Register" as a button
"That email or password isn’t right." "Invalid credentials", "Please try again", or "No account with that email"
Offer "face or fingerprint" and name the passkey second Lead with "passkey", "WebAuthn", or "biometrics"

Best current example

Global ID, /sign-in, at 1440px and 390px (screenshots at both widths, and the /forgot-password 390px screenshot; see the Global ID audit):

  • A full-width header with the Global ID lock-up ("Global ID", "Global University") and the "English" language menu; on phones only the mark, the name, and the translate icon button.
  • A tonal panel with four pastel shapes cropped by its edges, and one white card with 28px corners and a soft shadow: "Sign in with your password", "Email or Global ID number" with its helper line, "Password", a full-width orange "Sign in", the text button "Use face or fingerprint instead" with its fingerprint icon, then "Forgot your password?" and "Need a new guest verification link?".
  • "Privacy notice" under the panel; on phones the card takes the width less 16px on each side and the page scrolls as a whole.

What it still has to change: the notched 4px fields → label above at rounded-field (ID-1.15, client call), the fields' ring (ID-1.07), a skip link (ID-1.02), the filled button's edge in forced colors (ID-1.09), the card padding clamp() → px-5 sm:px-10 py-10 (ID-2.27), a show and hide toggle on the password (ID-2.18), and "Register" → "Create account" after the client's copy review (ID-2.33). Its current source opens on the same password step; only an app that asks for face or fingerprint opens sign-in on the passkey step ("Sign in with your Global ID", "Sign in with face or fingerprint") (R-38).

For the kit-first order, see Global Jobs, /en/sign-in (1440px screenshot): the white Global ID pill, "or", "Email address", "Password" with "Show", "Forgot your password?", the full-width "Sign in", and "New to Global Jobs? Create account". It still sits in a bare 512px column instead of the panel and card, and its kit keeps an English name on /ar (JB-1.02).

Reference template

reference/templates/sign-in.html is the one sign-in page (D-BCP-41, D-BCP-43), with Global Jobs standing for the product: the tonal panel with kit shapes, the floating card, the two fields with their placeholders, "Forgot your password?", the filled "Sign in", Sign in with Global ID directly under it, "Create account", and the error state after a failed attempt. It does not scroll in a window 640px tall or more (measured at 360 × 640, 375 × 667, 390 × 844, 768 × 1024, and 1440 × 900). It passes the audit gate in light, dark, RTL, and dark RTL at 390px and 1440px.