/* 📌 Path: client/assets/css/auth.css */
/* ============================================================
   XABCIN CALLI — AUTHENTICATION EXPERIENCE
   Glassmorphic split shell with a royal-azure day sky for every
   authentication page (the legacy midnight sky remains available).
   All Tailwind utilities in the HTML use the required tw- prefix;
   these component classes carry the bespoke visual layer.
   ============================================================ */

:root {
  --auth-bg: #030712;
  --auth-ink: #f8fafc;
  --auth-muted: #94a3b8;
  --auth-soft: #cbd5e1;
  --auth-line: rgba(148, 163, 184, 0.18);
  --auth-line-strong: rgba(125, 211, 252, 0.38);
  --auth-sky: #38bdf8;
  --auth-cyan: #22d3ee;
  --auth-gold: #fbbf24;
  --auth-violet: #a78bfa;
  --auth-danger: #fb7185;
  --auth-success: #34d399;
  --auth-card: rgba(8, 15, 30, 0.82);
  --auth-font: "Inter", "Segoe UI", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Noto Sans Ethiopic", sans-serif;

  --gold: #8f5b0e;
  --gold-bright: #e4b25a;
  --gold-soft: #f3e3bf;
  --gold-on: #14251e;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  height: 100%;
  background: var(--auth-bg);
  color-scheme: dark;
  overflow: hidden;
}

body.auth-body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  color: var(--auth-ink);
  font-family: var(--auth-font);
  background:
    radial-gradient(1100px 700px at 8% 5%, rgba(14, 165, 233, 0.16), transparent 62%),
    radial-gradient(900px 620px at 92% 82%, rgba(251, 191, 36, 0.09), transparent 62%),
    radial-gradient(700px 500px at 50% 50%, rgba(99, 102, 241, 0.06), transparent 70%),
    linear-gradient(155deg, #020617 0%, #040b19 42%, #061326 100%);
  overflow: hidden;
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.auth-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(circle at 48% 38%, #000 0%, transparent 78%);
  mask-image: radial-gradient(circle at 48% 38%, #000 0%, transparent 78%);
}

[hidden] {
  display: none !important;
}

.auth-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.auth-aurora {
  position: fixed;
  z-index: 0;
  width: 46vw;
  max-width: 680px;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.55;
  animation: auth-aurora-drift 22s ease-in-out infinite alternate;
}

.auth-aurora--one {
  top: -18%;
  left: -8%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.34), transparent 66%);
}

.auth-aurora--two {
  right: -16%;
  bottom: -22%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.2), transparent 64%);
  animation-delay: -9s;
}

.auth-aurora--three {
  top: 38%;
  left: 42%;
  width: 30vw;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.1), transparent 66%);
  animation-delay: -14s;
}

.auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
  width: 100%;
  max-width: 1600px;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
}

/* ── Brand panel ─────────────────────────────────────────── */
.auth-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(10px, 1.8vh, 26px);
  height: 100%;
  min-height: 0;
  padding: clamp(18px, 3.2vh, 46px) clamp(24px, 3.4vw, 64px);
  overflow: hidden;
}

.auth-brand-panel::after {
  content: "";
  position: absolute;
  top: 12%;
  right: 0;
  width: 1px;
  height: 76%;
  /* background: linear-gradient(to bottom,
      transparent,
      rgba(125, 211, 252, 0.24),
      rgba(251, 191, 36, 0.15),
      transparent); */
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.auth-logo-plaque {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 176px;
  aspect-ratio: 885 / 739;
  overflow: hidden;
  /* padding: 10px 14px; */
  /* border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 55%, #eef6ff 100%); */
  /* box-shadow:
    0 24px 52px -26px rgba(2, 6, 23, 0.95),
    0 0 0 1px rgba(56, 189, 248, 0.14),
    inset 0 1px 0 #fff; */
}

/* The official PNG carries equal transparent margins. Scale it inside the
   plaque so only the artwork is visible, keeping the official asset path. */
.auth-logo-plaque img {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 150.85%;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
}

.auth-logo-plaque--lg {
  width: clamp(150px, min(13vw, 20vh), 210px);
  border-radius: 22px;
}

.auth-logo-plaque--md {
  width: clamp(100px, 14vw, 128px);
  padding: 0;
  border-radius: 14px;
}

.auth-logo-plaque--sm {
  width: clamp(82px, 14vw, 108px);
  padding: 0;
  border-radius: 14px;
}

.auth-brand-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.auth-brand-kicker {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--auth-sky);
  overflow-wrap: anywhere;
}

.auth-brand-sub {
  font-size: 10px;
  line-height: 1.4;
  color: var(--auth-muted);
}

.auth-brand-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  max-width: 640px;
}

.auth-eyebrow {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  padding: 5px 9px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 999px;
  background: rgba(8, 47, 73, 0.38);
  color: #bae6fd;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--auth-success);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.9);
  animation: auth-pulse 2.4s ease-in-out infinite;
}

.auth-title {
  margin: 0;
  max-width: 650px;
  font-size: clamp(28px, min(3.7vw, 5.7vh), 56px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.045em;
  color: #f8fafc;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.auth-title-accent {
  background: linear-gradient(100deg, #7dd3fc 0%, #22d3ee 42%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-lead {
  max-width: 540px;
  margin: 10px 0 0;
  font-size: clamp(12px, 1.05vw, 14px);
  line-height: 1.55;
  color: #a9b8cb;
}

.auth-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  max-width: 620px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.auth-feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  background: linear-gradient(145deg,
      rgba(15, 23, 42, 0.56),
      rgba(8, 15, 30, 0.32));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(8px);
}

.auth-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(125, 211, 252, 0.2);
  background: rgba(14, 165, 233, 0.1);
  color: #7dd3fc;
}

