/* auth.css: the look of the sign-in and sign-up cards (public-site plan R104, sections 2 and 3; R103's rules).
 * hosted_shell.js (R84) draws the card; this file only styles its classes. It has two layers:
 *   1. The card (.signin-screen[data-hosted] ...): the same on the public pages and in the app. The app loads this
 *      file after hosted.css (the ask to 2.3.1), so the card looks the same in both places.
 *   2. The page around it (body.au-page ...): the public /signin and /signup pages only: the header with the logo,
 *      the language switch in the corner, the footer.
 * The public pages load neither app.css nor hosted.css, so layer 1 carries everything the card needs.
 * Inputs are 16 px (below that, iOS Safari zooms on focus). Every control is 44 px or more to tap.
 * reimagine-1111 (11 Nov): the site's palette and text face (checks/reimagine-1111/DESIGN-SYSTEM.md). These pages do not
 * load site.css, so the tokens they need are copied here from src/site/00-tokens.css, same names, same three tiers.
 * Tarek's direction of 11 Nov for these pages: friendly and clean, rounded corners from ONE radius scale (--radius-*),
 * a soft card, Space Grotesk in sentence case (no capitals, no Oswald), Cairo for Arabic. Text is 14 px at the least
 * (the HIG floor of 11 Nov). A radius change is one line in tier 1. */

:root {
  /* ---- tier 1: raw (the only literals) */
  --raw-color-ice-50: #f7fafb;
  --raw-color-ice-100: #ebeef1;
  --raw-color-ice-200: #dfe5e9;
  --raw-color-ink-950: #090a0b;
  --raw-color-ink-900: #0e0f14;
  --raw-color-ink-700: #2a2d36;
  --raw-color-ink-600: #4a5058;
  --raw-color-ink-500: #6b737c;
  --raw-color-cyan-400: #02d2e3;
  --raw-color-white: #ffffff;
  --raw-color-orange-700: #a84300;
  --raw-color-ink-alpha-04: rgb(9 10 11 / 0.04);
  --raw-color-ink-alpha-14: rgb(9 10 11 / 0.14);
  --raw-font-grotesk: "Space Grotesk", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --raw-font-cairo: "Cairo", "Space Grotesk", "Segoe UI", Tahoma, Arial, sans-serif;
  --raw-font-system-arabic: "Segoe UI", Tahoma, "Geeza Pro", "Noto Sans Arabic", Arial, sans-serif;
  --raw-radius-10: 10px;
  --raw-radius-12: 12px;
  --raw-radius-16: 16px;
  --raw-radius-20: 20px;
  --raw-radius-28: 28px;
  --raw-radius-pill: 999px;
  --raw-duration-hover: 160ms;

  /* ---- tier 2: semantic (light only: ink is for text and the small controls, never a surface) */
  --color-ground: var(--raw-color-ice-50);
  --color-ground-2: var(--raw-color-ice-100);
  --color-rule: var(--raw-color-ice-200);
  --color-ink: var(--raw-color-ink-950);
  --color-ink-muted: var(--raw-color-ink-600);
  --color-field-line: var(--raw-color-ink-500);
  --color-hint: var(--raw-color-ink-500);
  --color-card: var(--raw-color-white);
  --color-field: var(--raw-color-white);
  --color-panel: var(--raw-color-ink-900);
  --color-accent: var(--raw-color-cyan-400);
  --color-on-accent: var(--raw-color-ink-950);
  --color-danger: var(--raw-color-orange-700);
  --color-danger-mark: var(--raw-color-orange-700);   /* 6.0:1 on white (orange-500 was 2.9:1, under 3:1 for a mark) */
  --font-text: var(--raw-font-grotesk);
  --font-arabic: var(--raw-font-cairo);
  --hover: var(--raw-duration-hover);
  /* HIG job 11 Nov: the iPhone notch and home bar (viewport-fit=cover) */
  --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px); --safe-b: env(safe-area-inset-bottom, 0px);

  /* ---- tier 3: component */
  /* the radius scale (the same names and values as the main page's stylesheet) */
  --radius-1: var(--raw-radius-10);       /* fields, small controls, the eye toggle, the language switch */
  --radius-2: var(--raw-radius-12);       /* buttons */
  --radius-3: var(--raw-radius-16);       /* inner cards: the account-type cards, the "what you sent" box */
  --radius-4: var(--raw-radius-20);       /* main cards: sign-in, sign-up, the legal panel, the 404 */
  --radius-5: var(--raw-radius-28);       /* big bands (not used on these pages) */
  --radius-pill: var(--raw-radius-pill);  /* small marks: the radio, the steps, the footer dots, the error dot */
  --shadow-card: 0 1px 2px var(--raw-color-ink-alpha-04), 0 8px 24px -12px var(--raw-color-ink-alpha-14);
  --btn-h: 52px;
  --btn-solid-bg: var(--color-panel);
  --btn-solid-bg-hover: var(--raw-color-ink-700);
  --btn-solid-fg: var(--color-ground);
  --btn-line: var(--color-field-line);
  --btn-line-bg: var(--color-field);
  --btn-line-bg-hover: var(--color-ground-2);
  --field-h: 48px;
  --focus-ring: var(--color-ink);
  /* the chosen radio and the current step: a ring, a gap, the cyan dot. The gap is ink (so the cyan sits on ink) */
  --radio-gap: var(--color-ink);
  --step-gap: var(--color-ink);
  /* the approval step's tick, in the card's colour (white) */
  --step-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5'/%3E%3C/svg%3E");
  /* light-only-1111 (Tarek 11 Nov): one light scheme, no dark one; "only" stops forced dark modes and dark form controls */
  color-scheme: only light;
}
.au-page ::selection { background: var(--color-accent); color: var(--color-on-accent); }

