/* ============================================================
   AUTH
   ------------------------------------------------------------
   The complete authentication layer. One shell, four pages:

     login.html           → auth-shell with aside + card + help
     register.html        → same shell, register variant
     onboarding.html      → centered form (no shell)
     auth-callback.html   → full-page interstitial (no chrome)

   ============================================================
   THEME
   ============================================================
   The navy aside on the left of the split screen is a branded
   surface. It stays the same navy in both light and dark
   theme, matching the fixed chrome of the header and sidebar.

   It reads from the --brand-* family that foundation.css
   declares and theme.css never reassigns. The result:
     · the aside stays navy in dark mode
     · the point bullets stay blue
     · the eyebrow chip stays a translucent white pill
     · the aside title stays white
   Every one of those would have broken if the aside kept
   reading --navy-800 as a background, because that is a raw
   brand-scale token that the dark theme would eventually be
   tempted to reassign.

   The form panel to the right of the split reads the semantic
   surface, text and border families, which theme.css flips.
   That gives the panel a light presentation in light mode and
   a dark presentation in dark mode — which is what "the panel
   sits inside the page" means.

   Two small dark-mode overrides are needed because a class
   had to reach for a raw scale token to render a tint that
   does not exist in the semantic layer:
     · .onboarding-note reads --blue-50 (raw light blue)
     · .auth-callback-mark reads --blue-50 / --blue-100
   Both get an explicit dark-mode block.

   ============================================================
   RTL
   ============================================================
   The split grid uses `grid-template-columns` with unequal
   track widths (0.94fr and 1.06fr). Because `direction: rtl`
   reverses grid track order at the layout level, the aside
   automatically moves to the visual right and the panel to
   the visual left without any explicit rule. The track
   widths swap position with them, so the aside stays the
   slightly-narrower column.

   The standalone onboarding grid follows the same rule: the
   note column moves from the right of the form (LTR) to the
   left of the form (RTL).

   Everything else — button icon order, form label alignment,
   breadcrumbs, the Google mark — flips for free via the html
   element's direction.

   Three decorative elements need explicit mirroring:
     · .auth-aside            two rings, top-right and bottom-left
     · .auth-callback-panel   two rings, top-right and bottom-left
     · .onboarding-note       one ring, bottom-right
   Each gets a `html[dir="rtl"]` block that mirrors its rings to
   the opposite corner so the composition stays balanced.

   ============================================================
   ARABIC
   ============================================================
   Letter-spacing on every uppercase Latin class is zeroed
   under html[lang="ar"] — Arabic script is cursive and
   letter-spacing breaks the joins between letters.

   Line-height on the aside title, the card title and the
   callback title is nudged up so Arabic diacritics and
   ascenders have room to breathe.

   The aside, card and callback titles switch to
   --font-heading, which foundation.css and theme.css
   reassign to an Arabic display stack under html[lang="ar"].
   ============================================================ */


/* ============================================================
   01 · AUTH SHELL
   ============================================================
   Two-column grid on desktop (branded aside | form panel).
   Stacks to a single column on tablet. The aside hides
   entirely on phones.
   ============================================================ */

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);

  width: min(1180px, calc(100% - 40px));
  min-height: 640px;
  margin: var(--space-8) auto;

  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: 0 22px 60px rgba(15, 39, 66, 0.12);

  overflow: hidden;
}

/* Dark surfaces need heavier, blacker shadows to read the
   same as they do on white. */
html[data-theme="dark"] .auth-shell {
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.65);
}

/* The grid reverses automatically under `direction: rtl` on
   the html element. No explicit RTL rule is needed here. */


/* ============================================================
   02 · AUTH ASIDE
   ============================================================
   The branded navy panel. Reads --brand-* which never flips.
   The two decorative rings mirror to the opposite corner
   under RTL so the composition stays balanced.
   ============================================================ */

.auth-aside {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  display: flex;
  align-items: center;

  padding: var(--space-10) var(--space-10);

  background: var(--brand-bg);
  color: var(--brand-text);
}

.auth-aside::before,
.auth-aside::after {
  content: "";
  position: absolute;
  border-radius: var(--radius-circle);
  pointer-events: none;
  z-index: 0;
}

/* Mirror the decorative composition in RTL so the rings sit
   on the "outer" corners of the aside in both scripts. */
html[dir="rtl"] .auth-aside::before {
  right: auto;
  left: -300px;
}