.auth-feature-icon svg,
.auth-feature-icon i {
  width: 13px;
  height: 13px;
}

.auth-feature strong {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.3;
  color: #e2e8f0;
}

.auth-feature span {
  display: block;
  margin-top: 1px;
  font-size: 9.5px;
  line-height: 1.35;
  color: #8194ab;
}

.auth-trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.auth-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.34);
  color: #94a3b8;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.auth-trust-chip svg,
.auth-trust-chip i {
  width: 12px;
  height: 12px;
  color: #7dd3fc;
}

.auth-brand-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  max-width: 680px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: #64748b;
  font-size: 9px;
  line-height: 1.4;
}

.auth-brand-footer strong {
  color: #94a3b8;
  font-weight: 600;
}

/* ── Form panel ──────────────────────────────────────────── */
.auth-form-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(9px, 1.35vh, 17px);
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding: clamp(14px, 2.4vh, 30px) clamp(20px, 3vw, 48px);
  overflow: hidden;
}

.auth-mobile-brand {
  display: none;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 100%;
  padding: clamp(24px, 3vh, 34px) clamp(24px, 3vw, 38px);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: clamp(20px, 2.7vh, 28px);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(6, 12, 25, 0.92)),
    radial-gradient(120% 80% at 50% -10%, rgba(56, 189, 248, 0.12), transparent 58%);
  box-shadow:
    0 40px 90px -36px rgba(2, 6, 23, 0.98),
    0 0 0 1px rgba(255, 255, 255, 0.025),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(20px);
  animation: auth-card-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(125, 211, 252, 0.6),
      rgba(251, 191, 36, 0.4),
      transparent);
}

.auth-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12% 14% auto;
  height: 45%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.14), transparent 70%);
  filter: blur(38px);
  pointer-events: none;
}

.auth-card-head {
  margin-bottom: clamp(11px, 1.55vh, 18px);
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  padding: 4px 10px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.08);
  color: #bae6fd;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-badge svg,
.auth-badge i {
  width: 12px;
  height: 12px;
}

.auth-card-title {
  margin: 0;
  font-size: clamp(23px, min(2.3vw, 3.3vh), 31px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #f8fafc;
}

.auth-card-sub {
  margin: 7px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #94a3b8;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vh, 16px);
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.auth-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.auth-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.auth-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9fb1c7;
}

.auth-optional {
  color: #64748b;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
}

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

.auth-input-icon {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: #67c9ee;
  pointer-events: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.auth-input-wrap:focus-within .auth-input-icon {
  color: #bae6fd;
  transform: scale(1.04);
}

.auth-input {
  width: 100%;
  min-width: 0;
  min-height: clamp(44px, 5.5vh, 50px);
  padding: 0 42px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.52);
  color: #f8fafc;
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.35;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.auth-input::placeholder {
  color: #5e7086;
}

.auth-input:hover {
  border-color: rgba(148, 163, 184, 0.32);
}

.auth-input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.68);
  background: rgba(2, 6, 23, 0.76);
  box-shadow:
    0 0 0 4px rgba(56, 189, 248, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-input:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.auth-input--passcode {
  padding-left: 42px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  letter-spacing: 0.3em;
}

.auth-input-wrap--plain .auth-input {
  padding-right: 16px;
}

.auth-toggle {
  position: absolute;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #7b8ea5;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.auth-toggle:hover {
  color: #e2e8f0;
  background: rgba(148, 163, 184, 0.12);
}

.auth-toggle:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.75);
  outline-offset: 1px;
}

.auth-toggle svg,
.auth-toggle i {
  width: 17px;
  height: 17px;
}

.auth-hint {
  margin: 0;
  color: #64748b;
  font-size: 10px;
  line-height: 1.45;
}

.auth-caps {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: #fbbf24;
  font-size: 10px;
  line-height: 1.4;
}

.auth-caps svg,
.auth-caps i {
  width: 12px;
  height: 12px;
}

.auth-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 0;
  font-size: 10px;
  color: #64748b;
}

.auth-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.auth-meta svg,
.auth-meta i {
  width: 12px;
  height: 12px;
  color: #34d399;
}

.auth-link {
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.auth-link:hover {
  color: #e0f2fe;
  text-decoration: underline;
}

.auth-link--strong {
  color: #fbbf24;
}

.auth-link--strong:hover {
  color: #fde68a;
}

.auth-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: clamp(46px, 5.9vh, 54px);
  margin-top: 0;
  padding: 0 20px;
  border: 1px solid rgba(125, 211, 252, 0.42);
  border-radius: 12px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 52%, #0369a1 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow:
    0 16px 34px -16px rgba(14, 165, 233, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.auth-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow:
    0 20px 40px -16px rgba(14, 165, 233, 1),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.auth-btn:active:not(:disabled) {
  transform: translateY(0);
}

.auth-btn:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 3px;
}

.auth-btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.auth-btn svg,
.auth-btn i {
  width: 17px;
  height: 17px;
}

.auth-btn.is-loading {
  pointer-events: none;
}

.auth-btn.is-loading .auth-btn-label,
.auth-btn.is-loading svg,
.auth-btn.is-loading i {
  opacity: 0.28;
}

.auth-btn.is-loading::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: auth-spin 0.72s linear infinite;
}