/* ------------------------------------------------------------------ 1. the card */
.signin-screen[data-hosted] [hidden] { display: none !important; }
/* The card: a soft white panel on the ice ground: a hairline, the large radius, one soft shadow. */
.signin-screen[data-hosted] .signin-card {
  position: relative; box-sizing: border-box; width: 100%; max-width: 420px; margin: 0 auto;
  padding: 36px 32px 32px; color: var(--color-ink); background: var(--color-card);
  border: 1px solid var(--color-rule); border-radius: var(--radius-4); box-shadow: var(--shadow-card); text-align: start;
  font-family: var(--font-text);
}
[dir="rtl"] .signin-screen[data-hosted] .signin-card { font-family: var(--font-arabic); }   /* Cairo for every Arabic line */
.signin-screen[data-hosted] .signin-logo { display: block; width: auto; height: 32px; margin: 0 auto 16px; }
/* the product line over the heading; the heading in Space Grotesk 600, sentence case (Cairo 700 in Arabic) */
.signin-screen[data-hosted] .signin-product { margin: 0 0 8px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--color-ink-muted); }
.signin-screen[data-hosted] h1.signin-heading {
  margin: 0 0 28px; font-family: inherit; font-size: 32px; font-weight: 600; line-height: 1.15;
  letter-spacing: -.03em; color: var(--color-ink); text-wrap: balance;
}
@media (max-width: 560px) { .signin-screen[data-hosted] h1.signin-heading { font-size: 28px; } }
[dir="rtl"] .signin-screen[data-hosted] h1.signin-heading { font-weight: 700; line-height: 1.4; letter-spacing: 0; }

.signin-screen[data-hosted] .signin-form,
.signin-screen[data-hosted] .signin-signup-page { display: block; max-width: none; margin: 0; text-align: start; }
.signin-screen[data-hosted] .field { display: flex; flex-direction: column; gap: 8px; }
/* labels: 600, 14 px, sentence case */
.signin-screen[data-hosted] .field label,
.signin-screen[data-hosted] .su-types-legend { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--color-ink); }
.signin-screen[data-hosted] .input::placeholder { color: var(--color-hint); opacity: 1; }
.signin-screen[data-hosted] .input {
  box-sizing: border-box; width: 100%; height: var(--field-h); margin: 0; padding: 0 14px;
  font-family: inherit; font-size: 16px; font-weight: 400; line-height: normal; color: var(--color-ink);
  background: var(--color-field); border: 1px solid var(--color-field-line); border-radius: var(--radius-1);
  -webkit-appearance: none; appearance: none;
}
/* a 2 px ink ring over the field's own line */
.signin-screen[data-hosted] .input:focus { outline: 2px solid var(--focus-ring); outline-offset: -1px; border-color: var(--focus-ring); }
.signin-screen[data-hosted] .input[aria-invalid="true"] { border-color: var(--color-danger); }
/* Arabic mirrors the layout; an email, a phone number and a password still read left to right (R103 rule 11). */
[dir="rtl"] .signin-screen[data-hosted] .input[type="email"],
[dir="rtl"] .signin-screen[data-hosted] .input[type="password"],
[dir="rtl"] .signin-screen[data-hosted] .input[type="tel"] { direction: ltr; text-align: right; }

