/* Login and change-password. Scope: body.auth-body, .auth-* .
   Stepped animations, one fog blend. Keep the overlay outside the atmosphere blend group.
   Do not remove soft-light from the fog. */

:root {
  --auth-ink: var(--dash-ink);
  --auth-ink-deep: var(--dash-auth-deep);
  --auth-night: var(--dash-ink);
  --auth-night-deep: var(--dash-auth-deep);
  --auth-accent: var(--dash-link);
  --auth-accent-strong: var(--dash-auth-accent);
  --auth-soft: var(--dash-wash-2);
  --auth-line: var(--dash-line-strong);
  --auth-muted: var(--dash-ink-soft);
  --auth-panel: var(--dash-paper);
  --auth-critical: var(--dash-auth-critical);
  --auth-well: var(--dash-wash-2);
  --auth-console: rgba(7, 18, 79, 0.82);
}


body.auth-body {
  min-height: 100vh;
  overflow: hidden !important;
  background: var(--auth-night) !important;
  color: var(--dash-paper) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.auth-body .auth-shell {
  position: relative !important;
  min-height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  padding: 0 !important;
  display: block !important;
  color: var(--dash-paper) !important;
  background: var(--auth-night) !important;
}

body.auth-body .auth-shell::before,
body.auth-body .auth-shell::after {
  content: none !important;
  display: none !important;
}

body.auth-body .auth-flash-wrap {
  position: absolute;
  z-index: 5;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, calc(100% - 48px));
  margin: 0;
}

body.auth-body .auth-flash-wrap .alert {
  border-radius: 8px;
  border-color: rgba(197, 208, 232, 0.35);
  background: rgba(7, 18, 79, 0.94);
  color: var(--dash-text);
  backdrop-filter: blur(10px);
}

body.auth-body .auth-flash-wrap .btn-close {
  filter: invert(1) grayscale(1) brightness(1.8);
  opacity: 0.78;
}


/* Ease curve sampled at 12.5% so steps() keeps the original motion. */

@keyframes auth-aurora {
  0%, 100% { opacity: 0.55; }
  12.5% { opacity: 0.5926; }
  25% { opacity: 0.715; }
  37.5% { opacity: 0.8374; }
  50% { opacity: 0.88; }
  62.5% { opacity: 0.8374; }
  75% { opacity: 0.715; }
  87.5% { opacity: 0.5926; }
}

@keyframes auth-bloom {
  0%, 100% { opacity: 0.5; }
  12.5% { opacity: 0.5413; }
  25% { opacity: 0.66; }
  37.5% { opacity: 0.7787; }
  50% { opacity: 0.82; }
  62.5% { opacity: 0.7787; }
  75% { opacity: 0.66; }
  87.5% { opacity: 0.5413; }
}

@keyframes auth-horizon {
  0%, 100% { opacity: 0.88; }
  12.5% { opacity: 0.8955; }
  25% { opacity: 0.94; }
  37.5% { opacity: 0.9845; }
  50% { opacity: 1; }
  62.5% { opacity: 0.9845; }
  75% { opacity: 0.94; }
  87.5% { opacity: 0.8955; }
}

@keyframes auth-fog-a {
  0%, 100% { transform: translate3d(-4%, 2%, 0) scale(1.05); opacity: 0.42; }
  12.5% { transform: translate3d(-2.839%, 1.355%, 0) scale(1.059); opacity: 0.4535; }
  25% { transform: translate3d(0.5%, -0.5%, 0) scale(1.085); opacity: 0.55; }
  37.5% { transform: translate3d(3.839%, -2.355%, 0) scale(1.111); opacity: 0.6465; }
  50% { transform: translate3d(5%, -3%, 0) scale(1.12); opacity: 0.68; }
  62.5% { transform: translate3d(3.839%, -2.355%, 0) scale(1.111); opacity: 0.6465; }
  75% { transform: translate3d(0.5%, -0.5%, 0) scale(1.085); opacity: 0.55; }
  87.5% { transform: translate3d(-2.839%, 1.355%, 0) scale(1.059); opacity: 0.4535; }
}

@keyframes auth-fog-b {
  0%, 100% { transform: translate3d(6%, -2%, 0) scale(1.08); opacity: 0.35; }
  12.5% { transform: translate3d(4.323%, -1.226%, 0) scale(1.0929); opacity: 0.3848; }
  25% { transform: translate3d(-0.5%, 1%, 0) scale(1.13); opacity: 0.485; }
  37.5% { transform: translate3d(-5.323%, 3.226%, 0) scale(1.1671); opacity: 0.5852; }
  50% { transform: translate3d(-7%, 4%, 0) scale(1.18); opacity: 0.62; }
  62.5% { transform: translate3d(-5.323%, 3.226%, 0) scale(1.1671); opacity: 0.5852; }
  75% { transform: translate3d(-0.5%, 1%, 0) scale(1.13); opacity: 0.485; }
  87.5% { transform: translate3d(4.323%, -1.226%, 0) scale(1.0929); opacity: 0.3848; }
}

@keyframes auth-fog-c {
  0%, 100% { transform: translate3d(-2%, 6%, 0) scale(1.1); opacity: 0.28; }
  12.5% { transform: translate3d(-1.226%, 4.581%, 0) scale(1.1129); opacity: 0.3084; }
  25% { transform: translate3d(1%, 0.5%, 0) scale(1.15); opacity: 0.39; }
  37.5% { transform: translate3d(3.226%, -3.581%, 0) scale(1.1871); opacity: 0.4716; }
  50% { transform: translate3d(4%, -5%, 0) scale(1.2); opacity: 0.5; }
  62.5% { transform: translate3d(3.226%, -3.581%, 0) scale(1.1871); opacity: 0.4716; }
  75% { transform: translate3d(1%, 0.5%, 0) scale(1.15); opacity: 0.39; }
  87.5% { transform: translate3d(-1.226%, 4.581%, 0) scale(1.1129); opacity: 0.3084; }
}

@keyframes auth-coast-dash {
  to { stroke-dashoffset: -220; }
}

@keyframes auth-node-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  12.5% { opacity: 0.8694; transform: scale(1.0452); }
  25% { opacity: 0.925; transform: scale(1.175); }
  37.5% { opacity: 0.9807; transform: scale(1.3049); }
  50% { opacity: 1; transform: scale(1.35); }
  62.5% { opacity: 0.9807; transform: scale(1.3049); }
  75% { opacity: 0.925; transform: scale(1.175); }
  87.5% { opacity: 0.8694; transform: scale(1.0452); }
}