html[dir="rtl"] .auth-aside::after {
  left: auto;
  right: -185px;
}

.auth-aside > * { position: relative; z-index: 1; }

/* ---------- ASIDE INNER ---------- */

.auth-aside-inner {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.auth-aside-inner .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  align-self: flex-start;

  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);

  color: var(--blue-100);
  font-size: 10px;
  font-weight: var(--fw-extrabold);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  line-height: 1;
}

html[lang="ar"] .auth-aside-inner .eyebrow {
  letter-spacing: 0;
}

.auth-aside-title {
  font-family: var(--font-heading);
  margin: var(--space-2) 0 0;
  color: var(--brand-text);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

html[lang="ar"] .auth-aside-title {
  letter-spacing: 0;
  line-height: 1.35;
}

.auth-aside-body {
  margin: var(--space-2) 0 0;
  max-width: 440px;
  color: var(--brand-text-soft);
  font-size: var(--fs-base);
  line-height: 1.7;
}

/* ---------- ASIDE POINTS ---------- */

.auth-aside-points {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
}

.auth-aside-points li {
  position: relative;
  padding-inline-start: var(--space-6);
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.55;
}

.auth-aside-points li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--blue-400);
  border-radius: var(--radius-circle);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.14);
}


/* ============================================================
   03 · AUTH PANEL
   ============================================================
   Contains the card and the help block. Stacks vertically.
   Reads --surface / --text / --border which flip with the
   theme, so the panel is light in light mode and dark in
   dark mode.
   ============================================================ */

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-6);

  padding: var(--space-10) var(--space-8);
  background: var(--surface);
  color: var(--text);
}

/* ---------- CARD ---------- */

.auth-card {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;

  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.auth-card-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.auth-card-title {
  font-family: var(--font-heading);
  margin: 0;
  color: var(--heading);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

html[lang="ar"] .auth-card-title {
  letter-spacing: 0;
  line-height: 1.35;
}

.auth-card-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* ---------- FOOT (switch link) ---------- */

.auth-card-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;

  margin: var(--space-2) 0 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-soft);

  color: var(--text-muted);
  font-size: var(--fs-sm);
  text-align: center;
}

.auth-card-foot a {
  display: inline-flex;
  align-items: center;
  gap: 4px;

  color: var(--blue-600);
  font-weight: var(--fw-bold);
  text-decoration: none;

  transition: color var(--dur-fast) var(--ease);
}

.auth-card-foot a:hover {
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Dark-mode link contrast. --blue-600 on a near-black
   surface is 3.8:1; --blue-400 is 8.6:1. */
html[data-theme="dark"] .auth-card-foot a {
  color: var(--blue-400);
}

html[data-theme="dark"] .auth-card-foot a:hover {
  color: var(--blue-100);
}

/* ---------- PRIMARY (Google button + note) ---------- */

.auth-primary {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.auth-primary-note {
  margin: 0;
  color: var(--text-light);
  font-size: var(--fs-xs);
  line-height: 1.55;
  text-align: center;
}


/* ============================================================
   04 · GOOGLE BUTTON
   ============================================================
   The single primary action on both auth pages. White
   surface, subtle border, brand mark on the left.

   The button reads --surface and --border-strong. In light
   mode that is a white pill with a slate border. In dark
   mode it is a near-black pill with a muted blue-grey
   border. The Google mark itself is untouched — it carries
   its own brand colours.
   ============================================================ */

.btn-google {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);

  width: 100%;
  min-height: 52px;
  padding: 0 var(--space-6);

  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);

  color: var(--text);
  font-family: inherit;
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  line-height: 1;
  cursor: pointer;

  box-shadow: 0 3px 10px rgba(15, 39, 66, 0.06);

  transition:
    border-color     var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease),
    transform        var(--dur-fast) var(--ease),
    box-shadow       var(--dur-fast) var(--ease);
}

html[data-theme="dark"] .btn-google {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.btn-google > * { position: relative; z-index: 1; }

.btn-google:hover {
  background: var(--surface-soft);
  border-color: var(--navy-200);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 39, 66, 0.10);
}

html[data-theme="dark"] .btn-google:hover {
  background: var(--surface-muted);
  border-color: var(--border-strong);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.btn-google:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(15, 39, 66, 0.08);
}

.btn-google:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-outline-offset);
}

