/* ==========================================================================
   TRaVA sign-in page
   Full-bleed animated background photo, glass card, travel-route showcase.
   Uses the design tokens from app.css (navy / blue / restrained gold).
   All motion is disabled for users who prefer reduced motion.
   ========================================================================== */

.auth-body {
  --auth-ease: cubic-bezier(.22, .9, .24, 1);
  --auth-card-bg: rgba(255, 255, 255, .86);
  --auth-card-border: rgba(255, 255, 255, .55);
  --auth-field-bg: rgba(243, 245, 249, .9);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--trava-navy-900);
  color: var(--trava-text);
  overflow-x: hidden;
}

/* ---------------------------------------------------------------- Scene -- */
.auth-scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

.auth-bg {
  position: absolute; inset: -2%;
  background-size: cover;
  background-position: 62% 55%;
  transform-origin: 70% 60%;
  animation: authKenBurns 38s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes authKenBurns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}

/* navy veil on the card side, clear on the photo side */
.auth-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 26, 51, .92) 0%, rgba(8, 26, 51, .78) 28%, rgba(8, 26, 51, .28) 55%, rgba(8, 26, 51, 0) 72%),
    linear-gradient(0deg, rgba(8, 26, 51, .72) 0%, rgba(8, 26, 51, 0) 38%);
}

/* warm sunset glow that breathes slowly */
.auth-glow {
  position: absolute; right: -10%; top: 6%;
  width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(216, 180, 90, .28) 0%, rgba(216, 180, 90, .08) 35%, transparent 65%);
  filter: blur(10px);
  animation: authGlow 9s ease-in-out infinite alternate;
}
@keyframes authGlow { from { opacity: .55; transform: scale(.96); } to { opacity: 1; transform: scale(1.04); } }

/* road "speed lines" sweeping along the bottom of the photo */
.auth-speed { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; }
.auth-speed span {
  position: absolute; left: -30%; height: 2px; width: 26%;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  opacity: 0;
  animation: authSpeed 4.8s linear infinite;
}
.auth-speed span:nth-child(1) { bottom: 18%; animation-delay: 0s; }
.auth-speed span:nth-child(2) { bottom: 34%; animation-delay: 1.3s; width: 18%; }
.auth-speed span:nth-child(3) { bottom: 9%;  animation-delay: 2.1s; width: 32%; }
.auth-speed span:nth-child(4) { bottom: 48%; animation-delay: 3.0s; width: 14%; }
.auth-speed span:nth-child(5) { bottom: 26%; animation-delay: 3.9s; }
@keyframes authSpeed {
  0%   { transform: translateX(0); opacity: 0; }
  12%  { opacity: .9; }
  70%  { opacity: .5; }
  100% { transform: translateX(520%); opacity: 0; }
}

/* subtle film grain for depth */
.auth-grain {
  position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- Layout -- */
.auth-shell {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(380px, 560px) 1fr;
}
.auth-panel {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1.25rem, 4vw, 3rem);
}