@keyframes auth-ring-pulse {
  0% { opacity: 0.45; transform: scale(0.85); }
  17.5% { opacity: 0.2795; transform: scale(1.229); }
  35% { opacity: 0.1422; transform: scale(1.534); }
  52.5% { opacity: 0.0423; transform: scale(1.756); }
  70%, 100% { opacity: 0; transform: scale(1.85); }
}

@keyframes auth-droplet-drip {
  0% { transform: translate3d(0, 0, 0); }
  /* Only the long fall is quantised. The 0-12% swell and the implicit opacity ramp keep the
     animation-level linear easing, so the fade stays smooth. */
  12% { transform: translate3d(0, 2px, 0); animation-timing-function: steps(440); }
  100% { transform: translate3d(0, 52vh, 0); opacity: 0.15; }
}

@keyframes auth-duty-pulse {
  0%, 100% { text-shadow: 0 0 8px rgba(52, 211, 153, 0.35), 0 0 18px rgba(52, 211, 153, 0.18); }
  50% { text-shadow: 0 0 12px rgba(52, 211, 153, 0.55), 0 0 28px rgba(52, 211, 153, 0.28); }
}

@keyframes auth-place-glow {
  0%, 100% { text-shadow: 0 0 8px rgba(251, 191, 36, 0.22), 0 4px 12px rgba(7, 18, 79, 0.35); }
  50% { text-shadow: 0 0 14px rgba(251, 191, 36, 0.4), 0 4px 14px rgba(7, 18, 79, 0.35); }
}

@keyframes auth-rule-core {
  /* Quiet hold, then a load pulse every cycle */
  0%, 68% {
    transform: scaleX(1);
    opacity: 0.88;
    filter: brightness(1);
    box-shadow: 0 0 14px rgba(16, 136, 248, 0.45);
  }
  74% {
    transform: scaleX(0.18);
    opacity: 0.35;
    filter: brightness(0.85);
    box-shadow: 0 0 6px rgba(16, 136, 248, 0.2);
  }
  76% {
    transform: scaleX(0.18);
    opacity: 0.4;
  }
  88% {
    transform: scaleX(1.06);
    opacity: 1;
    filter: brightness(1.35);
    box-shadow: 0 0 22px rgba(56, 189, 248, 0.75);
  }
  100% {
    transform: scaleX(1);
    opacity: 0.88;
    filter: brightness(1);
    box-shadow: 0 0 14px rgba(16, 136, 248, 0.45);
  }
}

@keyframes auth-rule-node {
  0%, 68% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(16, 136, 248, 0.45), 0 0 0 0 rgba(16, 136, 248, 0.15);
  }
  74%, 76% {
    transform: scale(0.7);
    box-shadow: 0 0 4px rgba(16, 136, 248, 0.25);
  }
  88% {
    transform: scale(1.25);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.85), 0 0 0 5px rgba(16, 136, 248, 0.18);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(16, 136, 248, 0.45), 0 0 0 0 rgba(16, 136, 248, 0.15);
  }
}

@keyframes auth-rule-ticks {
  0%, 68% { opacity: 0.55; }
  74%, 76% { opacity: 0.2; }
  88% { opacity: 1; }
  100% { opacity: 0.55; }
}

@keyframes auth-rule-scan {
  0%, 72% {
    transform: translate3d(-30%, 0, 0);
    opacity: 0;
  }
  76% {
    opacity: 0.9;
  }
  90% {
    transform: translate3d(160%, 0, 0);
    opacity: 0;
  }
  100% {
    transform: translate3d(160%, 0, 0);
    opacity: 0;
  }
}

@keyframes auth-glass-sheen {
  0%, 100% { opacity: 0.22; transform: translate3d(-2%, 0, 0); }
  12.5% { opacity: 0.2406; transform: translate3d(-1.355%, 0, 0); }
  25% { opacity: 0.3; transform: translate3d(0.5%, 0, 0); }
  37.5% { opacity: 0.3594; transform: translate3d(2.355%, 0, 0); }
  50% { opacity: 0.38; transform: translate3d(3%, 0, 0); }
  62.5% { opacity: 0.3594; transform: translate3d(2.355%, 0, 0); }
  75% { opacity: 0.3; transform: translate3d(0.5%, 0, 0); }
  87.5% { opacity: 0.2406; transform: translate3d(-1.355%, 0, 0); }
}

@keyframes auth-brand-in {
  from { opacity: 0; transform: translate3d(-12px, 10px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes auth-console-in {
  from { opacity: 0; transform: translate3d(18px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes auth-spine {
  0%, 100% { opacity: 0.55; }
  12.5% { opacity: 0.6081; }
  25% { opacity: 0.775; }
  37.5% { opacity: 0.942; }
  50% { opacity: 1; }
  62.5% { opacity: 0.942; }
  75% { opacity: 0.775; }
  87.5% { opacity: 0.6081; }
}

body.auth-body .auth-atmosphere {
  --auth-mx: 38%;
  --auth-my: 48%;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  isolation: isolate;
  contain: paint;
}

body.auth-body .auth-atmosphere-field {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 42% 40%, rgba(16, 136, 248, 0.34), transparent 62%),
    radial-gradient(ellipse 48% 40% at 72% 55%, rgba(10, 61, 158, 0.35), transparent 70%),
    linear-gradient(155deg, var(--dash-auth-map-1) 0%, var(--dash-ink) 34%, var(--dash-auth-map-2) 68%, var(--dash-auth-map-3) 100%);
}

/* Artistic municipal map ? coast east, hinterland west */
body.auth-body .auth-map-plane {
  position: absolute;
  inset: -4%;
  /* The map is several stacked layers (see login.html), and applying either of these per layer is
     not the same picture as applying it once to the whole thing, so they live on the shared parent. */
  opacity: 0.92;
  filter: contrast(1.05) saturate(1.08);
}

body.auth-body .auth-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Dash ticks redraw only these strokes. Keep about 50ms per step.
   login.html replaces the duration and dash pattern on each load. */
body.auth-body .auth-map-coast {
  stroke-dasharray: 14 10;
  animation: auth-coast-dash 28s steps(560) infinite;
}

body.auth-body .auth-map-coast-soft {
  filter: blur(3px);
  opacity: 0.55;
}

body.auth-body .auth-map-river {
  stroke-dasharray: 6 14;
  animation: auth-coast-dash 40s steps(800) infinite reverse;
}

body.auth-body .auth-map-node-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: auth-node-pulse 3.6s steps(9) infinite;
}

body.auth-body .auth-map-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: auth-ring-pulse 3.6s steps(13) infinite;
}

body.auth-body .auth-atmosphere-aurora {
  position: absolute;
  left: -10%;
  right: 10%;
  top: 18%;
  height: 55%;
  /* Blur lives on ::before so opacity animation does not re-filter each frame */
  background: none;
  filter: none;
  mix-blend-mode: screen;
  animation: auth-aurora 16s steps(40) infinite;
}

body.auth-body .auth-atmosphere-aurora::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 50% at 40% 48%, rgba(16, 136, 248, 0.32), transparent 70%),
    radial-gradient(ellipse 40% 36% at 62% 58%, rgba(238, 242, 251, 0.1), transparent 72%);
  filter: blur(8px);
}

body.auth-body .auth-atmosphere-bloom {
  position: absolute;
  left: 22%;
  top: 28%;
  width: 46%;
  height: 44%;
  background: none;
  filter: none;
  animation: auth-bloom 14s steps(35) infinite;
}

body.auth-body .auth-atmosphere-bloom::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(16, 136, 248, 0.3), transparent 68%);
  filter: blur(40px);
}

