/* =========================================================
   DESIGN TOKENS
========================================================= */
:root {
  /* -- color: maroon/fleet palette -- */
  --maroon-950: #22080B;
  --maroon-900: #330F14;
  --maroon-800: #4A141B;
  --maroon-700: #53181C;
  /* brand primary (existing system) */
  --maroon-600: #7C1F2E;
  /* brand accent (existing system) */
  --maroon-500: #9A3040;
  --maroon-tint: #EEECEC;

  --gold-500: #C99A4B;
  /* fleet / signal accent */
  --gold-300: #E7CC93;
  --gold-100: #F7EDD9;

  /* -- neutral surface palette (cool, near-white — not warm/cream) -- */
  --page-bg: #EEF0F2;
  /* the app/page background behind the panel */
  --page-bg-soft: #F5F6F8;
  --panel-bg: #FFFFFF;
  /* the central panel itself */

  --ink-900: #1F2124;
  --ink-700: #494B4E;
  --ink-500: #75777A;
  --line: #E2E4E6;
  --line-strong: #D3D5D8;

  --ok-500: #2F8F5B;
  --err-500: #B4293A;

  /* -- type -- */
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;

  /* fluid scale — tuned for 1280px (small laptop) → 1920px (desktop) → clamps beyond */
  --fs-eyebrow: clamp(0.68rem, 0.63rem + 0.16vw, 0.78rem);
  --fs-stat-num: clamp(1.15rem, 0.95rem + 0.7vw, 1.6rem);
  --fs-h1: clamp(1.3rem, 1rem + 1.15vw, 1.9rem);
  --fs-h1-lede: clamp(0.8rem, 0.75rem + 0.2vw, 0.92rem);
  --fs-h2: clamp(1.35rem, 1.1rem + 0.9vw, 1.85rem);
  --fs-body: clamp(0.85rem, 0.81rem + 0.16vw, 0.95rem);
  --fs-label: clamp(0.72rem, 0.69rem + 0.1vw, 0.78rem);
  --fs-small: clamp(0.72rem, 0.69rem + 0.1vw, 0.8rem);
  --fs-mono: clamp(0.68rem, 0.65rem + 0.1vw, 0.76rem);

  --space-page: clamp(28px, 6vw, 110px);
  --space-page-y: clamp(12px, 2.5vh, 32px);
  --space-panel-pad: clamp(2rem, 0.8rem + 4.2vw, 4.75rem);
  --space-card-pad: clamp(1.5rem, 0.9rem + 2vw, 3rem);
  --space-field-gap: clamp(0.85rem, 0.7rem + 0.5vw, 1.15rem);
  --space-stack: clamp(1.4rem, 1rem + 1.4vw, 2.25rem);

  --radius-shell: 24px;
  --radius-card: clamp(14px, 0.6vw + 10px, 20px);
  --radius-input: 10px;
  --radius-pill: 999px;

  --form-max: clamp(340px, 22vw + 220px, 440px);

  /* CHANGED: narrower cap (was 1760px) — the shell was reading too wide
     relative to its height. This is the main knob for overall width;
     lower it further for an even narrower box. */
  --shell-max: 1180px;

  /* NEW: a floor for the shell's height, so it doesn't read too short
     just because the sign-in pane's content happens to be compact.
     Content can still make it taller on its own (e.g. the sign-up
     pane), and max-height (on .shell) still caps it from ever
     overflowing the viewport. */
  --shell-min-h: 620px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink-900);
  background:
    radial-gradient(ellipse 900px 600px at 15% 10%, var(--page-bg-soft) 0%, transparent 60%),
    var(--page-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-page-y) var(--space-page);
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
}

/* faint global dot-grid so ultra-wide monitors don't feel empty behind the panel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .35;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 0%, transparent 75%);
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

/* =========================================================
   SHELL / SPLIT LAYOUT — the central rounded panel
========================================================= */
.shell {
  position: relative;
  width: 100%;
  max-width: var(--shell-max);
  /* NEW: floor, so the box doesn't read short/squat on the (fairly
     compact) sign-in pane — see --shell-min-h above. */
  min-height: var(--shell-min-h);
  /* max-height is still just a safety ceiling — never a target — so a
     very long pane or a short window can't push .shell past the
     viewport; .auth's overflow-y:auto scrolls internally instead. */
  max-height: calc(100vh - 2 * var(--space-page-y));
  /* NEW: without this, CSS Grid's default row sizing ('auto') sizes the
     row to fit the tallest pane's full content height, ignoring
     max-height entirely — so on the taller sign-up pane, the row grew
     past the cap and .shell's `overflow: hidden` (needed to clip to the
     rounded corners) just cut the excess off, with no way to reach it.
     `minmax(0, 1fr)` tells the row it's allowed to shrink down to fit
     within whatever height .shell actually ends up with (bounded by
     min-height/max-height above) — which is what lets .auth's own
     `overflow-y: auto` (below) properly take over and scroll internally
     once content doesn't fit, instead of silently getting clipped. */
  grid-template-rows: minmax(0, 1fr);
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) 1fr;
  background: var(--panel-bg);
  border-radius: var(--radius-shell);
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(31, 33, 36, .04),
    0 30px 60px -25px rgba(31, 33, 36, .22),
    0 12px 24px -16px rgba(31, 33, 36, .14);
}