/* Buttons: rounded (--radius-2), 52 px, sentence case. .btn-gold (the app's primary) is the solid button: ink fill,
   ice label, a lighter ink on hover. The other buttons are line buttons: a 1 px
   field-line border on the field colour, ice-100 on hover. ::before stays free: it is the busy ring of the submit and
   the refresh mark of "Check again". */
.signin-screen[data-hosted] .btn {
  --bg: var(--btn-line-bg);
  --bg-on: var(--btn-line-bg-hover);
  --line: var(--btn-line);
  --fg: var(--color-ink);
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  min-height: var(--btn-h); padding: 0 24px; border: 1px solid var(--line); border-radius: var(--radius-2); background: var(--bg);
  font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
  color: var(--fg); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color var(--hover) linear, transform 90ms linear;
}
.signin-screen[data-hosted] .btn-gold {
  --bg: var(--btn-solid-bg); --bg-on: var(--btn-solid-bg-hover); --line: transparent; --fg: var(--btn-solid-fg);
}
@media (hover: hover) { .signin-screen[data-hosted] .btn:hover:not(:disabled) { background-color: var(--bg-on); } }
/* HIG job 11 Nov: a press state on every button (a 1 px step), and a busy sign on the submit while its request runs
   (the forms disable the submit only for that time): a turning ring before the label, the label kept */
.signin-screen[data-hosted] .btn:active:not(:disabled) { transform: translateY(1px); background-color: var(--bg-on); }
.signin-screen[data-hosted] .btn:disabled { opacity: .5; cursor: default; transform: none; }
.signin-screen[data-hosted] .signin-submit:disabled { opacity: 1; cursor: progress; }
.signin-screen[data-hosted] .signin-submit:disabled::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-inline-end: 10px; box-sizing: border-box;
  border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; animation: au-spin .8s linear infinite;
}
@keyframes au-spin { to { transform: rotate(360deg); } }
/* reduced motion: the ring stands still (the label and the disabled state still say "busy"); floods are instant */
@media (prefers-reduced-motion: reduce) {
  .signin-screen[data-hosted] .signin-submit:disabled::before { animation: none; }
  .signin-screen[data-hosted] .btn, .signin-screen[data-hosted] .su-type,
  .au-page a, .au-page button { transition: none !important; }
}
.signin-screen[data-hosted] .btn:focus-visible,
.signin-screen[data-hosted] a:focus-visible,
.signin-screen[data-hosted] button:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.signin-screen[data-hosted] .form-submit-row { text-align: center; }
.signin-screen[data-hosted] .form-submit-row .btn { width: 100%; min-width: 0; }

/* The message line: orange-700 text with a small orange-500 dot for an error, muted for information. No shaking, no
   sliding. The dot is a mark, so the state is not carried by the text colour alone. */
.signin-screen[data-hosted] .signin-msg { margin: 0; font-size: 14px; line-height: 1.45; color: var(--color-danger); text-align: start; }
.signin-screen[data-hosted] .signin-msg[data-tone="error"]::before,
.signin-screen[data-hosted] .su-err::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-end: 8px; vertical-align: 1px;
  border-radius: var(--radius-pill); background: var(--color-danger-mark);
}
.signin-screen[data-hosted] .signin-msg[data-tone="info"] { color: var(--color-ink-muted); }
.signin-screen[data-hosted] .signin-lead { margin: 0; font-size: 16px; line-height: 1.55; color: var(--color-ink-muted); text-align: start; text-wrap: pretty; }

/* in-card text links: sentence case, underlined, 44 px tall */
.signin-screen[data-hosted] .signin-links { margin-top: 8px; text-align: center; font-size: 14px; }
.signin-screen[data-hosted] .signin-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; border: 0; background: none;
  font: inherit; color: var(--color-ink); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 4px; cursor: pointer; transition: text-decoration-thickness var(--hover) linear;
}
@media (hover: hover) { .signin-screen[data-hosted] .signin-link:hover { text-decoration-thickness: 2px; } }