/* One soft-light pass for the fog. Do not remove soft-light; the change is visible. */
body.auth-body .auth-fog-group {
  position: absolute;
  inset: 0;
  pointer-events: none;
  isolation: isolate;
  mix-blend-mode: soft-light;
}

body.auth-body .auth-fog {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background: none;
  filter: none;
}

body.auth-body .auth-fog::before {
  content: "";
  position: absolute;
  inset: 0;
}

/* Fog planes sample at 50ms. Keep soft-light; see the file header. */
body.auth-body .auth-fog-a {
  animation: auth-fog-a 22s steps(55) infinite;
}

body.auth-body .auth-fog-a::before {
  background:
    radial-gradient(ellipse 50% 36% at 28% 42%, rgba(238, 242, 251, 0.38), transparent 70%),
    radial-gradient(ellipse 42% 30% at 62% 58%, rgba(197, 208, 232, 0.22), transparent 72%);
  filter: blur(48px);
}

body.auth-body .auth-fog-b {
  animation: auth-fog-b 31s steps(78) infinite;
}

body.auth-body .auth-fog-b::before {
  background:
    radial-gradient(ellipse 55% 40% at 70% 35%, rgba(16, 136, 248, 0.2), transparent 68%),
    radial-gradient(ellipse 48% 34% at 35% 70%, rgba(238, 242, 251, 0.28), transparent 74%);
  filter: blur(56px);
}

body.auth-body .auth-fog-c {
  animation: auth-fog-c 26s steps(65) infinite;
}

body.auth-body .auth-fog-c::before {
  background:
    radial-gradient(ellipse 60% 28% at 48% 78%, rgba(197, 208, 232, 0.24), transparent 70%),
    radial-gradient(ellipse 36% 42% at 18% 28%, rgba(79, 141, 247, 0.16), transparent 68%);
  filter: blur(64px);
}

/* Moved with transform. 708×572 is the painted extent of the gradient. */
body.auth-body .auth-cursor-light {
  position: absolute;
  width: 708px;
  height: 572px;
  left: 0;
  top: 0;
  margin-left: -354px;
  margin-top: -286px;
  transform: translate3d(38vw, 48vh, 0);
  background:
    radial-gradient(
      520px 420px at 50% 50%,
      rgba(238, 242, 251, 0.22) 0%,
      rgba(16, 136, 248, 0.16) 22%,
      rgba(16, 136, 248, 0.05) 42%,
      transparent 68%
    );
  mix-blend-mode: screen;
  opacity: 1;
  transition: opacity 280ms ease;
  pointer-events: none;
}

body.auth-body.auth-pointer-console .auth-cursor-light {
  opacity: 0.12;
}

/* Vignette and glass sit outside the atmosphere blend group. */
body.auth-body .auth-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

body.auth-body .auth-glass {
  position: absolute;
  inset: 0;
  z-index: 2;
}

body.auth-body .auth-glass-film {
  position: absolute;
  inset: 0;
  /* No live backdrop-filter: it resamples every animated layer each frame. */
  background:
    linear-gradient(125deg, rgba(238, 242, 251, 0.08) 0%, transparent 28%, transparent 62%, rgba(16, 136, 248, 0.07) 100%),
    radial-gradient(ellipse 90% 70% at 50% 40%, rgba(255, 255, 255, 0.05), transparent 60%);
}

body.auth-body .auth-droplets {
  position: absolute;
  inset: 0;
  overflow: hidden;
  contain: layout style paint;
}

body.auth-body .auth-droplet {
  position: absolute;
  border-radius: 50% 50% 50% 50% / 52% 52% 48% 48%;
  background:
    radial-gradient(ellipse 55% 45% at 32% 28%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.35) 35%, rgba(16, 136, 248, 0.12) 62%, rgba(7, 18, 79, 0.15) 100%);
  box-shadow:
    inset 0 -2px 4px rgba(7, 18, 79, 0.25),
    inset 1px 1px 2px rgba(255, 255, 255, 0.55),
    0 1px 2px rgba(7, 18, 79, 0.2);
}

body.auth-body .auth-droplet-lg {
  border-radius: 46% 54% 48% 52% / 42% 58% 42% 58%;
  box-shadow:
    inset 0 -3px 6px rgba(7, 18, 79, 0.28),
    inset 2px 2px 3px rgba(255, 255, 255, 0.65),
    0 2px 6px rgba(7, 18, 79, 0.22),
    0 0 12px rgba(16, 136, 248, 0.12);
}

body.auth-body .auth-droplet-drip {
  animation: auth-droplet-drip var(--drip-dur, 18s) linear var(--drip-delay, 0s) infinite;
}

/* Normal blending. soft-light has no visible effect on this transparent layer. */
body.auth-body .auth-glass-sheen {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, transparent 18%, rgba(255, 255, 255, 0.07) 42%, transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 18%);
  animation: auth-glass-sheen 18s steps(45) infinite;
}

body.auth-body .auth-window-rim {
  position: absolute;
  inset: 0;
  box-shadow:
    inset 0 0 80px rgba(5, 13, 56, 0.55),
    inset 0 0 0 1px rgba(197, 208, 232, 0.08);
  background:
    linear-gradient(90deg, rgba(5, 13, 56, 0.35) 0%, transparent 8%, transparent 92%, rgba(5, 13, 56, 0.45) 100%),
    linear-gradient(180deg, rgba(5, 13, 56, 0.28) 0%, transparent 10%, transparent 88%, rgba(5, 13, 56, 0.4) 100%);
}