.auth-btn--gold {
  border-color: rgba(251, 191, 36, 0.5);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%);
  color: #251604;
  box-shadow:
    0 16px 34px -18px rgba(251, 191, 36, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.auth-btn--gold.is-loading::after {
  border-color: rgba(37, 22, 4, 0.28);
  border-top-color: #251604;
}

.auth-btn--ghost {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.55);
  color: #e2e8f0;
  box-shadow: none;
}

.auth-btn--ghost:hover:not(:disabled) {
  border-color: rgba(125, 211, 252, 0.4);
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 12px 30px -22px rgba(56, 189, 248, 0.8);
}

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 0;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 10px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.auth-alert svg,
.auth-alert i {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 1px;
}

.auth-alert--error {
  border-color: rgba(251, 113, 133, 0.32);
  background: rgba(159, 18, 57, 0.16);
  color: #fecdd3;
}

.auth-alert--error svg,
.auth-alert--error i {
  color: #fb7185;
}

.auth-alert--success {
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(6, 78, 59, 0.18);
  color: #a7f3d0;
}

.auth-alert--success svg,
.auth-alert--success i {
  color: #34d399;
}

.auth-alert--info {
  border-color: rgba(125, 211, 252, 0.28);
  background: rgba(8, 47, 73, 0.24);
  color: #bae6fd;
}

.auth-alert--info svg,
.auth-alert--info i {
  color: #38bdf8;
}

.auth-alert--warn {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(120, 53, 15, 0.18);
  color: #fde68a;
}

.auth-alert--warn svg,
.auth-alert--warn i {
  color: #fbbf24;
}

.auth-strength {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 0;
}

.auth-strength-bars {
  display: flex;
  gap: 4px;
}

.auth-strength-bars span {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.auth-strength[data-score="1"] .auth-strength-bars span:nth-child(-n + 1) {
  background: #fb7185;
  box-shadow: 0 0 8px rgba(251, 113, 133, 0.5);
}

.auth-strength[data-score="2"] .auth-strength-bars span:nth-child(-n + 2) {
  background: #fbbf24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.45);
}

.auth-strength[data-score="3"] .auth-strength-bars span:nth-child(-n + 3) {
  background: #22d3ee;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.45);
}

.auth-strength[data-score="4"] .auth-strength-bars span:nth-child(-n + 4) {
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.45);
}

.auth-strength-text {
  margin: 0;
  color: #64748b;
  font-size: 9px;
  line-height: 1.3;
}

.auth-strength[data-score="1"] .auth-strength-text {
  color: #fda4af;
}

.auth-strength[data-score="2"] .auth-strength-text {
  color: #fcd34d;
}

.auth-strength[data-score="3"] .auth-strength-text {
  color: #67e8f9;
}

.auth-strength[data-score="4"] .auth-strength-text {
  color: #6ee7b7;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0 9px;
  color: #52657b;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.2));
}

.auth-divider::after {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.2), transparent);
}

.auth-card-foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: #8ea1b7;
  font-size: 10.5px;
  line-height: 1.5;
}

.auth-foot-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  text-align: center;
}

.auth-foot-row strong {
  color: #e2e8f0;
  font-weight: 700;
}

.auth-foot-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px 14px;
}

.auth-security-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 10px 0 0;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.28);
  color: #6f8299;
  font-size: 10px;
  line-height: 1.45;
}

.auth-security-note svg,
.auth-security-note i {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  color: #34d399;
}

.auth-copyright {
  max-width: 500px;
  margin: 0;
  color: #4d6076;
  font-size: 9px;
  line-height: 1.35;
  text-align: center;
}

.auth-copyright strong {
  color: #64748b;
  font-weight: 600;
}

.auth-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 18px 16px;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 15px;
  background: rgba(8, 47, 73, 0.2);
  text-align: center;
}

.auth-state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: rgba(14, 165, 233, 0.12);
  color: #7dd3fc;
}

.auth-state-icon svg,
.auth-state-icon i {
  width: 20px;
  height: 20px;
}

.auth-state h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #e2e8f0;
}

.auth-state p {
  max-width: 320px;
  margin: 0;
  color: #94a3b8;
  font-size: 10px;
  line-height: 1.45;
}

.auth-session-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 999px;
  background: rgba(6, 78, 59, 0.16);
  color: #a7f3d0;
  font-size: 9px;
  font-weight: 600;
}

.auth-session-chip svg,
.auth-session-chip i {
  width: 11px;
  height: 11px;
}

.auth-session-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-info-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.auth-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #94a3b8;
  font-size: 10px;
  line-height: 1.5;
}

.auth-info-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.08);
  color: #7dd3fc;
  font-size: 8.5px;
  font-weight: 800;
}

.auth-info-list strong {
  color: #cbd5e1;
  font-weight: 700;
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #94a3b8;
  font-size: 10.5px;
  line-height: 1.5;
  cursor: pointer;
}

.auth-check input {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  accent-color: #0ea5e9;
}

.auth-inline-note {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 9px;
  line-height: 1.4;
  text-align: center;
}

.auth-inline-note strong {
  color: #94a3b8;
}

/* ── Motion ──────────────────────────────────────────────── */
@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes auth-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.45;
    transform: scale(0.82);
  }
}

@keyframes auth-aurora-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(3%, -4%, 0) scale(1.06);
  }

  100% {
    transform: translate3d(-2%, 3%, 0) scale(0.98);
  }
}

@keyframes auth-card-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

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

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1120px) {
  .auth-shell {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.94fr);
  }

  .auth-brand-panel {
    padding-left: 32px;
    padding-right: 26px;
  }

  .auth-feature-grid {
    max-width: 460px;
  }
}