/* "New to Loop?" over R84's "Create an account" button (plan 2.2 item 10). R84's markup has the button only. */
.signin-screen[data-hosted] .signin-alt { max-width: none; margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--color-rule); text-align: center; }
.signin-screen[data-hosted] .signin-alt::before { content: "New to Looping Brokers?"; display: block; margin-bottom: 12px; font-size: 14px; color: var(--color-ink-muted); }
html[lang="ar"] .signin-screen[data-hosted] .signin-alt::before { content: "هل أنت جديد على Looping Brokers؟"; }
.signin-screen[data-hosted] .signin-alt .btn { width: 100%; }

.signin-screen[data-hosted] .signin-loading,
.signin-screen[data-hosted] .signin-soon { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--color-ink-muted); text-align: start; }
.signin-screen[data-hosted] .signin-status { max-width: none; margin: 8px 0 0; text-align: start; }
.signin-screen[data-hosted] .signin-status-line { margin: 0 0 24px; font-size: 16px; line-height: 1.55; color: var(--color-ink); }
.signin-screen[data-hosted] .signin-status-actions { display: flex; flex-direction: column; gap: 12px; }
.signin-screen[data-hosted] .signin-status-actions .btn { width: 100%; min-width: 0; }
/* Check again carries a small refresh mark (Stitch 05), in the label's own colour (a mask over currentColor) */
.signin-screen[data-hosted] .btn[data-action="again"]::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-inline-end: 10px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.5 8a5.5 5.5 0 1 1-1.6-3.9'/%3E%3Cpath d='M13.5 2.5v3.2h-3.2'/%3E%3C/svg%3E") no-repeat center / 16px 16px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.5 8a5.5 5.5 0 1 1-1.6-3.9'/%3E%3Cpath d='M13.5 2.5v3.2h-3.2'/%3E%3C/svg%3E") no-repeat center / 16px 16px;
}
/* The approval screen on the public pages (auth-bridge.js adds these around R84's line: plan 2.6 items 2 and 5).
   The three steps are dots on a line: done = an ink dot with a tick in the card's colour; now = an ink dot with the cyan
   "you are here" dot inside (cyan on dark only); next = an empty ring. */
.signin-screen[data-hosted] .signin-status h1.signin-heading { margin: 0 0 10px; }
.signin-screen[data-hosted] .signin-status[data-state="pending"] .signin-status-line { font-size: 16px; color: var(--color-ink-muted); }
.signin-screen[data-hosted] .au-steps { display: flex; margin: 0 0 28px; padding: 0; list-style: none; }
.signin-screen[data-hosted] .au-steps li {
  position: relative; flex: 1; padding-top: 32px; font-size: 14px; line-height: 1.3; color: var(--color-ink-muted); text-align: center;
}
.signin-screen[data-hosted] .au-steps li::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 20px; height: 20px; margin-left: -10px; box-sizing: border-box;
  border: 1.5px solid var(--color-field-line); border-radius: var(--radius-pill); background: var(--color-card); z-index: 1;
}
.signin-screen[data-hosted] .au-steps li + li::after { content: ""; position: absolute; top: 9px; right: 50%; width: 100%; height: 2px; background: var(--color-rule); }
[dir="rtl"] .signin-screen[data-hosted] .au-steps li + li::after { right: auto; left: 50%; }
.signin-screen[data-hosted] .au-steps li.done, .signin-screen[data-hosted] .au-steps li.now { color: var(--color-ink); font-weight: 600; }
.signin-screen[data-hosted] .au-steps li.done::before { border-color: var(--color-ink); background: var(--color-ink) var(--step-tick) no-repeat center / 12px 12px; }
.signin-screen[data-hosted] .au-steps li.done::after { background: var(--color-ink); }
.signin-screen[data-hosted] .au-steps li.now::before {
  border-color: var(--color-ink); background: var(--color-ink); box-shadow: inset 0 0 0 4.5px var(--step-gap), inset 0 0 0 20px var(--color-accent);
}
.signin-screen[data-hosted] .au-steps li.now::after { background: var(--color-ink); }
/* What you sent: a quiet rounded box, rows parted by hairlines */
.signin-screen[data-hosted] .au-sent { margin: 0 0 28px; padding: 4px 16px; border: 1px solid var(--color-rule); border-radius: var(--radius-3); background: var(--color-ground); }
.signin-screen[data-hosted] .au-sent h2 { margin: 0; padding: 12px 0 8px; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--color-ink); }
.signin-screen[data-hosted] .au-sent dl { margin: 0; }
.signin-screen[data-hosted] .au-sent div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; min-height: 44px; padding: 10px 0; box-sizing: border-box; border-top: 1px solid var(--color-rule); font-size: 14px; }
.signin-screen[data-hosted] .au-sent dt { color: var(--color-ink-muted); }
.signin-screen[data-hosted] .au-sent dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--color-ink); text-align: end; overflow-wrap: anywhere; }
.signin-screen[data-hosted] .au-wa { margin: 20px 0 0; font-size: 14px; color: var(--color-ink-muted); text-align: center; }
.signin-screen[data-hosted] .au-wa a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink); font-weight: 600; text-underline-offset: 4px; }