body.auth-body .auth-atmosphere-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 0%, rgba(13, 26, 120, 0.18) 30%, rgba(5, 13, 56, 0.72) 100%);
  animation: auth-horizon 12s steps(30) infinite;
}

body.auth-body .auth-atmosphere-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 72% 68% at 36% 44%, transparent 20%, rgba(5, 13, 56, 0.5) 100%),
    linear-gradient(90deg, transparent 0%, transparent 55%, rgba(5, 13, 56, 0.42) 100%);
}

/* Legacy atmosphere nodes (hidden) */


body.auth-body .auth-stage.auth-stage-floor{
  position: relative !important;
  z-index: 1 !important;
  box-sizing: border-box !important;
  min-height: 100vh !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px) !important;
  gap: 0 !important;
  align-items: stretch !important;
}

/* Kill legacy floating instrument card if present */

/* --- Brand floor (open night ? not a panel) --- */

body.auth-body .auth-floor-brand{
  position: relative !important;
  z-index: 1 !important;
  max-width: none !important;
  min-height: 100vh !important;
  padding: 48px 56px 40px 64px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 0 !important;
  background: transparent !important;
  border: 0 !important;
  animation: auth-brand-in 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.auth-body .auth-floor-brand-core {
  display: grid;
  justify-items: start;
  align-content: center;
  flex: 1 1 auto;
  padding-top: 4vh;
  max-width: 34rem;
}

body.auth-body .auth-brand-logo,
body.auth-body .auth-brand-seal {
  /* Official crest asset is 190?230 ? box matches that ratio exactly */
  --auth-seal-w: 100px;
  width: var(--auth-seal-w) !important;
  height: calc(var(--auth-seal-w) * 230 / 190) !important;
  min-width: var(--auth-seal-w) !important;
  min-height: calc(var(--auth-seal-w) * 230 / 190) !important;
  margin: 0 0 28px !important;
  padding: 0 !important;
  border-radius: 14px !important;
  background: var(--dash-auth-map-4) !important;
  border: 2px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow:
    0 0 0 5px rgba(16, 136, 248, 0.22),
    0 0 36px rgba(16, 136, 248, 0.28),
    0 16px 36px rgba(7, 18, 79, 0.45) !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  color: transparent !important;
  box-sizing: border-box !important;
  aspect-ratio: 190 / 230;
}

body.auth-body .auth-brand-logo img,
body.auth-body .auth-brand-seal img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: none !important;
  display: block !important;
  border-radius: 12px;
}

body.auth-body .auth-civic{
  margin: 0 0 12px !important;
  max-width: none !important;
  color: var(--dash-auth-paper) !important;
  -webkit-text-fill-color: var(--dash-auth-paper) !important;
  font-size: clamp(13px, 1.05vw, 15px) !important;
  line-height: 1.25 !important;
  letter-spacing: 0.18em !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 22px rgba(7, 18, 79, 0.5) !important;
}

body.auth-body .auth-ops-title{
  margin: 0 !important;
  max-width: 11ch !important;
  color: var(--dash-paper) !important;
  -webkit-text-fill-color: var(--dash-paper) !important;
  font-size: clamp(52px, 6.2vw, 76px) !important;
  line-height: 0.90 !important;
  letter-spacing: -0.055em !important;
  font-weight: 850 !important;
  text-transform: none !important;
  text-shadow:
    0 18px 48px rgba(7, 18, 79, 0.55),
    0 0 40px rgba(16, 136, 248, 0.18) !important;
}

/* Legacy thin rule ? replaced by .auth-title-rule */
body.auth-body .auth-ops-title::after{
  content: none !important;
  display: none !important;
}

/* Developed title rule ? instrument underline with periodic load pulse */
body.auth-body .auth-title-rule {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  width: min(220px, 58%);
  margin: 20px 0 18px;
  height: 18px;
  overflow: hidden;
}

body.auth-body .auth-title-rule-core {
  width: 72px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--dash-link) 0%, var(--dash-auth-sky) 55%, rgba(56, 189, 248, 0.15) 100%);
  box-shadow: 0 0 16px rgba(16, 136, 248, 0.55);
  transform-origin: left center;
  animation: auth-rule-core 32.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

body.auth-body .auth-title-rule-ticks {
  height: 10px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(197, 208, 232, 0.55) 0 1px,
      transparent 1px 7px
    );
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.85), transparent 92%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.85), transparent 92%);
  opacity: 0.7;
  animation: auth-rule-ticks 32.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

body.auth-body .auth-title-rule-node {
  position: absolute;
  left: 68px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--dash-auth-sky);
  border: 1px solid rgba(244, 248, 255, 0.85);
  transform-origin: center;
  animation: auth-rule-node 32.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

body.auth-body .auth-title-rule-fade {
  position: absolute;
  left: 0;
  top: 50%;
  width: 42px;
  height: 12px;
  margin-top: -6px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(238, 242, 251, 0.55), transparent);
  filter: blur(1px);
  pointer-events: none;
  animation: auth-rule-scan 32.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

body.auth-body .auth-threshold-copy {
  margin: 0 !important;
  max-width: 28rem;
  color: rgba(244, 248, 255, 0.78) !important;
  -webkit-text-fill-color: rgba(244, 248, 255, 0.78) !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  font-weight: 450 !important;
  text-shadow: 0 8px 20px rgba(7, 18, 79, 0.35);
}

@keyframes auth-meta-tap {
  0% { filter: brightness(1); }
  40% { filter: brightness(1.18); }
  100% { filter: brightness(1); }
}