/* Loading / disabled */
.btn-google[data-loading="true"],
.btn-google[disabled],
.btn-google[aria-busy="true"] {
  opacity: 0.72;
  cursor: wait;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}

.btn-google[data-loading="true"]::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-end: var(--space-5);
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid currentColor;
  border-inline-end-color: transparent;
  border-radius: var(--radius-circle);
  animation: spin 650ms linear infinite;
  z-index: 2;
}

/* ---------- ICON ---------- */

.btn-google-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.btn-google-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* The Google "G" is a brand mark. It keeps its own colours
   in both themes. No override. */

/* ---------- REGISTER CONSENT BLOCK ---------- */

.auth-consent {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--surface-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}

.auth-consent p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  line-height: 1.6;
}

.auth-consent a {
  color: var(--blue-600);
  font-weight: var(--fw-bold);
  text-decoration: none;
}

.auth-consent a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

html[data-theme="dark"] .auth-consent a {
  color: var(--blue-400);
}

html[data-theme="dark"] .auth-consent a:hover {
  color: var(--blue-100);
}

.auth-consent-note {
  padding-top: var(--space-2);
  border-top: 1px dashed var(--border-soft);
  color: var(--text-light) !important;
  font-weight: var(--fw-semibold);
}


/* ============================================================
   05 · AUTH HELP
   ============================================================
   Supplementary tips block under the card. Login renders a
   <ul>; register renders an <ol>. Both look right with the
   same styles.

   Reads --surface-soft which flips, so the block is a light
   grey on the light panel and a dark-navy block on the dark
   panel.
   ============================================================ */

.auth-help {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  padding: var(--space-5);
  background: var(--surface-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}

.auth-help-title {
  margin: 0 0 var(--space-3);
  color: var(--heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.005em;
  line-height: 1.35;
}

.auth-help-list {
  margin: 0;
  padding-inline-start: var(--space-5);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  line-height: 1.65;
}

.auth-help ul.auth-help-list { list-style: disc; }
.auth-help ol.auth-help-list { list-style: decimal; }

.auth-help-list li {
  margin-bottom: var(--space-2);
}

.auth-help-list li:last-child {
  margin-bottom: 0;
}

.auth-help-list li::marker {
  color: var(--blue-600);
  font-weight: var(--fw-bold);
}

.auth-help-list a {
  color: var(--blue-600);
  font-weight: var(--fw-bold);
  text-decoration: none;
}

.auth-help-list a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

html[data-theme="dark"] .auth-help-list a {
  color: var(--blue-400);
}

html[data-theme="dark"] .auth-help-list a:hover {
  color: var(--blue-100);
}


/* ============================================================
   06 · AUTH CALLBACK
   ============================================================
   Full-page interstitial. No chrome — auth-callback.html
   sets data-no-chrome="true" on the body, which app.js
   reads to skip rendering header, sidebar, footer and
   mobile nav.

   The panel reads --surface, so it is white in light mode
   and dark navy in dark mode. The mark chip reads
   --blue-50 in light mode and swaps to a translucent blue
   tint in dark mode, matching the .modal-confirm-icon
   pattern from overlays.css.
   ============================================================ */

.auth-callback {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--space-8);
  background: var(--surface-soft);
}

.auth-callback-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  text-align: center;

  width: min(100%, 440px);
  padding: var(--space-10) var(--space-8);

  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: 0 22px 55px rgba(15, 39, 66, 0.13);
}

html[data-theme="dark"] .auth-callback-panel {
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.65);
}

html[dir="rtl"] .auth-callback-panel::before {
  right: auto;
  left: -150px;
}

html[dir="rtl"] .auth-callback-panel::after {
  left: auto;
  right: -105px;
}

.auth-callback-panel > * { position: relative; z-index: 1; }

.auth-callback-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-circle);
  color: var(--blue-600);
  font-size: var(--fs-2xl);
}

html[data-theme="dark"] .auth-callback-mark {
  background: rgba(96, 165, 250, 0.10);
  border-color: rgba(96, 165, 250, 0.22);
  color: var(--blue-400);
}