/* The sign-up form (signup-form.js) */
.signin-screen[data-hosted] .su-lead { margin: -12px 0 28px; font-size: 16px; line-height: 1.55; color: var(--color-ink-muted); text-align: start; text-wrap: pretty; }
.signin-screen[data-hosted] .su-help, .signin-screen[data-hosted] .su-consent, .signin-screen[data-hosted] .su-type-note { text-wrap: pretty; }
.signin-screen[data-hosted] .su-help { margin: 0; font-size: 14px; line-height: 1.45; color: var(--color-ink-muted); }
.signin-screen[data-hosted] .su-err { margin: 0; font-size: 14px; line-height: 1.45; color: var(--color-danger); }
/* an invite link: fixed fields (padlock at the end), the brokerage logo before the heading */
.signin-screen[data-hosted] .su-lockbox { position: relative; }
.signin-screen[data-hosted] .su-lockbox .input { padding-left: 44px; padding-right: 44px; }
.signin-screen[data-hosted] .su-locked .input { background: var(--color-ground-2); color: var(--color-ink-muted); border-color: var(--color-rule); cursor: default; }
.signin-screen[data-hosted] .su-lock { position: absolute; inset-inline-end: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--color-ink-muted); pointer-events: none; }
.signin-screen[data-hosted] .su-lock svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.signin-screen[data-hosted] .su-logo { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; vertical-align: middle; margin-inline-end: 10px; }
.signin-screen[data-hosted] .su-more {
  align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; margin: -6px 0 -6px; padding: 0;
  border: 0; background: none; font: inherit; font-size: 14px;
  color: var(--color-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; cursor: pointer;
}
@media (hover: hover) { .signin-screen[data-hosted] .su-more:hover { text-decoration-thickness: 2px; } }
/* R200: the three account-type cards (one radio group). 44 px or more to tap; the whole card is the label. Each card
   shows a round radio at its start, so a single choice looks like one: not chosen = an empty ring; chosen = an ink dot
   with the cyan dot inside (cyan on dark), and the card gets an ink inset. State is a mark, not only a colour. */
.signin-screen[data-hosted] .su-types { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.signin-screen[data-hosted] .su-types-legend { padding: 0; margin: 0 0 8px; }
.signin-screen[data-hosted] .su-type {
  display: flex; align-items: flex-start; gap: 12px; box-sizing: border-box; min-height: 52px; padding: 14px 16px;
  background: var(--color-field); border: 1px solid var(--color-field-line); border-radius: var(--radius-3); cursor: pointer;
  transition: background-color var(--hover) linear;
}
@media (hover: hover) { .signin-screen[data-hosted] .su-type:hover { background: var(--color-ground-2); } }
.signin-screen[data-hosted] .su-type.is-on { border-color: var(--color-ink); background: var(--color-field); box-shadow: inset 0 0 0 1px var(--color-ink); }
.signin-screen[data-hosted] .su-type input {
  flex: none; box-sizing: border-box; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid var(--color-field-line);
  border-radius: var(--radius-pill); background: var(--color-field); -webkit-appearance: none; appearance: none; cursor: pointer;
}
.signin-screen[data-hosted] .su-type input:checked {
  border-color: var(--color-ink); background: var(--color-ink); box-shadow: inset 0 0 0 4.5px var(--radio-gap), inset 0 0 0 20px var(--color-accent);
}
/* the ring for the keyboard only (a click already shows the ink inset; two rings read as one heavy box) */
.signin-screen[data-hosted] .su-type:has(input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
@supports not selector(:has(*)) { .signin-screen[data-hosted] .su-type:focus-within { outline: 2px solid var(--focus-ring); outline-offset: 2px; } }
.signin-screen[data-hosted] .su-type input:focus-visible { outline: none; }   /* the card's ring is the one ring (audit: two rings) */
.signin-screen[data-hosted] .su-type-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.signin-screen[data-hosted] .su-type-title { font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--color-ink); }
.signin-screen[data-hosted] .su-type-note { font-size: 14px; line-height: 1.45; color: var(--color-ink-muted); }
/* Windows high contrast: the system's own radio comes back */
@media (forced-colors: active) { .signin-screen[data-hosted] .su-type input { -webkit-appearance: auto; appearance: auto; } }
/* The eye button inside every password field (hosted_shell.js pwWrap, R235): 48 x 44 px to tap, at the end of the field */
.signin-screen[data-hosted] .hs-pw { position: relative; }
.signin-screen[data-hosted] .hs-pw .input { display: block; padding-right: 48px; }
/* The password reads left to right even in Arabic, so its own "end" is the right: the room for the eye is set by side. */
[dir="rtl"] .signin-screen[data-hosted] .hs-pw .input { padding-right: 14px; padding-left: 48px; direction: ltr; text-align: right; }
.signin-screen[data-hosted] .hs-pw-toggle {
  position: absolute; top: 50%; inset-inline-end: 2px; width: 48px; height: 44px; margin: -22px 0 0; padding: 0;
  display: flex; align-items: center; justify-content: center; border: 0; border-radius: var(--radius-1); background: none;
  color: var(--color-ink-muted); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color var(--hover) linear, color var(--hover) linear;
}
.signin-screen[data-hosted] .hs-pw-toggle svg { display: block; width: 22px; height: 22px; pointer-events: none; }
.signin-screen[data-hosted] .hs-pw-toggle[aria-pressed="true"] { color: var(--color-ink); }
@media (hover: hover) { .signin-screen[data-hosted] .hs-pw-toggle:hover { background: var(--color-ground-2); color: var(--color-ink); } }
.signin-screen[data-hosted] .hs-pw-toggle:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -4px; }
.signin-screen[data-hosted] .su-consent { margin: 0; font-size: 14px; line-height: 1.55; color: var(--color-ink-muted); }
.signin-screen[data-hosted] .su-consent a { color: var(--color-ink); text-underline-offset: 4px; }
.signin-screen[data-hosted] .su-alt { margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--color-rule); text-align: center; }
.signin-screen[data-hosted] .su-alt-line { margin: 0 0 12px; font-size: 14px; color: var(--color-ink-muted); }
.signin-screen[data-hosted] .su-alt .btn { width: 100%; }
.signin-screen[data-hosted] .su-sent { text-align: start; }
.signin-screen[data-hosted] .su-sent p { margin: 0 0 12px; font-size: 16px; line-height: 1.55; color: var(--color-ink); }
.signin-screen[data-hosted] .su-sent p.su-sent-note { font-size: 14px; color: var(--color-ink-muted); }
.signin-screen[data-hosted] .su-email { font-weight: 600; word-break: break-all; }
/* The form brings its own "Sign in" and "Back to sign in" (they open /signin); R84's in-page link is not needed. */
.signin-screen[data-hosted] .su-alt ~ .signin-links,
.signin-screen[data-hosted] .su-sent ~ .signin-links { display: none; }