@keyframes auth-meta-tip-in {
  from { opacity: 0; transform: translate3d(0, 4px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Duty strip: tight spacing; hover = glow only; click = quiet tip */
body.auth-body .auth-floor-meta-wrap {
  position: relative;
  display: block;
  max-width: min(420px, 100%);
}

body.auth-body .auth-floor-meta {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--dash-amber) !important;
  -webkit-text-fill-color: var(--dash-amber) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
}

body.auth-body .auth-floor-meta-zone,
body.auth-body .auth-floor-meta-tz,
body.auth-body .auth-floor-meta-clock-wrap {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  transition: color 160ms ease, text-shadow 160ms ease, opacity 160ms ease;
}

body.auth-body .auth-floor-meta-zone,
body.auth-body .auth-floor-meta-tz {
  color: var(--dash-amber) !important;
  -webkit-text-fill-color: var(--dash-amber) !important;
  /* text-shadow is a paint property, so it is left off the animated chips. */
  animation: auth-place-glow 4.2s steps(42) infinite;
}

body.auth-body .auth-floor-meta-clock-wrap {
  color: var(--dash-green) !important;
  -webkit-text-fill-color: var(--dash-green) !important;
}

body.auth-body .auth-floor-meta time {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
  color: var(--dash-green) !important;
  -webkit-text-fill-color: var(--dash-green) !important;
  font-weight: 750 !important;
  animation: auth-duty-pulse 2.8s steps(28) infinite;
}

body.auth-body .auth-floor-meta-zone:hover,
body.auth-body .auth-floor-meta-zone:focus-visible,
body.auth-body .auth-floor-meta-tz:hover,
body.auth-body .auth-floor-meta-tz:focus-visible {
  color: var(--dash-auth-gold) !important;
  -webkit-text-fill-color: var(--dash-auth-gold) !important;
  text-shadow: 0 0 14px rgba(251, 191, 36, 0.55);
  outline: none;
  animation: none;
}

body.auth-body .auth-floor-meta-clock-wrap:hover,
body.auth-body .auth-floor-meta-clock-wrap:focus-visible {
  outline: none;
}

body.auth-body .auth-floor-meta-clock-wrap:hover time,
body.auth-body .auth-floor-meta-clock-wrap:focus-visible time {
  color: var(--dash-auth-mint) !important;
  -webkit-text-fill-color: var(--dash-auth-mint) !important;
  text-shadow: 0 0 14px rgba(52, 211, 153, 0.55);
  animation: none;
}

body.auth-body .auth-floor-meta-zone.is-active,
body.auth-body .auth-floor-meta-tz.is-active {
  color: var(--dash-auth-gold) !important;
  -webkit-text-fill-color: var(--dash-auth-gold) !important;
  text-shadow: 0 0 14px rgba(251, 191, 36, 0.45);
  animation: none;
  box-shadow: inset 0 -2px 0 rgba(251, 191, 36, 0.85);
}

body.auth-body .auth-floor-meta-clock-wrap.is-active time {
  color: var(--dash-auth-mint) !important;
  -webkit-text-fill-color: var(--dash-auth-mint) !important;
  text-shadow: 0 0 14px rgba(52, 211, 153, 0.45);
  animation: none;
}

body.auth-body .auth-floor-meta-clock-wrap.is-active {
  box-shadow: inset 0 -2px 0 rgba(52, 211, 153, 0.85);
}

body.auth-body .auth-floor-meta-zone.is-tapped,
body.auth-body .auth-floor-meta-tz.is-tapped,
body.auth-body .auth-floor-meta-clock-wrap.is-tapped {
  animation: auth-meta-tap 420ms ease;
}

body.auth-body .auth-floor-meta-sep {
  opacity: 0.45;
  color: rgba(244, 248, 255, 0.45) !important;
  -webkit-text-fill-color: rgba(244, 248, 255, 0.45) !important;
}

/* The tip is positioned absolutely so it does not move the duty strip. */
body.auth-body .auth-floor-meta-tip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  display: none;
  width: max-content;
  max-width: min(320px, 70vw);
  margin: 0;
  padding: 8px 12px 8px 11px;
  border: 0;
  border-radius: 8px;
  border-left: 3px solid var(--dash-amber);
  background: rgba(7, 18, 79, 0.92);
  box-shadow: 0 10px 24px rgba(5, 13, 56, 0.4);
  color: var(--dash-auth-paper);
  text-transform: none;
  letter-spacing: 0;
  pointer-events: none;
}

body.auth-body .auth-floor-meta-tip.is-visible {
  display: block;
  animation: auth-meta-tip-in 220ms ease both;
}

body.auth-body .auth-floor-meta-tip[data-kind="time"] {
  border-left-color: var(--dash-green);
}

body.auth-body .auth-floor-meta-tip-pip {
  display: none !important;
}

body.auth-body .auth-floor-meta-tip-copy {
  display: grid;
  gap: 2px;
}

body.auth-body .auth-floor-meta-tip-kicker {
  color: rgba(251, 191, 36, 0.9);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.auth-body .auth-floor-meta-tip[data-kind="time"] .auth-floor-meta-tip-kicker {
  color: rgba(52, 211, 153, 0.95);
}

body.auth-body .auth-floor-meta-tip-body {
  color: rgba(244, 248, 255, 0.88);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
}


body.auth-body .auth-floor-console{
  --auth-cx: 50%;
  --auth-cy: 28%;
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  border-left: 1px solid rgba(197, 208, 232, 0.28) !important;
  background:
    linear-gradient(180deg, rgba(16, 136, 248, 0.14) 0%, transparent 26%),
    linear-gradient(270deg, var(--dash-auth-deep) 0%, rgba(13, 26, 120, 0.94) 100%) !important;
  box-shadow:
    -20px 0 48px rgba(7, 18, 79, 0.28),
    inset 1px 0 0 rgba(16, 136, 248, 0.16) !important;
  /* Console fill is near-opaque, so no backdrop-filter is needed. */
  overflow: hidden;
  display: flex !important;
  flex-direction: column !important;
  color: var(--auth-soft) !important;
  animation: auth-console-in 820ms cubic-bezier(0.16, 1, 0.3, 1) 80ms both;
}

/* 272×218 is the painted extent of the gradient. */
body.auth-body .auth-console-light {
  position: absolute;
  width: 272px;
  height: 218px;
  left: 0;
  top: 0;
  z-index: 0;
  margin-left: -136px;
  margin-top: -109px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(200px, 89.6px, 0);
  /* Normal blend. Matches the previous soft-light wash without a backdrop read. */
  background:
    radial-gradient(
      200px 160px at 50% 50%,
      rgba(0, 25, 250, 0.0353) 0%,
      rgba(0, 25, 250, 0.0141) 38%,
      transparent 68%
    );
  transition: opacity 260ms ease;
}

body.auth-body.auth-pointer-console .auth-console-light {
  opacity: 0.85;
}

body.auth-body .auth-floor-console > *:not(.auth-console-light) {
  position: relative;
  z-index: 1;
}

body.auth-body .auth-floor-console-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, transparent 8%, var(--auth-accent) 42%, var(--auth-accent) 58%, transparent 92%);
  box-shadow: 0 0 18px rgba(16, 136, 248, 0.35);
  animation: auth-spine 3.8s steps(10) infinite;
  pointer-events: none;
}