/* ---------------------------------------------------------
   LEFT — BRAND / FLEET PANEL
--------------------------------------------------------- */
.brand {
  position: relative;
  overflow: hidden;
  padding: clamp(1.1rem, 0.7rem + 1.6vw, 2rem) clamp(1.75rem, 1rem + 3vw, 3.25rem);
  display: flex;
  flex-direction: column;
  color: var(--gold-100);
  background:
    radial-gradient(1100px 700px at -10% -15%, var(--maroon-500) 0%, transparent 55%),
    radial-gradient(900px 900px at 115% 115%, var(--maroon-800) 0%, transparent 60%),
    linear-gradient(160deg, rgba(51, 15, 20, 0.93) 0%, rgba(34, 8, 11, 0.96) 78%),
    url('/capstone-logistics-system/shared/assets/auth-rbac/Marvel-BG.png');
  background-size: auto, auto, auto, cover;
  background-position: 0 0, 0 0, 0 0, center;
  background-repeat: no-repeat;
  background-blend-mode: normal, normal, multiply, normal;
}

.brand-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .7rem;
}

.brand-mark {
  width: clamp(34px, 2.2vw + 24px, 42px);
  height: clamp(34px, 2.2vw + 24px, 42px);
  border-radius: 10px;
  overflow: hidden;
  flex: none;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.brand-name {
  line-height: 1.15;
}

.brand-name strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(.86rem, .7rem + .5vw, 1rem);
  letter-spacing: .01em;
  color: #fff;
}

.brand-name span {
  display: block;
  font-size: var(--fs-eyebrow);
  color: var(--gold-300);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-top: .15rem;
}

.brand-mid {
  position: relative;
  z-index: 2;
  margin-top: clamp(.5rem, 1vw + .25rem, 1rem);
}

.brand-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 1rem;
}

.brand-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 154, 75, .25);
}

.brand h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 .6rem 0;
  color: #fff;
  max-width: 19ch;
}

.brand h1 em {
  font-style: normal;
  color: var(--gold-300);
}

.brand p.lede {
  font-size: var(--fs-h1-lede);
  line-height: 1.6;
  color: #E6D6CF;
  opacity: .82;
  max-width: 36ch;
  margin: 0;
}

/* animated route illustration */
.route-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  margin: clamp(.75rem, 1.5vw, 1.25rem) -0.5rem 0;
  min-height: 110px;
  max-height: 340px;
}

.route-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.route-line {
  fill: none;
  stroke: var(--gold-300);
  stroke-width: 2;
  stroke-dasharray: 1 9;
  stroke-linecap: round;
  opacity: .85;
}

.route-line.solid {
  stroke: rgba(231, 204, 147, .28);
  stroke-dasharray: none;
  stroke-width: 1.4;
}

.wp circle {
  fill: var(--maroon-950);
  stroke: var(--gold-300);
  stroke-width: 1.6;
}

.wp.hub circle {
  fill: var(--gold-500);
  stroke: var(--maroon-950);
}

.wp text {
  font-family: var(--font-mono);
  font-size: 6.4px;
  fill: #E9D9CE;
  opacity: .85;
  letter-spacing: .02em;
}

.wp.hub text {
  fill: var(--gold-300);
}

.truck-icon path {
  fill: var(--maroon-950);
}

.truck-icon circle {
  fill: var(--maroon-950);
}

.truck-glow {
  fill: var(--gold-500);
  opacity: .9;
}

/* ---------------------------------------------------------
   RIGHT — AUTH PANEL
--------------------------------------------------------- */
.auth-logo {
  display: block;
  width: clamp(140px, 12vw, 200px);
  height: auto;
  margin: 0 auto clamp(1.25rem, 2.5vw, 2rem);
}

.auth {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  min-height: 0;
  overflow-y: auto;
  padding: clamp(1.25rem, 2vw, 2.5rem);
  background: var(--panel-bg);
}

.auth-inner {
  width: 100%;
  max-width: var(--form-max);
  flex: none;
  padding-block: .25rem;
}

.eyebrow-small {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--maroon-600);
  display: block;
  margin-bottom: .4rem;
}

.auth h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  color: var(--ink-900);
  margin: 0 0 .4rem 0;
  letter-spacing: -.01em;
}