/* The space between a form's rows. Written last and one step more specific than the rules above, so a row's own
   "margin: 0" does not remove it. */
.signin-screen[data-hosted] form.signin-form > * + * { margin-top: 20px; }
.signin-screen[data-hosted] form.signin-form > .form-submit-row { margin-top: 28px; }
.signin-screen[data-hosted] form.signin-form > .signin-links { margin-top: 8px; }

@media (max-width: 560px) {
  .signin-screen[data-hosted] .signin-card { padding: 32px 20px 28px; }
}

/* ------------------------------------------------------------------ 2. the page (public /signin and /signup) */
.au-page {
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; margin: 0;
  background: var(--color-ground); color: var(--color-ink);
  font-family: var(--font-text); font-size: 16px; line-height: 1.55;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
html[dir="rtl"] .au-page { font-family: var(--font-arabic); }
.au-page *, .au-page *::before, .au-page *::after { box-sizing: border-box; }
html[lang="ar"] .au-en, html:not([lang="ar"]) .au-ar { display: none; }

/* the header: an ice bar with a hairline under it, the logo at the start, the language switch at the end */
.au-head {
  display: flex; align-items: center; height: 64px; border-bottom: 1px solid var(--color-rule);
  padding: 0 calc(24px + var(--safe-r)) 0 calc(24px + var(--safe-l));
}
.au-logo { display: inline-flex; align-items: center; min-height: 44px; }
.au-logo img { display: block; width: auto; height: 30px; }

/* The card sits a little above the middle: a fixed space above it (not centring), so it does not jump when the
   form arrives. On a short screen it goes near the top, so the keyboard does not hide the button. */
.au-page #app { flex: 1 0 auto; display: block; padding: clamp(24px, 7vh, 88px) calc(16px + var(--safe-r)) 64px calc(16px + var(--safe-l)); }
.au-page .signin-screen { display: block; min-height: 0; padding: 0; background: none; }
.au-page .signin-screen[data-hosted] .signin-card { position: static; }
/* The header carries the logo on the public pages, at every width (manager, 30 Sep); the card inside the app keeps its own. */
.au-page .signin-screen[data-hosted] .signin-logo { display: none; }

/* R84's switch is drawn inside the card; on the public pages it sits in the header's end corner. */
.au-page .signin-lang {
  position: absolute; top: 10px; right: auto; left: auto; inset-inline-end: calc(24px + max(var(--safe-l), var(--safe-r))); z-index: 1;
  display: inline-flex; align-items: center; height: 44px; padding: 0 14px;
  border: 0; border-radius: var(--radius-1); background: none;
  font-family: var(--font-text); font-size: 14px; font-weight: 600; line-height: 1;
  color: var(--color-ink); text-decoration: none; cursor: pointer; transition: background-color var(--hover) linear;
}
/* "العربية" in the system's own Arabic font: an English visitor never downloads Cairo for one word */
.au-page .signin-lang[lang="ar"], .au-page .signin-lang .au-en { font-family: var(--raw-font-system-arabic); }
@media (hover: hover) { .au-page .signin-lang:hover { background: var(--color-ground-2); } }
.au-page .signin-lang:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 0; }