body.auth-body .auth-console-head{
  flex: 0 0 auto;
  padding: 48px 36px 22px;
  border-bottom: 1px solid rgba(197, 208, 232, 0.14);
  background: linear-gradient(180deg, rgba(238, 242, 251, 0.05) 0%, transparent 100%);
}

body.auth-body .auth-console-kicker{
  margin: 0 0 8px !important;
  color: var(--dash-auth-ice) !important;
  -webkit-text-fill-color: var(--dash-auth-ice) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
}


body.auth-body .auth-floor-console h2 {
  margin: 0 0 8px !important;
  color: var(--dash-paper) !important;
  -webkit-text-fill-color: var(--dash-paper) !important;
  font-size: 26px !important;
  line-height: 1.1 !important;
  letter-spacing: -0.03em !important;
  font-weight: 850 !important;
  text-shadow: none !important;
}


body.auth-body .auth-floor-console .auth-form {
  display: grid !important;
  gap: 12px !important;
  padding: 28px 36px 12px !important;
  flex: 1 1 auto;
  align-content: start;
}

body.auth-body .auth-form label {
  margin: 0 !important;
  color: var(--dash-wash-2) !important;
  -webkit-text-fill-color: var(--dash-wash-2) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

body.auth-body .auth-form input,
body.auth-body .auth-floor-console input {
  width: 100%;
  min-height: 50px !important;
  padding: 0 14px !important;
  border-radius: 6px !important;
  border: 1px solid var(--dash-line-strong) !important;
  background: var(--dash-wash-2) !important;
  color: var(--dash-ink) !important;
  -webkit-text-fill-color: var(--dash-ink) !important;
  caret-color: var(--dash-link) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
}

body.auth-body .auth-form input::placeholder,
body.auth-body .auth-floor-console input::placeholder {
  color: var(--dash-ink-soft) !important;
  -webkit-text-fill-color: var(--dash-ink-soft) !important;
  opacity: 1 !important;
}

body.auth-body .auth-form input:focus,
body.auth-body .auth-form input:focus-visible,
body.auth-body .auth-floor-console input:focus,
body.auth-body .auth-floor-console input:focus-visible {
  outline: none;
  border-color: var(--dash-link) !important;
  box-shadow:
    0 0 0 3px rgba(16, 136, 248, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
  background: var(--dash-paper) !important;
  color: var(--dash-ink) !important;
  -webkit-text-fill-color: var(--dash-ink) !important;
}

body.auth-body .auth-form input[aria-invalid="true"] {
  border-color: rgba(155, 27, 109, 0.85) !important;
  box-shadow: 0 0 0 3px rgba(155, 27, 109, 0.22) !important;
}

body.auth-body .auth-form input:-webkit-autofill,
body.auth-body .auth-form input:-webkit-autofill:hover,
body.auth-body .auth-form input:-webkit-autofill:focus,
body.auth-body .auth-floor-console input:-webkit-autofill {
  -webkit-text-fill-color: var(--dash-ink) !important;
  color: var(--dash-ink) !important;
  caret-color: var(--dash-link) !important;
  border: 1px solid var(--dash-line-strong) !important;
  box-shadow: 0 0 0 1000px var(--dash-wash-2) inset !important;
  -webkit-box-shadow: 0 0 0 1000px var(--dash-wash-2) inset !important;
  transition: background-color 99999s ease-out 0s !important;
}

body.auth-body .auth-password-wrap {
  position: relative !important;
  display: grid !important;
}

body.auth-body .auth-password-wrap input {
  padding-right: 78px !important;
}

body.auth-body .auth-password-toggle {
  position: absolute !important;
  top: 50% !important;
  right: 8px !important;
  transform: translateY(-50%) !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--dash-ink) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 8px 10px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
}

body.auth-body .auth-password-toggle:hover,
body.auth-body .auth-password-toggle:focus-visible {
  background: rgba(16, 136, 248, 0.16) !important;
  color: var(--dash-ink) !important;
  outline: none !important;
}

body.auth-body .auth-caps-hint {
  margin: -2px 0 0 !important;
  color: var(--dash-auth-sand) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
}

body.auth-body .auth-form-error {
  margin: 18px 36px 0 !important;
  padding: 11px 12px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(155, 27, 109, 0.45) !important;
  background: rgba(155, 27, 109, 0.16) !important;
  color: var(--dash-auth-rose) !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  font-weight: 650 !important;
}

body.auth-body .auth-submit,
body.auth-body .auth-floor-console .auth-submit {
  width: 100%;
  margin-top: 10px !important;
  min-height: 52px !important;
  border: 0 !important;
  border-radius: 6px !important;
  color: var(--dash-paper) !important;
  -webkit-text-fill-color: var(--dash-paper) !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
  background: var(--dash-link) !important;
  box-shadow: 0 12px 28px rgba(16, 136, 248, 0.40) !important;
  transition: filter 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body.auth-body .auth-submit:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(16, 136, 248, 0.48) !important;
}

body.auth-body .auth-submit:active {
  transform: translateY(0);
}

body.auth-body .auth-submit.is-busy,
body.auth-body .auth-submit:disabled {
  opacity: 0.82 !important;
  cursor: wait !important;
  transform: none !important;
  filter: none !important;
}

body.auth-body .auth-console-help{
  margin: auto 0 0 !important;
  padding: 16px 36px 28px !important;
  color: rgba(215, 230, 255, 0.72) !important;
  -webkit-text-fill-color: rgba(215, 230, 255, 0.72) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  font-weight: 500 !important;
  border-top: 1px solid rgba(197, 208, 232, 0.22);
  background: rgba(7, 18, 79, 0.35);
  flex: 0 0 auto;
}


@media (max-width: 1100px) {
  body.auth-body .auth-stage.auth-stage-floor{
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px) !important;
  }

  body.auth-body .auth-floor-brand{
    padding: 40px 40px 32px 44px !important;
  }

  body.auth-body .auth-ops-title{
    font-size: clamp(46px, 5.5vw, 64px) !important;
  }
}