.auth .sub {
  font-size: var(--fs-body);
  color: var(--ink-500);
  margin: 0;
  line-height: 1.55;
}

.auth-checkbox .legal-notice {
  margin: 0;
  line-height: 1.3;
}

/* forms */
.panes {
  position: relative;
}

.pane {
  display: none;
}

.pane.active {
  display: block;
  animation: paneIn .38s cubic-bezier(.2, .7, .3, 1) both;
}

.pane #login-msg,
.pane #register-msg {
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}

@keyframes paneIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

form {
  display: flex;
  flex-direction: column;
  gap: var(--space-field-gap);
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-field-gap);
}

.field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.field label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-label);
  color: var(--ink-700);
  letter-spacing: .01em;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap svg.ic {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 16px;
  stroke: var(--ink-500);
  pointer-events: none;
  flex: none;
}

.input-wrap i.ic {
  position: absolute;
  left: 14px;
  font-size: 15px;
  color: var(--ink-500);
  pointer-events: none;
  flex: none;
}

input,
select {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--ink-900);
  background: #fff;
  border: 1.4px solid var(--line);
  border-radius: var(--radius-input);
  padding: .78rem .9rem .78rem 2.5rem;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  appearance: none;
  -webkit-appearance: none;
}

select {
  padding-right: 2.4rem;
  cursor: pointer;
}

select:disabled {
  cursor: not-allowed;
  color: var(--ink-500);
  background: var(--maroon-tint);
}

.input-wrap.select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.6px solid var(--ink-500);
  border-bottom: 1.6px solid var(--ink-500);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

input::placeholder {
  color: #AFAFAF;
}

input:hover,
select:hover {
  border-color: var(--line-strong);
}

input:focus,
select:focus {
  border-color: var(--maroon-600);
  box-shadow: 0 0 0 4px rgba(124, 31, 46, .1);
  background: #fff;
}

.pw-toggle {
  position: absolute;
  right: 6px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  border-radius: 8px;
  color: var(--ink-500);
  transition: color .15s ease, background .15s ease;
}

.pw-toggle:hover {
  color: var(--maroon-700);
  background: var(--maroon-tint);
}

.pw-toggle svg {
  width: 16px;
  height: 16px;
}

.pw-toggle i {
  font-size: 15px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hint {
  font-size: var(--fs-small);
  color: var(--ink-500);
}

.hint.match {
  color: var(--ok-500);
}

.hint.mismatch {
  color: var(--err-500);
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-small);
}

.check {
  position: relative;
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  user-select: none;
  color: var(--ink-700);
}

.check input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  opacity: 0;
}

.check input:focus-visible + .box {
  outline: 2px solid var(--maroon-600);
  outline-offset: 3px;
}

.check .box {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1.6px solid var(--line-strong);
  background: #fff;
  flex: none;
  position: relative;
  transition: .15s ease;
}

.check input:checked+.box {
  background: var(--maroon-700);
  border-color: var(--maroon-700);
}

.check .box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 4px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(40deg);
  opacity: 0;
  transition: opacity .1s ease;
}

.check input:checked+.box::after {
  opacity: 1;
}

.link {
  color: var(--maroon-700);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1.4px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}

.link:hover {
  border-color: var(--maroon-600);
}

.submit {
  margin-top: .35rem;
  width: 100%;
  border: none;
  cursor: pointer;
  padding: .9rem 1rem;
  border-radius: var(--radius-input);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-body);
  letter-spacing: .02em;
  color: #fff;
  background: linear-gradient(135deg, var(--maroon-600), var(--maroon-700) 60%, var(--maroon-800));
  box-shadow: 0 10px 22px -10px rgba(83, 24, 28, .55);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}

.submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -10px rgba(83, 24, 28, .6);
  filter: brightness(1.04);
}

.submit:active {
  transform: translateY(0);
}

.submit svg {
  width: 15px;
  height: 15px;
  transition: transform .15s ease;
}

.submit:hover svg {
  transform: translateX(2px);
}

.switch-line {
  text-align: center;
  margin-top: var(--space-stack);
  font-size: var(--fs-body);
  color: var(--ink-500);
}

.role-fleet-note {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  background: var(--maroon-tint);
  border: 1px solid #EAD6D3;
  border-radius: 10px;
  padding: .7rem .8rem;
  font-size: var(--fs-small);
  color: var(--ink-700);
  line-height: 1.45;
}

.role-fleet-note svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 1px;
  stroke: var(--maroon-700);
}

/* =========================================================
   AUTH FEEDBACK MESSAGES (error / success banners)
========================================================= */
.auth-msg {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .7rem .9rem;
  border-radius: var(--radius-input);
  font-size: var(--fs-small);
  line-height: 1.45;
}