/* the footer: a hairline above; who runs the site; the links as a row of 44 px targets parted by small dots
   (HIG job 11 Nov: 14 px text) */
.au-foot {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 4px;
  border-top: 1px solid var(--color-rule); text-align: center; font-size: 14px; color: var(--color-ink-muted);
  padding: 24px calc(16px + var(--safe-r)) calc(28px + var(--safe-b)) calc(16px + var(--safe-l));
}
.au-foot > p { flex: 0 0 100%; }
.au-foot a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; color: var(--color-ink);
  font-weight: 600; text-decoration: none; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.au-foot > span[aria-hidden="true"] { display: inline-block; width: 4px; height: 4px; margin: 0 8px; vertical-align: middle; overflow: hidden; font-size: 0; color: transparent; border-radius: var(--radius-pill); background: var(--color-field-line); }
@media (hover: hover) { .au-foot a:hover { text-decoration-line: underline; } }
/* the card's 2 px ring on the page's own links too (the logo, the footer) */
.au-page .au-logo:focus-visible, .au-foot a:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }
.au-page .signin-screen[data-hosted] .signin-msg.au-noscript { color: var(--color-ink-muted); text-align: center; }
/* HIG job 11 Nov: the 404 card's lead no longer touches its button */
.au-page .signin-screen[data-hosted] .au-404-go { margin-top: 24px; }
.au-page .signin-screen[data-hosted] .signin-heading + .signin-lead { margin-top: -12px; }
/* R166 (P1): who runs the site, in the footer of /signin and /signup */
/* a full row each (so no link sits beside it); the 680 px measure is kept with padding, not max-width */
.au-foot .au-operator { margin: 0 0 4px; padding-inline: max(0px, calc((100% - 680px) / 2)); line-height: 1.55; text-wrap: balance; }
.au-foot .au-operator + .au-operator { margin-bottom: 12px; }
.au-foot .au-operator a { padding: 0 2px; font-weight: 400; text-decoration-line: underline; }

/* R166 (P2): the interim Privacy Notice and Member Terms: a wide reading panel, about 70 characters a line (HIG job
   11 Nov). Space Grotesk 600 heads in sentence case, with more space above than below. */