@media (max-width: 820px) {
  body.auth-body {
    overflow: auto !important;
  }

  body.auth-body .auth-shell {
    max-height: none !important;
    overflow: auto !important;
  }

  body.auth-body .auth-stage.auth-stage-floor{
    height: auto !important;
    min-height: 100vh !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
  }

  body.auth-body .auth-floor-brand{
    min-height: auto !important;
    padding: 36px 24px 28px !important;
    gap: 36px !important;
  }

  body.auth-body .auth-floor-brand-core {
    padding-top: 8px;
    max-width: none;
  }

  body.auth-body .auth-floor-console{
    min-height: auto !important;
    border-left: 0 !important;
    border-top: 1px solid rgba(197, 208, 232, 0.22) !important;
    box-shadow: 0 -18px 48px rgba(7, 18, 79, 0.35) !important;
  }

  body.auth-body .auth-floor-console-spine {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 3px;
    background: linear-gradient(90deg, transparent 8%, var(--auth-accent) 42%, var(--auth-accent) 58%, transparent 92%);
  }

  body.auth-body .auth-console-head {
    padding: 28px 24px 18px !important;
  }

  body.auth-body .auth-floor-console .auth-form{
    padding: 22px 24px 10px !important;
  }

  body.auth-body .auth-console-help,
  body.auth-body .auth-form-error {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  body.auth-body .auth-form-error {
    margin-left: 24px !important;
    margin-right: 24px !important;
  }

  body.auth-body .auth-flash-wrap {
    left: 16px;
    transform: none;
    width: calc(100% - 32px);
  }

  body.auth-body .auth-brand-logo {
    --auth-seal-w: 86px;
    width: var(--auth-seal-w) !important;
    height: calc(var(--auth-seal-w) * 230 / 190) !important;
    min-width: var(--auth-seal-w) !important;
    min-height: calc(var(--auth-seal-w) * 230 / 190) !important;
    margin-bottom: 20px !important;
    padding: 0 !important;
  }

  body.auth-body .auth-ops-title{
    font-size: clamp(40px, 11vw, 56px) !important;
  }
}

@media (max-width: 720px) {
  body.auth-body .auth-console-head,
  body.auth-body .auth-floor-console .auth-form,
  body.auth-body .auth-console-help,
  body.auth-body .auth-form-error {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  body.auth-body .auth-form-error {
    margin-left: 18px !important;
    margin-right: 18px !important;
  }

  body.auth-body .auth-floor-brand{
    padding: 28px 18px 24px !important;
  }

  body.auth-body .auth-threshold-copy {
    font-size: 15px !important;
  }
}

@media (max-height: 700px) and (min-width: 821px) {
  body.auth-body .auth-floor-brand{
    padding: 28px 40px 24px 48px !important;
  }

  body.auth-body .auth-floor-brand-core {
    padding-top: 0;
  }

  body.auth-body .auth-brand-logo {
    --auth-seal-w: 74px;
    width: var(--auth-seal-w) !important;
    height: calc(var(--auth-seal-w) * 230 / 190) !important;
    min-width: var(--auth-seal-w) !important;
    min-height: calc(var(--auth-seal-w) * 230 / 190) !important;
    margin-bottom: 16px !important;
    padding: 0 !important;
  }

  body.auth-body .auth-ops-title{
    font-size: clamp(40px, 4.8vw, 56px) !important;
  }

  body.auth-body .auth-title-rule {
    margin: 14px 0 14px;
  }

  body.auth-body .auth-threshold-copy {
    font-size: 14px !important;
  }

  body.auth-body .auth-console-head {
    padding-top: 28px !important;
    padding-bottom: 16px !important;
  }

  body.auth-body .auth-floor-console .auth-form {
    padding-top: 18px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.auth-body .auth-atmosphere-aurora,
  body.auth-body .auth-atmosphere-bloom,
  body.auth-body .auth-atmosphere-horizon,
  body.auth-body .auth-fog,
  body.auth-body .auth-map-coast,
  body.auth-body .auth-map-river,
  body.auth-body .auth-map-node-pulse,
  body.auth-body .auth-map-ring,
  body.auth-body .auth-droplet-drip,
  body.auth-body .auth-glass-sheen,
  body.auth-body .auth-floor-brand,
  body.auth-body .auth-floor-console,
  body.auth-body .auth-floor-console-spine,
  body.auth-body .auth-floor-meta time,
  body.auth-body .auth-floor-meta-zone,
  body.auth-body .auth-floor-meta-tz,
  body.auth-body .auth-title-rule-core,
  body.auth-body .auth-title-rule-node,
  body.auth-body .auth-title-rule-ticks,
  body.auth-body .auth-title-rule-fade,
  body.auth-body .auth-floor-meta-zone.is-tapped,
  body.auth-body .auth-floor-meta-tz.is-tapped,
  body.auth-body .auth-floor-meta-clock-wrap.is-tapped,
  body.auth-body .auth-floor-meta-tip.is-visible {
    animation: none !important;
  }

  body.auth-body .auth-floor-meta time {
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.4);
  }

  body.auth-body .auth-floor-meta-zone,
  body.auth-body .auth-floor-meta-tz {
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.28);
  }

  body.auth-body .auth-cursor-light,
  body.auth-body .auth-console-light {
    opacity: 0 !important;
    transition: none !important;
  }
}

/* Pause atmosphere animations while the tab is hidden. */
body.auth-body:is(.auth-tab-paused, .auth-away) .auth-atmosphere-aurora,
body.auth-body:is(.auth-tab-paused, .auth-away) .auth-atmosphere-bloom,
body.auth-body:is(.auth-tab-paused, .auth-away) .auth-atmosphere-horizon,
body.auth-body:is(.auth-tab-paused, .auth-away) .auth-fog,
body.auth-body:is(.auth-tab-paused, .auth-away) .auth-map-coast,
body.auth-body:is(.auth-tab-paused, .auth-away) .auth-map-river,
body.auth-body:is(.auth-tab-paused, .auth-away) .auth-map-node-pulse,
body.auth-body:is(.auth-tab-paused, .auth-away) .auth-map-ring,
body.auth-body:is(.auth-tab-paused, .auth-away) .auth-droplet-drip,
body.auth-body:is(.auth-tab-paused, .auth-away) .auth-glass-sheen,
body.auth-body:is(.auth-tab-paused, .auth-away) .auth-floor-console-spine,
body.auth-body:is(.auth-tab-paused, .auth-away) .auth-floor-meta time,
body.auth-body:is(.auth-tab-paused, .auth-away) .auth-floor-meta-zone,
body.auth-body:is(.auth-tab-paused, .auth-away) .auth-floor-meta-tz,
body.auth-body:is(.auth-tab-paused, .auth-away) .auth-title-rule-core,
body.auth-body:is(.auth-tab-paused, .auth-away) .auth-title-rule-node,
body.auth-body:is(.auth-tab-paused, .auth-away) .auth-title-rule-ticks,
body.auth-body:is(.auth-tab-paused, .auth-away) .auth-title-rule-fade {
  animation-play-state: paused !important;
}

/* Unfocused: fade the fog, then stop painting it. Pause map dashes. */
body.auth-body .auth-fog-group {
  transition: opacity 280ms linear;
}

body.auth-body.auth-shedding .auth-fog-group {
  opacity: 0;
}

body.auth-body.auth-shed .auth-fog-group {
  display: none !important;
}

body.auth-body.auth-shed .auth-map-coast,
body.auth-body.auth-shed .auth-map-river {
  animation-play-state: paused !important;
}

/* ?diag readout. Inert unless login.html creates the element, which only happens with the flag. */
.auth-diag {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 99999;
  padding: 6px 10px;
  border: 1px solid rgba(238, 242, 251, 0.3);
  border-radius: 4px;
  background: rgba(5, 13, 56, 0.92);
  color: var(--dash-wash-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  white-space: pre;
  pointer-events: none;
}

/* --- Change password (authenticated shell) ? brand-aligned --- */

.auth-account-page {
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  min-height: calc(100vh - 88px) !important;
  padding: 20px 18px 28px !important;
  box-sizing: border-box !important;
  background: transparent !important;
  color: var(--auth-ink) !important;
}

.auth-account-panel {
  display: grid !important;
  grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.2fr) !important;
  width: min(920px, 100%) !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  border: 1px solid var(--auth-line) !important;
  border-radius: 12px !important;
  background: var(--auth-panel) !important;
  box-shadow: 0 16px 40px rgba(13, 26, 120, 0.10) !important;
}

.auth-account-aside {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 12px !important;
  padding: 36px 32px !important;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(16, 136, 248, 0.28), transparent 55%),
    linear-gradient(165deg, var(--dash-ink) 0%, var(--dash-ink-deep) 55%, var(--dash-auth-night) 100%) !important;
  color: var(--dash-paper) !important;
}