.auth-callback-title {
  font-family: var(--font-heading);
  margin: 0;
  color: var(--heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

html[lang="ar"] .auth-callback-title {
  letter-spacing: 0;
  line-height: 1.35;
}

.auth-callback-body {
  margin: 0;
  max-width: 340px;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

.auth-callback-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 100%;
  margin-top: var(--space-2);
}

.auth-callback-actions .btn {
  width: 100%;
  justify-content: center;
}


/* ============================================================
   07 · ONBOARDING
   ============================================================
   Centered form. No shell. Composes forms.css primitives.

   The note column reads --blue-50 in light mode and a
   translucent blue tint in dark mode. The list bullets use
   a translucent blue in both because they sit on top of the
   tinted note background.
   ============================================================ */

.onboarding {
  padding-block: var(--space-10);
}

.onboarding-inner {
  width: min(var(--container-narrow), calc(100% - 40px));
  margin-inline: auto;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--space-10);
  align-items: start;
}

/* The grid reverses automatically under html[dir="rtl"]:
   the note column moves from the right of the form (LTR) to
   the left of the form (RTL). No explicit RTL rule needed. */

.onboarding-head {
  grid-column: 1 / -1;
  max-width: 640px;
  margin-bottom: var(--space-6);
}

.onboarding-title {
  font-family: var(--font-heading);
  margin: 0;
  color: var(--heading);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

html[lang="ar"] .onboarding-title {
  letter-spacing: 0;
  line-height: 1.35;
}

.onboarding-body {
  margin: var(--space-4) 0 0;
  color: var(--text-muted);
  font-size: var(--fs-md);
  line-height: 1.7;
}

.onboarding-form {
  min-width: 0;
}

.onboarding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

/* ---------- NOTE (side panel) ---------- */

.onboarding-note {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  grid-column: 2;
  grid-row: 2;

  padding: var(--space-5);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-lg);
}

html[data-theme="dark"] .onboarding-note {
  background: rgba(96, 165, 250, 0.08);
  border-color: rgba(96, 165, 250, 0.20);
}

.onboarding-note::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  inset-inline-end: -85px;
  bottom: -85px;
  border: 1px solid rgba(37, 99, 235, 0.10);
  border-radius: var(--radius-circle);
  pointer-events: none;
  z-index: 0;
}

html[dir="rtl"] .onboarding-note::before {
  inset-inline-end: auto;
  inset-inline-start: -85px;
}

.onboarding-note > * { position: relative; z-index: 1; }

.onboarding-note-title {
  margin: 0 0 var(--space-3);
  color: var(--blue-700);
  font-size: var(--fs-sm);
  font-weight: var(--fw-extrabold);
  line-height: 1.3;
}

html[data-theme="dark"] .onboarding-note-title {
  color: var(--blue-400);
}

.onboarding-note-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.onboarding-note-list li {
  position: relative;
  padding-inline-start: var(--space-5);
  color: var(--text-soft);
  font-size: var(--fs-xs);
  line-height: 1.6;
}

.onboarding-note-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  background: var(--blue-600);
  border-radius: var(--radius-circle);
}

html[data-theme="dark"] .onboarding-note-list li::before {
  background: var(--blue-400);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .auth-shell {
    width: min(940px, calc(100% - 32px));
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    min-height: auto;
  }

  .auth-aside {
    padding: var(--space-8) var(--space-8);
  }

  .auth-aside-title { font-size: clamp(26px, 3.4vw, 34px); }

  .auth-panel {
    padding: var(--space-8) var(--space-6);
  }

  .onboarding-inner {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: var(--space-8);
  }
}