.au-page .signin-screen[data-hosted] .signin-card.au-legal { max-width: 800px; padding: 48px clamp(20px, 6vw, 64px) 40px; }
.signin-screen[data-hosted] .au-legal h1.signin-heading { margin-bottom: 20px; font-size: clamp(32px, 1.5rem + 1.6vw, 44px); line-height: 1.1; }
[dir="rtl"] .signin-screen[data-hosted] .au-legal h1.signin-heading { line-height: 1.4; }
.au-legal h2 { margin: 40px 0 10px; font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -.03em; color: var(--color-ink); }
html[dir="rtl"] .au-legal h2 { font-weight: 700; letter-spacing: 0; }
.au-legal p:not(.signin-product), .au-legal li { font-size: 17px; line-height: 1.7; color: var(--color-ink); text-wrap: pretty; }
html[dir="rtl"] .au-legal p:not(.signin-product), html[dir="rtl"] .au-legal li { line-height: 1.8; }
.au-legal p:not(.signin-product) { margin: 0 0 16px; }
.au-legal strong { font-weight: 600; }
html[dir="rtl"] .au-legal strong { font-weight: 700; }
/* copy job 11 Nov: the lead no longer runs into the DRAFT line */
.signin-screen[data-hosted] .au-legal .signin-lead { margin: 0 0 16px; font-size: 18px; color: var(--color-ink-muted); }
.au-legal ul { margin: 0 0 16px; padding-inline-start: 22px; list-style: disc; }
.au-legal li::marker { color: var(--color-ink-muted); }
.au-legal li + li { margin-top: 10px; }
.au-legal a { color: var(--color-ink); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.au-legal a[href^="mailto:"] { white-space: nowrap; }
.au-legal .signin-links { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--color-rule); }

/* the 404: the "404" of the product line becomes a large figure. The line's own text stays for screen readers
   (font-size 0 hides it from sight only); the big figure is drawn with an empty alternative so it is not read twice. */
.au-page .signin-screen[data-hosted] .signin-card:has(.au-404-go) { max-width: 520px; }
.au-page .signin-card:has(.au-404-go) .signin-product { margin-bottom: 16px; font-size: 0; line-height: 0; }
.au-page .signin-card:has(.au-404-go) .signin-product::before {
  content: "404"; content: "404" / ""; display: block; margin: 0 0 20px;
  font-family: var(--font-text); font-size: clamp(88px, 4rem + 5vw, 128px); font-weight: 600; line-height: .9;
  letter-spacing: -.05em; color: var(--color-ink);
}
.au-page .signin-card:has(.au-404-go) .signin-product > span { font-size: 14px; line-height: 1.4; }

@media (max-width: 560px) {
  .au-head { height: 60px; padding: 0 calc(16px + var(--safe-r)) 0 calc(16px + var(--safe-l)); }
  .au-logo img { height: 26px; }
  .au-page .signin-lang { top: 8px; inset-inline-end: calc(8px + max(var(--safe-l), var(--safe-r))); }
  .au-page #app { padding-top: 24px; }
  /* phones: the link row may wrap, so the squares between links go and a wider gap parts them */
  .au-foot { column-gap: 16px; }
  .au-foot > span[aria-hidden="true"] { display: none; }
}
@media (max-height: 700px) {
  .au-page #app { padding-top: 16px; }
}

/* wide-1111 (Tarek 12 Nov: the site adjusts to big screens). These pages grow with the main page: the same scale
   (src/site/00-tokens.css: the smaller of the width ratio and the height ratio, from 1 at 1512 x 1040 to 2 at
   3840 x 2160) rounded to the nearest eighth (each step starts where the scale passes the half-way point to it, so the
   two stay within about 6 % of each other). A step also needs 1010 px of height per unit of zoom, so the sign-in page
   (about 1000 px tall at zoom 1, header to footer) never scrolls by a few pixels. This file is in px and the app's card
   shares it, so the public page's own parts are zoomed (body.au-page only: the app never matches). Below 1653 px wide
   or 1137 px tall nothing changes. */
@media (min-width: 1653px) and (min-height: 1137px) { .au-page > * { zoom: 1.125; } }
@media (min-width: 1933px) and (min-height: 1263px) { .au-page > * { zoom: 1.25; } }
@media (min-width: 2213px) and (min-height: 1389px) { .au-page > * { zoom: 1.375; } }
@media (min-width: 2493px) and (min-height: 1515px) { .au-page > * { zoom: 1.5; } }
@media (min-width: 2773px) and (min-height: 1642px) { .au-page > * { zoom: 1.625; } }
@media (min-width: 3053px) and (min-height: 1768px) { .au-page > * { zoom: 1.75; } }
@media (min-width: 3333px) and (min-height: 1894px) { .au-page > * { zoom: 1.875; } }
@media (min-width: 3613px) and (min-height: 2020px) { .au-page > * { zoom: 2; } }
