/* Route-scoped premium auth overrides for legacy SPA bundle and new React pages. */
body[data-route="/forgot-password"],
body[data-route="/reset-password"] {
  background:
    radial-gradient(circle at 88% 8%, rgba(34, 211, 238, 0.14), transparent 33%),
    radial-gradient(circle at 14% 2%, rgba(56, 189, 248, 0.16), transparent 36%),
    linear-gradient(170deg, #050812 0%, #090f22 42%, #02030a 100%);
}

body[data-route="/forgot-password"] .section,
body[data-route="/reset-password"] .section {
  padding-top: 7.2rem;
  padding-bottom: 4rem;
}

body[data-route="/forgot-password"] .container,
body[data-route="/reset-password"] .container {
  max-width: 1140px !important;
}

body[data-route="/forgot-password"] .card,
body[data-route="/reset-password"] .card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(56, 189, 248, 0.28) !important;
  background:
    radial-gradient(circle at 90% 8%, rgba(34, 211, 238, 0.18), transparent 35%),
    linear-gradient(155deg, rgba(8, 14, 33, 0.92), rgba(3, 7, 20, 0.86)) !important;
  box-shadow: 0 22px 56px rgba(2, 6, 23, 0.56) !important;
}

body[data-route="/forgot-password"] .card::before,
body[data-route="/reset-password"] .card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 34%, transparent 67%, rgba(56, 189, 248, 0.14));
}

body[data-route="/forgot-password"] .card > *,
body[data-route="/reset-password"] .card > * {
  position: relative;
  z-index: 1;
}

body[data-route="/forgot-password"] .section-label,
body[data-route="/reset-password"] .section-label {
  letter-spacing: 0.18em;
  color: #67e8f9;
}

body[data-route="/forgot-password"] .card h2,
body[data-route="/reset-password"] .card h2 {
  font-family: "Oxanium", "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #f8fafc;
}

body[data-route="/forgot-password"] .card p,
body[data-route="/reset-password"] .card p {
  color: #cbd5e1;
}

body[data-route="/forgot-password"] .form-group label,
body[data-route="/reset-password"] .form-group label {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #93c5fd;
}

body[data-route="/forgot-password"] .form-group input,
body[data-route="/reset-password"] .form-group input {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(2, 6, 23, 0.66);
  color: #e2e8f0;
}

body[data-route="/forgot-password"] .form-group input:focus,
body[data-route="/reset-password"] .form-group input:focus {
  border-color: rgba(56, 189, 248, 0.75);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

body[data-route="/forgot-password"] .btn,
body[data-route="/reset-password"] .btn {
  border-radius: 12px;
}

body[data-route="/forgot-password"] .btn.btn-primary,
body[data-route="/reset-password"] .btn.btn-primary {
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  border: 0;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.34);
}

body[data-route="/forgot-password"] .btn.btn-primary:hover,
body[data-route="/reset-password"] .btn.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.42);
}

/* ── Performance: GPU-promote hover lift, remove tap delay ─────────── */
body[data-route="/forgot-password"] .card,
body[data-route="/reset-password"] .card {
  contain: layout paint;
}

body[data-route="/forgot-password"] .btn.btn-primary,
body[data-route="/reset-password"] .btn.btn-primary {
  will-change: transform, box-shadow;
  touch-action: manipulation;
}

body[data-route="/forgot-password"] .form-group input,
body[data-route="/reset-password"] .form-group input {
  touch-action: manipulation;
}

body[data-route="/forgot-password"] .alert-error,
body[data-route="/reset-password"] .alert-error {
  border: 1px solid rgba(244, 63, 94, 0.42);
  background: rgba(244, 63, 94, 0.1);
}

@media (max-width: 720px) {
  body[data-route="/forgot-password"] .section,
  body[data-route="/reset-password"] .section {
    padding-top: 6.5rem;
  }

  body[data-route="/forgot-password"] .card,
  body[data-route="/reset-password"] .card {
    border-radius: 14px;
  }
}