@media (max-width: 900px) {
  .auth-shell {
    display: block;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .auth-brand-panel {
    display: none;
  }

  .auth-form-panel {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    max-height: 100dvh;
    justify-content: center;
    padding:
      max(10px, env(safe-area-inset-top)) 14px max(10px, env(safe-area-inset-bottom));
    overflow: hidden;
  }

  .auth-mobile-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 0 0 auto;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 2px;
  }

  .auth-mobile-brand .auth-brand-kicker {
    font-size: 9px;
  }

  .auth-mobile-brand .auth-brand-sub {
    font-size: 9px;
  }

  .auth-card {
    width: 100%;
    max-width: 500px;
  }

  .auth-copyright {
    padding-bottom: 0;
  }

  .auth-aurora {
    width: 80vw;
    filter: blur(70px);
  }
}

@media (max-width: 480px) {
  .auth-form-panel {
    padding-left: 12px;
    padding-right: 12px;
  }

  .auth-card {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .auth-card-title {
    font-size: 23px;
  }

  .auth-mobile-brand {
    gap: 10px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .auth-logo-plaque--sm {
    width: 92px;
  }

  .auth-brand-kicker {
    font-size: 9px;
  }

  .auth-brand-sub {
    font-size: 9.5px;
  }

  .auth-meta {
    font-size: 9.5px;
  }

  .auth-foot-links {
    gap: 4px 10px;
  }

  .auth-form {
    gap: 10px;
  }

  .auth-input {
    min-height: 46px;
    font-size: 13.5px;
  }

  .auth-btn {
    min-height: 48px;
  }

  .auth-duo {
    gap: 10px;
  }
}

@media (max-height: 900px) {
  .auth-form-panel {
    gap: clamp(7px, 1.05vh, 11px);
    padding-top: clamp(10px, 1.7vh, 17px);
    padding-bottom: clamp(10px, 1.7vh, 17px);
  }

  .auth-card {
    padding: clamp(20px, 2.8vh, 26px) clamp(18px, 3vw, 32px);
    border-radius: 20px;
  }

  .auth-card-head {
    margin-bottom: 9px;
  }

  .auth-badge {
    margin-bottom: 6px;
    padding: 3px 9px;
    font-size: 9px;
  }

  .auth-card-title {
    font-size: 24px;
  }

  .auth-card-sub {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.45;
  }

  .auth-form {
    gap: clamp(8px, 1.25vh, 11px);
  }

  .auth-field {
    gap: 4px;
  }

  .auth-duo {
    gap: 10px;
  }

  .auth-label {
    font-size: 10px;
  }

  .auth-optional {
    font-size: 9px;
  }

  .auth-input {
    min-height: clamp(42px, 5.7vh, 46px);
    padding: 0 40px;
    border-radius: 11px;
    font-size: 13px;
  }

  .auth-input--passcode {
    padding-left: 40px;
    font-size: 14px;
  }

  .auth-input-icon {
    left: 13px;
    width: 15px;
    height: 15px;
  }

  .auth-toggle {
    right: 5px;
    width: 32px;
    height: 32px;
  }

  .auth-toggle svg,
  .auth-toggle i {
    width: 16px;
    height: 16px;
  }

  .auth-btn {
    min-height: clamp(44px, 5.9vh, 48px);
    border-radius: 11px;
    font-size: 12.5px;
  }

  .auth-btn svg,
  .auth-btn i {
    width: 16px;
    height: 16px;
  }

  .auth-link {
    font-size: 10.5px;
  }

  .auth-meta {
    font-size: 9.5px;
  }

  .auth-card-foot {
    margin-top: 10px;
    padding-top: 8px;
    gap: 5px;
    font-size: 10px;
  }

  .auth-foot-links {
    gap: 4px 12px;
  }

  .auth-security-note {
    margin-top: 8px;
    padding: 7px 9px;
    font-size: 9.5px;
  }

  .auth-copyright {
    font-size: 8.5px;
  }

  .auth-state {
    gap: 8px;
    padding: 15px 14px;
  }

  .auth-divider {
    margin: 10px 0 8px;
    font-size: 9px;
  }

  .auth-info-list {
    gap: 6px;
    margin-top: 9px;
  }

  .auth-info-list li {
    font-size: 9.5px;
  }
}

@media (min-width: 901px) and (max-height: 800px) {
  .auth-security-note {
    display: none;
  }
}

@media (max-width: 900px) and (max-height: 900px) {
  .auth-security-note {
    display: none;
  }
}

@media (max-width: 900px) and (max-height: 820px) {
  .auth-security-note,
  .auth-copyright {
    display: none;
  }
}

@media (max-height: 760px) {
  .auth-form-panel {
    gap: 6px;
    padding: 8px 14px;
  }

  .auth-mobile-brand {
    gap: 10px;
  }

  .auth-logo-plaque--sm {
    width: 82px;
  }

  .auth-brand-sub {
    display: block;
  }

  .auth-card {
    padding: 16px 18px;
    border-radius: 18px;
  }

  .auth-card-head {
    margin-bottom: 7px;
  }

  .auth-badge {
    display: none;
  }

  .auth-card-sub {
    margin-top: 3px;
    font-size: 11.5px;
    line-height: 1.35;
  }

  .auth-form {
    gap: 8px;
  }

  .auth-field {
    gap: 4px;
  }

  .auth-duo {
    gap: 8px;
  }

  .auth-label {
    font-size: 9.5px;
  }

  .auth-optional {
    font-size: 9px;
  }

  .auth-input {
    min-height: 40px;
    padding: 0 36px;
    border-radius: 10px;
    font-size: 12.5px;
  }

  .auth-input--passcode {
    padding-left: 36px;
    font-size: 13.5px;
  }

  .auth-input-icon {
    left: 12px;
    width: 15px;
    height: 15px;
  }

  .auth-toggle {
    right: 4px;
    width: 30px;
    height: 30px;
  }

  .auth-toggle svg,
  .auth-toggle i {
    width: 15px;
    height: 15px;
  }

  .auth-btn {
    min-height: 44px;
    border-radius: 10px;
    font-size: 12px;
  }

  .auth-card-foot {
    margin-top: 8px;
    padding-top: 6px;
    gap: 3px;
    font-size: 9.5px;
  }

  .auth-foot-links {
    display: none;
  }

  .auth-strength-text {
    display: none;
  }

  .auth-meta,
  .auth-security-note,
  .auth-copyright {
    display: none;
  }
}

@media (max-width: 900px) and (max-height: 610px) {
  .auth-form-panel {
    gap: 4px;
    padding: 6px 10px;
  }

  .auth-mobile-brand {
    gap: 8px;
  }

  .auth-logo-plaque--sm {
    width: 74px;
  }

  .auth-card {
    padding: 12px 14px;
    border-radius: 16px;
  }

  .auth-card-head {
    margin-bottom: 5px;
  }

  .auth-card-sub {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.3;
  }

  .auth-form {
    gap: 6px;
  }

  .auth-field {
    gap: 3px;
  }

  .auth-duo {
    gap: 7px;
  }

  .auth-label {
    font-size: 9px;
  }

  .auth-optional {
    font-size: 8.5px;
  }

  .auth-input {
    min-height: 38px;
    padding: 0 34px;
    border-radius: 9px;
    font-size: 12px;
  }

  .auth-input--passcode {
    padding-left: 34px;
    font-size: 13px;
  }

  .auth-input-icon {
    left: 11px;
    width: 14px;
    height: 14px;
  }

  .auth-toggle {
    right: 4px;
    width: 28px;
    height: 28px;
  }

  .auth-toggle svg,
  .auth-toggle i {
    width: 14px;
    height: 14px;
  }

  .auth-btn {
    min-height: 42px;
    font-size: 11.5px;
  }

  .auth-card-foot {
    margin-top: 6px;
    padding-top: 5px;
    gap: 2px;
    font-size: 9px;
  }
}

@media (max-height: 520px) {
  .auth-form-panel {
    gap: 2px;
    padding: 2px 8px;
  }

  .auth-mobile-brand {
    gap: 7px;
  }

  .auth-logo-plaque--sm {
    width: 64px;
  }

  .auth-brand-kicker {
    font-size: 8px;
  }

  .auth-card {
    padding: 8px 12px;
    border-radius: 14px;
  }

  .auth-card-head {
    margin-bottom: 3px;
  }

  .auth-card-sub {
    display: none;
  }

  .auth-card-title {
    font-size: 18px;
  }

  .auth-form {
    gap: 3px;
  }

  .auth-field {
    gap: 1px;
  }

  .auth-duo {
    gap: 6px;
  }

  .auth-label {
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .auth-optional {
    font-size: 8px;
  }

  .auth-input {
    min-height: 28px;
    padding: 0 30px;
    border-radius: 8px;
    font-size: 11.5px;
  }

  .auth-input--passcode {
    padding-left: 30px;
    font-size: 12px;
  }

  .auth-input-icon {
    left: 9px;
    width: 12px;
    height: 12px;
  }

  .auth-toggle {
    right: 2px;
    width: 24px;
    height: 24px;
  }

  .auth-toggle svg,
  .auth-toggle i {
    width: 13px;
    height: 13px;
  }

  .auth-strength {
    display: none;
  }

  .auth-btn {
    min-height: 30px;
    border-radius: 8px;
    font-size: 10.5px;
  }

  .auth-card-foot {
    margin-top: 2px;
    padding-top: 2px;
    font-size: 8.5px;
  }

  .auth-card-foot .auth-foot-row {
    gap: 3px;
  }

  .auth-foot-links {
    display: none;
  }

  .auth-alert {
    padding: 4px 7px;
    font-size: 9px;
  }

  .auth-security-note,
  .auth-copyright,
  .auth-meta {
    display: none;
  }
}

@media (max-height: 520px) and (min-width: 901px) {
  .auth-brand-panel {
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .auth-logo-plaque--lg {
    width: 140px;
  }

  .auth-brand-footer,
  .auth-feature-grid,
  .auth-info-list,
  .auth-trust-row {
    display: none;
  }

  .auth-title {
    font-size: 24px;
  }

  .auth-lead {
    margin-top: 4px;
    font-size: 10px;
    line-height: 1.4;
  }
}

@media (max-height: 380px) {
  .auth-form-panel {
    gap: 1px;
    padding: 1px 6px;
  }

  .auth-mobile-brand {
    gap: 6px;
  }

  .auth-logo-plaque--sm {
    width: 48px;
  }

  .auth-brand-kicker {
    font-size: 7.5px;
  }

  .auth-card {
    padding: 6px 10px;
    border-radius: 12px;
  }

  .auth-card-head {
    margin-bottom: 1px;
  }

  .auth-card-title {
    font-size: 16px;
    line-height: 1.05;
  }

  .auth-form {
    gap: 2px;
  }

  .auth-label-row {
    gap: 4px;
  }

  .auth-label {
    font-size: 7.5px;
  }

  .auth-optional {
    font-size: 7px;
  }

  .auth-input {
    min-height: 26px;
    padding: 0 28px;
    border-radius: 7px;
    font-size: 10.5px;
  }

  .auth-input--passcode {
    padding-left: 28px;
    font-size: 11px;
  }

  .auth-input-icon {
    left: 8px;
    width: 11px;
    height: 11px;
  }

  .auth-toggle {
    right: 1px;
    width: 22px;
    height: 22px;
  }

  .auth-toggle svg,
  .auth-toggle i {
    width: 12px;
    height: 12px;
  }

  .auth-btn {
    gap: 5px;
    min-height: 27px;
    border-radius: 7px;
    font-size: 9.5px;
  }

  .auth-btn svg,
  .auth-btn i {
    width: 12px;
    height: 12px;
  }

  .auth-hint,
  .auth-card-foot,
  .auth-strength {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .auth-scene {
    opacity: 0.55;
  }
}

/* my code */
.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-kicker {
  color: var(--auth-line-strong);
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.brand-name {
  display: block;
  max-width: 480px;
  font-family: var(--font-am);
  font-size: clamp(9px, 1.05vw, 12px);
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -0.01em;
    /* color: var(--text-strong); */
  background: linear-gradient(100deg, #7dd3fc 0%, #22d3ee 42%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-en {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* ============================================================
   AUTH PAGES — ROYAL AZURE / SKY-BLUE GOVERNMENT THEME
   Applied via .auth-body--azure on login, register, recovery and
   change-password. Authentication markup, IDs and scripts are
   untouched; pages without the modifier keep the midnight sky.
   ============================================================ */

html:has(body.auth-body--azure) {
  background: #082954;
}

body.auth-body.auth-body--azure {
  --auth-ink: #ffffff;
  --auth-muted: #c9def2;
  --auth-soft: #dbeafe;
  --auth-line: rgba(186, 230, 253, 0.24);
  --auth-line-strong: rgba(186, 230, 253, 0.58);
  --auth-card: rgba(10, 42, 84, 0.78);

  background:
    radial-gradient(circle at 50% 18%,
      rgba(56, 189, 248, 0.42) 0%,
      rgba(14, 165, 233, 0.14) 38%,
      transparent 70%),
    radial-gradient(1200px 720px at 6% 96%,
      rgba(56, 189, 248, 0.18),
      transparent 62%),
    radial-gradient(900px 620px at 94% 6%,
      rgba(253, 224, 71, 0.12),
      transparent 64%),
    linear-gradient(180deg, #082954 0%, #0E4D92 48%, #073366 100%);
}

/* Fine azure survey grid, kept faint so the starfield stays crisp. */
body.auth-body.auth-body--azure::before {
  background-image:
    linear-gradient(rgba(186, 230, 253, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(186, 230, 253, 0.055) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 76%);
  mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 76%);
}

/* ── Starfield & atmospheric glows ───────────────────────── */
.auth-body--azure .auth-scene {
  z-index: 0;
  pointer-events: none;
}

.auth-body--azure .auth-aurora {
  opacity: 0.72;
  filter: blur(88px);
}

.auth-body--azure .auth-aurora--one {
  background: radial-gradient(circle, rgba(125, 211, 252, 0.34), transparent 66%);
}

.auth-body--azure .auth-aurora--two {
  background: radial-gradient(circle, rgba(253, 224, 71, 0.18), transparent 64%);
}

.auth-body--azure .auth-aurora--three {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.24), transparent 66%);
}

/* ── Brand panel contrast ────────────────────────────────── */
.auth-body--azure .auth-brand-panel::after {
  background: linear-gradient(to bottom,
      transparent,
      rgba(186, 230, 253, 0.5),
      rgba(253, 224, 71, 0.35),
      transparent);
}

.auth-body--azure {
  border: 1px solid rgba(186, 230, 253, 0.3);
  background:
    radial-gradient(circle at 50% 45%,
      rgba(8, 47, 73, 0.35),
      rgba(4, 24, 50, 0.68));
  box-shadow:
    0 22px 48px -26px rgba(2, 10, 26, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* .auth-body--azure .auth-logo-plaque {
  border: 1px solid rgba(186, 230, 253, 0.3);
  background:
    radial-gradient(circle at 50% 45%,
      rgba(8, 47, 73, 0.35),
      rgba(4, 24, 50, 0.68));
  box-shadow:
    0 22px 48px -26px rgba(2, 10, 26, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
} */

/* Keep the wordmark legible on the bright sky. */
.auth-body--azure .auth-brand span.tw-bg-clip-text {
  background-image: linear-gradient(90deg,
      #ffffff 0%,
      #bae6fd 48%,
      #fde047 100%);
  filter: drop-shadow(0 2px 7px rgba(3, 20, 44, 0.5));
}

.auth-body--azure .auth-eyebrow {
  border-color: rgba(186, 230, 253, 0.34);
  background: rgba(6, 40, 78, 0.55);
  color: #e0f2fe;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-body--azure .auth-title {
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(3, 20, 44, 0.45);
}

.auth-body--azure .auth-title-accent {
  background: linear-gradient(100deg, #bae6fd 0%, #7dd3fc 40%, #fde047 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-body--azure .auth-lead {
  color: #d9ebfb;
  text-shadow: 0 1px 10px rgba(3, 20, 44, 0.35);
}

.auth-body--azure .auth-feature {
  border-color: rgba(186, 230, 253, 0.24);
  background: linear-gradient(145deg,
      rgba(6, 40, 78, 0.58),
      rgba(4, 26, 56, 0.42));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.auth-body--azure .auth-feature strong {
  color: #f4faff;
}

.auth-body--azure .auth-feature span {
  color: #c6def3;
}

.auth-body--azure .auth-feature-icon {
  border-color: rgba(186, 230, 253, 0.34);
  background: rgba(56, 189, 248, 0.18);
  color: #e0f2fe;
}

.auth-body--azure .auth-trust-chip {
  border-color: rgba(186, 230, 253, 0.26);
  background: rgba(6, 40, 78, 0.45);
  color: #d5e8f8;
}

.auth-body--azure .auth-trust-chip svg,
.auth-body--azure .auth-trust-chip i {
  color: #a5e3ff;
}

.auth-body--azure .auth-brand-footer {
  border-top-color: rgba(186, 230, 253, 0.2);
  color: #b6cfe6;
}

.auth-body--azure .auth-brand-footer strong {
  color: #e6f3ff;
}

/* ── Frosted azure login card ────────────────────────────── */
.auth-body--azure .auth-card {
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: linear-gradient(180deg,
      rgba(10, 42, 84, 0.72) 0%,
      rgba(7, 30, 62, 0.82) 100%);
  box-shadow:
    0 42px 92px -40px rgba(2, 12, 30, 0.92),
    0 0 0 1px rgba(125, 211, 252, 0.06),
    0 0 74px -18px rgba(56, 189, 248, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.auth-body--azure .auth-card::before {
  background: linear-gradient(90deg,
      transparent,
      rgba(224, 242, 254, 0.85),
      rgba(253, 224, 71, 0.6),
      transparent);
}

.auth-body--azure .auth-card::after {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.24), transparent 70%);
}

@supports not ((backdrop-filter: blur(18px)) or (-webkit-backdrop-filter: blur(18px))) {
  .auth-body--azure .auth-card {
    background: linear-gradient(180deg,
        rgba(10, 42, 84, 0.94) 0%,
        rgba(7, 30, 62, 0.96) 100%);
  }
}

.auth-body--azure .auth-badge {
  border-color: rgba(186, 230, 253, 0.34);
  background: rgba(56, 189, 248, 0.16);
  color: #e0f2fe;
}

.auth-body--azure .auth-card-title {
  color: #ffffff;
}

.auth-body--azure .auth-card-sub {
  color: #c9dff3;
}

.auth-body--azure .auth-label {
  color: #e2efff;
}

.auth-body--azure .auth-optional {
  color: #b9d2e8;
}

/* ── Inputs, toggle and links ────────────────────────────── */
.auth-body--azure .auth-input {
  border-color: rgba(148, 197, 235, 0.42);
  background: rgba(3, 20, 44, 0.6);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth-body--azure .auth-input::placeholder {
  color: #9dc0dd;
}

.auth-body--azure .auth-input:hover {
  border-color: rgba(186, 230, 253, 0.6);
}

.auth-body--azure .auth-input:focus {
  border-color: #7dd3fc;
  background: rgba(3, 22, 48, 0.84);
  box-shadow:
    0 0 0 4px rgba(56, 189, 248, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-body--azure .auth-input:-webkit-autofill,
.auth-body--azure .auth-input:-webkit-autofill:hover,
.auth-body--azure .auth-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff;
  caret-color: #ffffff;
  box-shadow: 0 0 0 1000px #072b52 inset;
  -webkit-box-shadow: 0 0 0 1000px #072b52 inset;
}

.auth-body--azure .auth-input-icon {
  color: #9bd9f8;
}

.auth-body--azure .auth-input-wrap:focus-within .auth-input-icon {
  color: #ffffff;
}

.auth-body--azure .auth-toggle {
  color: #bae6fd;
}

.auth-body--azure .auth-toggle:hover {
  color: #ffffff;
  background: rgba(125, 211, 252, 0.2);
}

.auth-body--azure .auth-toggle:focus-visible {
  outline-color: #e0f2fe;
}

.auth-body--azure .auth-link {
  color: #a8e2ff;
  font-weight: 700;
}

.auth-body--azure .auth-link:hover {
  color: #ffffff;
}

.auth-body--azure .auth-link--strong {
  color: #fde047;
}

.auth-body--azure .auth-link--strong:hover {
  color: #fef3c7;
}

.auth-body--azure .auth-meta {
  color: #b7d3ec;
}

.auth-body--azure .auth-meta svg,
.auth-body--azure .auth-meta i {
  color: #6ee7b7;
}

/* ── Primary action ──────────────────────────────────────── */
.auth-body--azure .auth-btn {
  border-color: rgba(186, 230, 253, 0.65);
  background: linear-gradient(135deg, #0a76b4 0%, #0369a1 52%, #075985 100%);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(2, 18, 40, 0.4);
  box-shadow:
    0 18px 36px -16px rgba(2, 18, 42, 0.85),
    0 0 34px -8px rgba(56, 189, 248, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.auth-body--azure .auth-btn:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow:
    0 22px 42px -16px rgba(2, 18, 42, 0.9),
    0 0 42px -6px rgba(125, 211, 252, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.auth-body--azure .auth-btn:focus-visible {
  outline-color: #e0f2fe;
}

/* ── Card footer & supporting notes ──────────────────────── */
.auth-body--azure .auth-card-foot {
  border-top-color: rgba(186, 230, 253, 0.22);
  color: #c9def2;
}

.auth-body--azure .auth-foot-row strong {
  color: #ffffff;
}

.auth-body--azure .auth-security-note {
  border-color: rgba(186, 230, 253, 0.18);
  background: rgba(3, 20, 44, 0.42);
  color: #b9d4ea;
}

.auth-body--azure .auth-security-note svg,
.auth-body--azure .auth-security-note i {
  color: #6ee7b7;
}

.auth-body--azure .auth-divider {
  color: #a6c9e6;
}

.auth-body--azure .auth-copyright {
  color: #a8c6e0;
}

.auth-body--azure .auth-copyright strong {
  color: #d6e9fa;
}

.auth-body--azure .auth-hint,
.auth-body--azure .auth-inline-note {
  color: #abc8e2;
}

.auth-body--azure .auth-inline-note strong {
  color: #dbeafe;
}

.auth-body--azure .auth-caps {
  color: #fde047;
}

.auth-body--azure .auth-session-chip {
  border-color: rgba(110, 231, 183, 0.35);
  background: rgba(6, 78, 59, 0.28);
  color: #d1fae5;
}

/* ── Supporting content on register / recovery / change pages ── */
.auth-body--azure .auth-info-list li {
  color: #c9dff3;
}

.auth-body--azure .auth-info-list strong {
  color: #ffffff;
}

.auth-body--azure .auth-info-step {
  border-color: rgba(186, 230, 253, 0.36);
  background: rgba(56, 189, 248, 0.18);
  color: #e0f2fe;
}

.auth-body--azure .auth-info-step svg,
.auth-body--azure .auth-info-step i {
  width: 12px;
  height: 12px;
  color: #a5e3ff;
}

.auth-body--azure .auth-divider::before {
  background: linear-gradient(90deg, transparent, rgba(186, 230, 253, 0.32));
}

.auth-body--azure .auth-divider::after {
  background: linear-gradient(90deg, rgba(186, 230, 253, 0.32), transparent);
}

.auth-body--azure .auth-strength-bars span {
  background: rgba(186, 230, 253, 0.22);
}

.auth-body--azure .auth-strength-text {
  color: #abc8e2;
}

.auth-body--azure .auth-state {
  border-color: rgba(186, 230, 253, 0.32);
  background: rgba(3, 20, 44, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-body--azure .auth-state-icon {
  border-color: rgba(186, 230, 253, 0.4);
  background: rgba(56, 189, 248, 0.2);
  color: #e0f2fe;
}

.auth-body--azure .auth-state h3 {
  color: #ffffff;
}

.auth-body--azure .auth-state p {
  color: #c9dff3;
}

.auth-body--azure .auth-check {
  color: #c9dff3;
}

.auth-body--azure .auth-check input {
  accent-color: #38bdf8;
}

/* Keep gold as the accent for the password-update action. */
.auth-body--azure .auth-btn.auth-btn--gold {
  border-color: rgba(253, 224, 71, 0.72);
  background: linear-gradient(135deg, #fde047 0%, #fbbf24 52%, #f59e0b 100%);
  color: #251604;
  text-shadow: none;
  box-shadow:
    0 18px 36px -16px rgba(2, 18, 42, 0.85),
    0 0 34px -8px rgba(253, 224, 71, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.auth-body--azure .auth-btn.auth-btn--gold:hover:not(:disabled) {
  filter: brightness(1.05);
  box-shadow:
    0 22px 42px -16px rgba(2, 18, 42, 0.9),
    0 0 42px -6px rgba(253, 224, 71, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.auth-body--azure .auth-btn--gold.is-loading::after {
  border-color: rgba(37, 22, 4, 0.3);
  border-top-color: #251604;
}

/* Short landscape phones: keep the full card inside the viewport. */
@media (max-width: 900px) and (max-height: 520px) {
  .auth-body--azure .auth-mobile-brand .auth-logo-plaque--lg {
    width: clamp(72px, 24vh, 104px);
  }
}

/* Very short viewports: let the form panel scroll instead of clipping.
   Auto margins keep the card centred whenever it still fits. */
@media (max-height: 640px) {
  .auth-body--azure .auth-form-panel {
    justify-content: flex-start;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(125, 211, 252, 0.55) transparent;
  }

  .auth-body--azure .auth-form-panel .auth-card {
    flex: 0 0 auto;
    max-height: none;
    margin-block: auto;
  }

  .auth-body--azure .auth-form-panel::-webkit-scrollbar {
    width: 8px;
  }

  .auth-body--azure .auth-form-panel::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(125, 211, 252, 0.45);
  }

  .auth-body--azure .auth-form-panel::-webkit-scrollbar-track {
    background: transparent;
  }
}
/* ============================================================
   Phone-only ergonomics
   16px fields prevent iOS focus zoom; 44px icon controls keep
   password visibility toggles comfortably tappable.
   ============================================================ */
@media screen and (max-width: 767.98px) {
  .auth-body .auth-input,
  .auth-body .auth-input--passcode {
    font-size: 16px;
  }

  .auth-body .auth-input {
    padding-left: 46px;
    padding-right: 52px;
  }

  /* Height-based breakpoints below shrink the glyph (15/14/12/11px) while the
     16px placeholder stays put, so the icon-to-text gap drifted from ~13px to
     ~21px on short phones. Pin one icon size/position on every phone viewport
     so the placeholder always starts the same distance from the icon. */
  .auth-body .auth-input-icon {
    left: 15px;
    width: 18px;
    height: 18px;
  }

  .auth-body .auth-input-wrap--plain .auth-input {
    padding-right: 16px;
  }

  .auth-body .auth-toggle {
    right: 2px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .auth-body .auth-toggle svg,
  .auth-body .auth-toggle i {
    width: 19px;
    height: 19px;
  }
}