/* ---------------------------------------------------------------- Card -- */
.auth-card {
  position: relative;
  width: 100%; max-width: 420px;
  padding: clamp(1.6rem, 3.2vw, 2.4rem);
  border-radius: 1.4rem;
  background: var(--auth-card-bg);
  border: 1px solid var(--auth-card-border);
  box-shadow:
    0 30px 60px -20px rgba(3, 12, 28, .55),
    0 12px 24px -12px rgba(3, 12, 28, .35),
    inset 0 1px 0 rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  animation: authCardIn .9s var(--auth-ease) both;
}
/* thin gold accent along the top edge */
.auth-card::before {
  content: ""; position: absolute; left: 1.6rem; right: 1.6rem; top: 0; height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, transparent, var(--trava-gold-400), var(--trava-blue-500), transparent);
  background-size: 200% 100%;
  animation: authShimmer 6s linear infinite;
}
@keyframes authCardIn {
  from { opacity: 0; transform: translateY(24px) scale(.98); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes authShimmer { to { background-position: -200% 0; } }

.auth-card.is-shaking { animation: authShake .5s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes authShake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60% { transform: translateX(6px); }
}

/* staggered entrance */
.reveal { opacity: 0; animation: authReveal .7s var(--auth-ease) forwards; animation-delay: calc(.25s + var(--d, 0) * .08s); }
@keyframes authReveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- Brand -- */
.auth-brand { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.6rem; }
.auth-logo-ring {
  position: relative; flex: 0 0 auto;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(from 0deg, var(--trava-gold-400), var(--trava-blue-500), var(--trava-navy-700), var(--trava-gold-400));
  animation: authSpin 8s linear infinite;
}
.auth-logo-ring::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #fff; }
.auth-logo { position: relative; z-index: 1; border-radius: 50%; animation: authSpin 8s linear infinite reverse; }
@keyframes authSpin { to { transform: rotate(360deg); } }
.auth-org { font-weight: 700; color: var(--trava-navy-800); font-size: .95rem; }
.auth-sys { font-size: .8rem; color: var(--trava-muted); }

.auth-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 0 0 .5rem; padding: .25rem .7rem .25rem .55rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .02em;
  color: var(--trava-navy-700); background: var(--trava-gold-50);
  border: 1px solid rgba(196, 154, 50, .3); border-radius: 999px;
}
.auth-dot { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22, 163, 74, .6); animation: authPulse 2s infinite; }
@keyframes authPulse { 70% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }

.auth-title { font-size: clamp(1.5rem, 2.4vw, 1.85rem); font-weight: 800; letter-spacing: -.025em; color: var(--trava-navy-900); margin: 0 0 .35rem; }
.auth-brandword {
  background: linear-gradient(100deg, var(--trava-blue-600) 0%, var(--trava-navy-700) 45%, var(--trava-gold-500) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-lead { color: var(--trava-muted); font-size: .9rem; margin-bottom: 1.5rem; }

/* ---------------------------------------------------------------- Alert -- */
.auth-alert {
  display: flex; gap: .6rem; align-items: flex-start;
  margin-bottom: 1rem; padding: .7rem .85rem;
  font-size: .86rem; color: #8a1c13;
  background: #fef2f1; border: 1px solid #f9d2ce; border-radius: .75rem;
  animation: authReveal .35s var(--auth-ease) both;
}
.auth-alert i { font-size: 1rem; line-height: 1.3; }

/* ---------------------------------------------------------------- Fields -- */
.auth-field { position: relative; margin-bottom: 1rem; }
.auth-input {
  display: block; width: 100%;
  height: 3.6rem; padding: 1.35rem 1rem .45rem 2.9rem;
  font-size: .97rem; color: var(--trava-text);
  background: var(--auth-field-bg);
  border: 1.5px solid transparent; border-radius: .85rem;
  outline: 0;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.auth-input.has-action { padding-right: 3rem; }
.auth-input:hover { background: #eef1f6; }
.auth-input:focus {
  background: #fff;
  border-color: var(--trava-blue-500);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .14);
}
.auth-input.is-invalid { border-color: #dc3545; box-shadow: 0 0 0 4px rgba(220, 53, 69, .12); }
.auth-field label {
  position: absolute; left: 2.9rem; top: 50%;
  transform: translateY(-50%);
  font-size: .95rem; color: var(--trava-muted);
  pointer-events: none;
  transition: transform .2s var(--auth-ease), font-size .2s, color .2s, top .2s;
}
.auth-input:focus + label,
.auth-input:not(:placeholder-shown) + label {
  top: .95rem; transform: none;
  font-size: .72rem; font-weight: 600; letter-spacing: .02em; color: var(--trava-blue-600);
}
.auth-input:not(:focus):not(:placeholder-shown) + label { color: var(--trava-muted); }
.auth-field-icon {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.05rem; color: #8a96a8;
  transition: color .2s, transform .2s;
}
.auth-field:focus-within .auth-field-icon { color: var(--trava-blue-600); transform: translateY(-50%) scale(1.08); }
.auth-field-line {
  position: absolute; left: 1rem; right: 1rem; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--trava-gold-400), var(--trava-blue-500));
  transform: scaleX(0); transform-origin: left; border-radius: 2px;
  transition: transform .35s var(--auth-ease);
}
.auth-field:focus-within .auth-field-line { transform: scaleX(1); }
.auth-field-action {
  position: absolute; right: .45rem; top: 50%; transform: translateY(-50%);
  width: 2.4rem; height: 2.4rem; border: 0; border-radius: .6rem;
  display: grid; place-items: center;
  color: #6b778a; background: transparent;
  transition: background .2s, color .2s;
}
.auth-field-action:hover { background: rgba(29, 78, 216, .08); color: var(--trava-blue-600); }
.auth-field-action:focus-visible { outline: 2px solid var(--trava-blue-500); outline-offset: 1px; }

.auth-caps { margin: -.55rem 0 .8rem .25rem; font-size: .78rem; font-weight: 600; color: #b54708; animation: authReveal .25s both; }
.auth-hint { min-height: 1.1rem; margin: -.6rem 0 .6rem .25rem; font-size: .78rem; }

.auth-strength { height: 4px; margin: -.55rem .25rem .9rem; border-radius: 4px; background: #e6eaf1; overflow: hidden; }
.auth-strength span { display: block; height: 100%; width: 0; border-radius: 4px; transition: width .3s var(--auth-ease), background-color .3s; }

/* ---------------------------------------------------------------- Row -- */
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin: .25rem 0 1.4rem; font-size: .87rem; }
.auth-check { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; user-select: none; color: var(--trava-text); }
.auth-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.auth-check-box {
  width: 1.15rem; height: 1.15rem; border-radius: .35rem;
  display: grid; place-items: center;
  border: 1.5px solid #b7c0ce; background: #fff;
  transition: background .2s, border-color .2s, transform .15s;
}
.auth-check-box i { font-size: .8rem; color: #fff; transform: scale(0); transition: transform .2s var(--auth-ease); }
.auth-check input:checked + .auth-check-box { background: var(--trava-blue-600); border-color: var(--trava-blue-600); }
.auth-check input:checked + .auth-check-box i { transform: scale(1); }
.auth-check input:focus-visible + .auth-check-box { box-shadow: 0 0 0 4px rgba(37, 99, 235, .2); }
.auth-check:active .auth-check-box { transform: scale(.9); }
.auth-link { color: var(--trava-blue-600); font-weight: 600; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .25s; }
.auth-link:hover { color: var(--trava-blue-600); background-size: 100% 1.5px; }

/* ---------------------------------------------------------------- Button -- */
.auth-submit {
  position: relative; overflow: hidden;
  display: block; width: 100%; height: 3.3rem;
  border: 0; border-radius: .9rem;
  font-weight: 700; font-size: .98rem; letter-spacing: .01em; color: #fff;
  background: linear-gradient(120deg, var(--trava-blue-600) 0%, #1e40af 45%, var(--trava-navy-700) 100%);
  background-size: 160% 100%;
  box-shadow: 0 12px 24px -10px rgba(29, 78, 216, .65), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: background-position .5s var(--auth-ease), transform .15s, box-shadow .25s;
}
.auth-submit::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg);
  transition: left .7s var(--auth-ease);
}
.auth-submit:hover { background-position: 100% 0; box-shadow: 0 16px 30px -12px rgba(29, 78, 216, .75), inset 0 1px 0 rgba(255, 255, 255, .2); }
.auth-submit:hover::after { left: 130%; }
.auth-submit:active { transform: translateY(1px) scale(.995); }
.auth-submit:focus-visible { outline: 3px solid rgba(216, 180, 90, .8); outline-offset: 2px; }
.auth-submit:disabled { cursor: progress; }
.auth-submit-label, .auth-submit-busy { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; transition: opacity .2s, transform .25s var(--auth-ease); }
.auth-submit-busy { position: absolute; inset: 0; opacity: 0; transform: translateY(8px); }
.auth-submit.is-busy .auth-submit-label { opacity: 0; transform: translateY(-8px); }
.auth-submit.is-busy .auth-submit-busy { opacity: 1; transform: none; }
.auth-submit.is-done { background: linear-gradient(120deg, #15803d, #166534); }

/* ---------------------------------------------------------------- Footer -- */
.auth-secure {
  display: flex; gap: .55rem; align-items: flex-start;
  margin-top: 1.3rem; padding-top: 1.1rem;
  border-top: 1px dashed #d6dce6;
  font-size: .78rem; color: var(--trava-muted);
}
.auth-secure i { color: var(--trava-gold-500); font-size: 1rem; line-height: 1.1; }
.auth-foot { margin: .9rem 0 0; font-size: .72rem; color: #8090a6; }

/* ---------------------------------------------------------------- Hero -- */
.auth-hero { position: relative; min-height: 100vh; color: #fff; }
.auth-clock {
  position: absolute; right: clamp(1.5rem, 3vw, 3rem); top: clamp(1.5rem, 3vw, 2.5rem);
  text-align: right; text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
  animation: authReveal .9s .6s var(--auth-ease) both;
}
.auth-clock-time { font-size: clamp(2rem, 3.4vw, 3.1rem); font-weight: 300; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.auth-clock-date { margin-top: .35rem; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .82); }

.auth-hero-text {
  position: absolute; left: clamp(1.5rem, 4vw, 3.5rem); right: clamp(1.5rem, 4vw, 3.5rem); bottom: clamp(1.75rem, 5vh, 3.5rem);
  max-width: 560px;
  animation: authReveal 1s .5s var(--auth-ease) both;
}
.auth-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .35rem .8rem; margin-bottom: 1rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--trava-navy-900); background: rgba(255, 255, 255, .92);
  border-radius: 999px; box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
}
.auth-badge i { color: var(--trava-gold-500); }
.auth-hero-text h2 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; margin-bottom: .75rem; text-shadow: 0 4px 24px rgba(0, 0, 0, .35); }
.auth-hero-text h2 span {
  background: linear-gradient(90deg, #fff 0%, #f3dca0 50%, var(--trava-gold-400) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-hero-text p { max-width: 460px; color: rgba(255, 255, 255, .86); margin-bottom: 1.6rem; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }

/* animated travel route: Request → Approve → Dispatch → Travel */
.auth-route {
  position: relative; display: flex; justify-content: space-between;
  list-style: none; margin: 0; padding: 1rem 1.1rem;
  max-width: 460px;
  background: rgba(8, 26, 51, .42);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 1rem;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.auth-route li { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .45rem; width: 64px; }
.auth-route-node {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); border: 1.5px solid rgba(255, 255, 255, .35);
  font-size: 1.05rem;
  animation: authNode 8s infinite;
  animation-delay: calc(var(--i) * 2s);
}
@keyframes authNode {
  0%, 22%, 100% { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); color: #fff; transform: scale(1); box-shadow: none; }
  4%, 18% { background: var(--trava-gold-400); border-color: var(--trava-gold-400); color: var(--trava-navy-900); transform: scale(1.12); box-shadow: 0 0 0 6px rgba(216, 180, 90, .22); }
}
.auth-route-label { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.auth-route li.auth-route-track {
  position: absolute; z-index: 1; left: calc(1.1rem + 32px); right: calc(1.1rem + 32px); top: calc(1rem + 1.25rem);
  width: auto; height: 2px; display: block;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .45) 0 8px, transparent 8px 14px);
  background-size: 28px 2px;
  animation: authDash 1.2s linear infinite;
}
@keyframes authDash { to { background-position: 28px 0; } }
.auth-route-car {
  position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .2), 0 0 14px 4px rgba(216, 180, 90, .7);
  animation: authCar 8s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes authCar {
  0%, 4%   { left: 0; }
  25%, 29% { left: 33.33%; }
  50%, 54% { left: 66.66%; }
  75%, 96% { left: 100%; }
  100%     { left: 100%; opacity: 0; }
}

/* ---------------------------------------------------------------- Modals -- */
.auth-modal .modal-content {
  border: 1px solid rgba(255, 255, 255, .6); border-radius: 1.4rem;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 40px 80px -24px rgba(3, 12, 28, .6);
}
.modal-backdrop.show { opacity: .6; background: var(--trava-navy-900); }
.auth-modal.fade .modal-dialog { transform: translateY(18px) scale(.97); transition: transform .35s var(--auth-ease, ease); }
.auth-modal.show .modal-dialog { transform: none; }
.auth-modal .modal-body { position: relative; }
.auth-modal-close { position: absolute; right: 1rem; top: 1rem; }
.auth-modal-icon {
  width: 4rem; height: 4rem; margin: 0 auto 1rem;
  display: grid; place-items: center; border-radius: 1.2rem;
  font-size: 1.7rem; color: var(--trava-blue-600);
  background: linear-gradient(135deg, var(--trava-blue-50), var(--trava-gold-50));
  box-shadow: inset 0 0 0 1px rgba(29, 78, 216, .12);
}
.auth-modal.show .auth-modal-icon { animation: authPop .6s var(--auth-ease, ease) both; }
@keyframes authPop { 0% { transform: scale(.6) rotate(-8deg); opacity: 0; } 60% { transform: scale(1.08) rotate(3deg); opacity: 1; } 100% { transform: none; } }
.auth-modal-title { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: var(--trava-navy-900); margin-bottom: .35rem; }
.auth-modal-text { color: var(--trava-muted); font-size: .9rem; margin-bottom: 1.4rem; }
.auth-modal .countdown { display: block; margin-top: .35rem; font-weight: 600; }

/* six-box OTP */
.otp-boxes { display: flex; justify-content: center; gap: clamp(.35rem, 1.8vw, .6rem); }
.otp-box {
  width: clamp(2.6rem, 11vw, 3.1rem); height: clamp(3.1rem, 13vw, 3.6rem);
  text-align: center; font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--trava-navy-900); caret-color: var(--trava-blue-600);
  background: var(--auth-field-bg, #f3f5f9);
  border: 1.5px solid #d9dfe8; border-radius: .8rem; outline: 0;
  transition: border-color .2s, box-shadow .2s, transform .15s, background .2s;
}
.otp-box:focus { border-color: var(--trava-blue-500); background: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); transform: translateY(-2px); }
.otp-box.filled { border-color: var(--trava-navy-700); background: #fff; animation: authPop .3s both; }
.otp-boxes.is-error .otp-box { border-color: #dc3545; animation: authShake .45s both; }
.otp-boxes.is-ok .otp-box { border-color: #16a34a; background: #f0fdf4; }
.otp-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin-top: 1rem; font-size: .82rem; }
.otp-timer { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--trava-navy-700); font-variant-numeric: tabular-nums; }
.otp-timer.is-low { color: #b42318; }
.otp-timer.is-low i { animation: authSpin 2s linear infinite; }

.g-recaptcha { transform-origin: 0 0; }

/* ---------------------------------------------------------------- Responsive -- */
@media (max-width: 991.98px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-tint { background: linear-gradient(180deg, rgba(8, 26, 51, .55) 0%, rgba(8, 26, 51, .8) 100%); }
  .auth-bg { background-position: 70% 50%; }
  .auth-panel { min-height: 100vh; min-height: 100dvh; }
}
@media (max-width: 420px) {
  .auth-card { border-radius: 1.15rem; }
  .auth-row { flex-direction: row; font-size: .82rem; }
  .g-recaptcha { transform: scale(.88); }
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .auth-card, .auth-modal .modal-content { background: #fff; }
}

/* ---------------------------------------------------------------- Motion -- */
@media (prefers-reduced-motion: reduce) {
  .auth-bg, .auth-glow, .auth-speed span, .auth-card, .auth-card::before, .reveal,
  .auth-logo-ring, .auth-logo, .auth-dot, .auth-route-node, .auth-route-track, .auth-route-car,
  .auth-clock, .auth-hero-text, .otp-box, .auth-modal-icon {
    animation: none !important;
  }
  .reveal { opacity: 1; }
  .auth-speed { display: none; }
  .auth-route-car { left: 100%; }
  * { transition-duration: .01ms !important; }
}