.auth-account-kicker {
  margin: 0 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: rgba(238, 242, 251, 0.72) !important;
}

.auth-account-aside h1 {
  margin: 0 !important;
  font-size: 28px !important;
  line-height: 1.15 !important;
  letter-spacing: -0.03em !important;
  font-weight: 850 !important;
  color: var(--dash-paper) !important;
}

.auth-account-lede {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  color: rgba(238, 242, 251, 0.78) !important;
}

.auth-account-form-wrap {
  padding: 32px 28px !important;
  background: var(--dash-paper) !important;
}

.auth-account-form {
  display: grid !important;
  gap: 10px !important;
}

.auth-account-form label {
  margin: 0 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--auth-ink) !important;
}

.auth-account-form input {
  width: 100%;
  min-height: 46px !important;
  padding: 0 12px !important;
  border-radius: 6px !important;
  border: 1px solid var(--dash-auth-slate) !important;
  background: var(--dash-paper) !important;
  color: var(--auth-ink) !important;
  font-size: 15px !important;
}

.auth-account-form input:focus,
.auth-account-form input:focus-visible {
  outline: none;
  border-color: var(--auth-accent) !important;
  box-shadow: 0 0 0 3px rgba(16, 136, 248, 0.18) !important;
}

.auth-account-submit {
  margin-top: 8px !important;
  min-height: 48px !important;
  border-radius: 6px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

@media (max-width: 760px) {
  .auth-account-panel {
    grid-template-columns: 1fr !important;
  }

  .auth-account-aside {
    padding: 24px 22px !important;
  }

  .auth-account-form-wrap {
    padding: 22px 18px !important;
  }
}

/* High contrast drops box-shadow focus rings. Use an outline. */
@media (forced-colors: active) {
  body.auth-body .auth-form input:focus-visible,
  body.auth-body .auth-floor-console input:focus-visible,
  body.auth-body .auth-password-toggle:focus-visible,
  body.auth-body button:focus-visible,
  body.auth-body a:focus-visible,
  body.auth-body [tabindex]:focus-visible,
  .auth-account-form input:focus-visible,
  .auth-account-form button:focus-visible,
  .auth-account-submit:focus-visible {
    outline: 3px solid Highlight !important;
    outline-offset: 2px !important;
  }
}

/* Light-theme overrides for shared components on this page. */
body:has(.auth-login-page) .empty-state,
body:has(.auth-account-page) .empty-state {
  background:var(--dash-text) !important;border:1px dashed var(--dash-line-strong) !important;color:var(--dash-ink-soft) !important;
}
body:has(.auth-login-page) .empty-state b, body:has(.auth-login-page) .empty-state strong,
body:has(.auth-account-page) .empty-state b, body:has(.auth-account-page) .empty-state strong {
  color:var(--dash-ink) !important;
}
body:has(.auth-login-page) .attention,
body:has(.auth-account-page) .attention {
  background:var(--dash-paper) !important;border-color:var(--dash-line-strong) !important;color:var(--dash-ink) !important;
}
body:has(.auth-login-page) .alert,
body:has(.auth-account-page) .alert {
  background:var(--dash-paper) !important;border:1px solid var(--dash-line-strong) !important;color:var(--dash-ink) !important;box-shadow:0 8px 22px rgba(13,26,120,.06) !important;
}
body:has(.auth-login-page) .alert-success,
body:has(.auth-account-page) .alert-success {
  background:var(--dash-auth-ok-bg) !important;border-color:var(--dash-auth-ok-line) !important;color:var(--dash-auth-ok-ink) !important;
}
body:has(.auth-login-page) .alert-danger,
body:has(.auth-account-page) .alert-danger {
  background:var(--dash-auth-bad-bg) !important;border-color:var(--dash-auth-bad-line) !important;color:var(--dash-auth-bad-ink) !important;
}
body:has(.auth-login-page) .alert-warning,
body:has(.auth-account-page) .alert-warning {
  background:var(--dash-auth-wait-bg) !important;border-color:var(--dash-auth-wait-line) !important;color:var(--dash-auth-wait-ink) !important;
}
body:has(.auth-login-page) .alert-info,
body:has(.auth-account-page) .alert-info {
  background:var(--dash-wash-2) !important;border-color:var(--dash-line-strong) !important;color:var(--dash-ink) !important;
}

/* Light-theme flash dismiss on Change Password (login dark flashes already invert via .auth-body) */
body:has(.auth-account-page) .alert .btn-close {
  filter:none!important;
  opacity:.65!important;
  background:transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230D1A78'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat!important;
}
body.auth-body .auth-login-page h1,
body:has(.auth-login-page) h1 {
  letter-spacing: -0.03em !important;
}
body.auth-body .auth-login-page .lede,
body:has(.auth-login-page) .lede {
  color: rgba(247, 251, 255, 0.82) !important;
}