.auth-msg i {
  flex: none;
}

.auth-msg.error {
  display: flex;
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

.auth-msg.success {
  display: flex;
  background: #F0FDF4;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.admin-notice {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  background: var(--maroon-tint);
  border: 1px solid #EAD6D3;
  border-radius: 10px;
  padding: .7rem .8rem;
  font-size: var(--fs-small);
  color: var(--ink-700);
  line-height: 1.45;
}

.admin-notice i {
  flex: none;
  margin-top: 1px;
  color: var(--maroon-700);
}

/* =========================================================
   PASSWORD STRENGTH METER
========================================================= */
.pw-strength {
  margin-top: .6rem;
}

.pw-strength-track {
  height: 4px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: .5rem;
}

.pw-strength-fill {
  height: 100%;
  width: 0%;
  transition: width .3s ease, background .3s ease;
  border-radius: 4px;
}

.pw-rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
}

.pw-rules li {
  font-size: var(--fs-small);
  display: flex;
  align-items: center;
  gap: 5px;
}

.rule-fail {
  color: var(--ink-500);
}

.rule-pass {
  color: var(--ok-500);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1080px) {
  .shell {
    grid-template-columns: minmax(300px, 0.78fr) 1fr;
  }

  .brand h1 {
    max-width: 16ch;
  }
}

@media (max-width: 860px) {
  :root {
    --space-page: clamp(10px, 3vw, 24px);
    --space-page-y: clamp(16px, 4vh, 40px);
  }

  .shell {
    grid-template-columns: 1fr;
    /* Stacked mobile layout: brand row + auth row size to their own
       content top-to-bottom, ignoring the desktop's height floor/ceiling. */
    align-self: flex-start;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .brand {
    padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1.25rem, 5vw, 2rem);
  }

  .brand-mid {
    margin-top: 1.5rem;
  }

  .brand h1 {
    font-size: clamp(1.5rem, 1.1rem+2.4vw, 2rem);
    max-width: 22ch;
  }

  .route-wrap {
    min-height: 150px;
    max-height: 220px;
    margin-top: 1rem;
  }

  .auth {
    padding: 2rem clamp(1.25rem, 5vw, 2rem) 3rem;
  }
}

@media (max-width: 480px) {
  .row-2 {
    grid-template-columns: 1fr;
  }

  .route-wrap {
    display: none;
  }

  .brand {
    padding-bottom: 1.75rem;
  }
}

@media (min-width: 1600px) {
  :root {
    --form-max: 470px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pane.active {
    animation: none;
  }

  .truck-motion {
    animation-play-state: paused !important;
  }

  * {
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--maroon-600);
  outline-offset: 2px;
}

.legal-notice {
  margin: 1rem 0 0;
  text-align: center;
  font-size: var(--fs-small);
  line-height: 1.65;
  color: var(--ink-700);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Authentication motion stays local to the sign-in/sign-up page. */
.auth-page .panes.is-switching { overflow: hidden; }
.auth-page .panes.is-switching .pane { animation: none; }
.auth-page .pane.auth-pane-leaving {
  display: block;
  position: absolute;
  inset: 0 0 auto;
  pointer-events: none;
}
.auth-page .input-wrap .ic { transition: color 180ms ease; }
.auth-page .input-wrap:focus-within .ic { color: var(--maroon-600); }
.auth-page input[aria-invalid="true"], .auth-page select[aria-invalid="true"] {
  border-color: #b91c1c;
}
.auth-page .auth-field-error {
  margin: 7px 0 0;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: #b91c1c;
}
.auth-page .auth-field-error[hidden] { display: none; }
.auth-page .submit:not(:disabled):active { transform: scale(.985); }
.auth-page .submit:disabled { cursor: wait; transform: none; filter: none; }
.auth-page .submit[aria-busy="true"]::before {
  content: '';
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border: 2px solid #ffffff66;
  border-top-color: white;
  border-radius: 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .auth-page .auth-inner { animation: auth-arrive 320ms ease-out; }
  .auth-page .pane.active { animation: none; }
  .auth-page .auth-msg:is(.error,.success),
  .auth-page .auth-field-error:not([hidden]),
  .auth-page .hint:is(.match,.mismatch) { animation: auth-feedback 180ms ease-out; }
  .auth-page .auth-msg.success > i { animation: auth-check 260ms ease-out; }
  .auth-page .submit[aria-busy="true"]::before { animation: auth-spin 700ms linear infinite; }
}
@keyframes auth-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes auth-feedback { from { opacity: 0; } to { opacity: 1; } }
@keyframes auth-check { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }
@keyframes auth-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .auth-page *, .auth-page *::before, .auth-page *::after {
    animation: none !important;
    transition: none !important;
  }
}