@media (max-width: 850px) {
  .auth-shell {
    grid-template-columns: 1fr;
    width: calc(100% - 24px);
    margin: var(--space-5) auto;
    min-height: auto;
  }

  .auth-aside {
    padding: var(--space-6);
    align-items: flex-start;
  }

  .auth-aside-title { font-size: 24px; }
  .auth-aside-body { font-size: var(--fs-sm); }
  .auth-aside-points { margin-top: var(--space-4); }
  .auth-aside-points li { font-size: var(--fs-xs); }

  .auth-panel {
    padding: var(--space-7) var(--space-5);
    gap: var(--space-5);
  }

  .onboarding-inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .onboarding-note {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .auth-shell {
    width: calc(100% - 16px);
    margin: var(--space-3) auto;
    border-radius: var(--radius-xl);
  }

  .auth-aside { padding: var(--space-5); }
  .auth-aside-title { font-size: 22px; }

  .auth-panel { padding: var(--space-6) var(--space-4); }

  .auth-card { gap: var(--space-4); }
  .auth-card-title { font-size: 22px; }

  .btn-google {
    min-height: 48px;
    font-size: var(--fs-sm);
  }

  .auth-callback {
    padding: var(--space-4);
  }

  .auth-callback-panel {
    padding: var(--space-8) var(--space-6);
    border-radius: var(--radius-xl);
  }

  .onboarding {
    padding-block: var(--space-6);
  }

  .onboarding-actions {
    flex-direction: column;
  }

  .onboarding-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .auth-aside { padding: var(--space-4); }
  .auth-panel { padding: var(--space-5) var(--space-3); }
  .btn-google { min-height: 46px; }
}


/* ============================================================
   ACCESSIBILITY
   ============================================================ */

.auth-card-foot a:focus-visible,
.auth-help-list a:focus-visible,
.auth-consent a:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .btn-google,
  .auth-card-foot a,
  .auth-help-list a,
  .auth-consent a {
    transition: none !important;
  }

  .btn-google:hover { transform: none; }
}


/* ============================================================
   PRINT
   ============================================================ */

@media print {
  .auth-aside,
  .auth-help,
  .auth-callback-panel::before,
  .auth-callback-panel::after {
    display: none !important;
  }

  .auth-shell,
  .auth-callback-panel {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    border: none;
    box-shadow: none;
    min-height: auto;
  }

  .auth-panel {
    padding: 0;
  }

  .btn-google {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
}


/* ============================================================
   END OF AUTH
   ------------------------------------------------------------
   Verification:

     ✅ Zero raw hex outside the token block, except for the
        Google "G" brand mark (untouched) and the translucent
        white pill / rings on the branded aside, which must
        stay translucent white in both themes.

     ✅ THEME
          · .auth-aside         --brand-bg / --brand-text
                                never flips
          · .auth-aside-body    --brand-text-soft
          · .auth-shell         --surface / --border — flips
          · .auth-panel         --surface — flips
          · .auth-card          --surface / --heading — flips
          · .auth-card-foot a   --blue-600 (light) →
                                --blue-400 (dark)
          · .auth-consent a     same
          · .auth-help          --surface-soft — flips
          · .auth-help-list a   same blue override
          · .auth-callback-panel --surface — flips
          · .auth-callback-mark --blue-50 (light) →
                                translucent blue (dark)
          · .onboarding-note    --blue-50 (light) →
                                translucent blue (dark)
          · .onboarding-note-title --blue-700 (light) →
                                --blue-400 (dark)
          · .onboarding-note-list li::before --blue-600
                                (light) → --blue-400 (dark)
          · .btn-google         --surface / --border-strong
                                dark-mode shadow override
                                dark-mode hover tint

     ✅ RTL
          · Split grid reverses automatically via the html
            direction. No explicit rule needed.
          · .auth-aside decorative rings mirror to the
            opposite corners.
          · .auth-callback-panel rings mirror.
          · .onboarding-note ring mirrors.
          · Bullet points use inset-inline-start — physical
            start edge in both scripts.
          · Google button spinner uses border-inline-end-color
            and inset-inline-end — spinner sits on the
            correct edge in both scripts.

     ✅ ARABIC
          · letter-spacing zeroed on:
              .auth-aside-inner .eyebrow
              .auth-aside-title
              .auth-card-title
              .auth-callback-title
              .onboarding-title
          · line-height loosened on the three headings:
              .auth-aside-title      1.35
              .auth-card-title       1.35
              .auth-callback-title   1.35
              .onboarding-title      1.35
          · Titles use --font-heading which foundation.css
            and theme.css reassign under html[lang="ar"].

     ✅ Preserved: every class that login.html, register.html,
        onboarding.html, auth-callback.html and app.js
        actually render. No dead code — every selector in
        this file corresponds to markup.

     ✅ Preserved: every responsive breakpoint (1024 / 850 /
        640 / 380), every reduced-motion rule, every print
        rule from the previous version.

     ✅ NEXT PASS: cards.css
          The .dashboard-task-row module is broken (stray
          brace). .dashboard-task-thumb and
          .mk-card-featured-media carry hard-coded
          linear-gradients that stay pastel in dark mode.
          The .thread-message own-bubble reads --navy-800
          which should be --brand-bg. Multiple hard-coded
          rgba shadows need dark-mode equivalents.
   ============================================================ */
