/* Login page only. No selectors escape the auth-login-page scope. */
html.auth-login-page {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  color-scheme: dark;
}

html.auth-login-page body.auth-login-body,
html.auth-login-page body.auth-login-body *,
html.auth-login-page body.auth-login-body *::before,
html.auth-login-page body.auth-login-body *::after {
  box-sizing: border-box;
}

html.auth-login-page body.auth-login-body {
  --login-bg: #050b14;
  --login-panel: #0a1625;
  --login-panel-soft: #0e1d30;
  --login-gold: #e1b94f;
  --login-gold-light: #f4d77c;
  --login-cyan: #78d7e2;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(900px 600px at 13% 18%, rgba(57,142,160,.16), transparent 58%),
    radial-gradient(720px 520px at 88% 86%, rgba(225,185,79,.12), transparent 58%),
    linear-gradient(145deg, #050b14, #07111d 52%, #050b14);
  color: #f2f6f8;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

html.auth-login-page .auth-login-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(120,215,226,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,215,226,.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 90%);
}

html.auth-login-page .auth-login-body a { color: inherit; text-decoration: none; }
html.auth-login-page .auth-login-body button,
html.auth-login-page .auth-login-body input { font: inherit; }
html.auth-login-page .auth-login-body [hidden] { display: none !important; }

html.auth-login-page .login-stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 44px 24px 82px;
}

html.auth-login-page .login-shell {
  width: min(100%, 980px);
  min-height: 610px;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  overflow: hidden;
  border: 1px solid rgba(120,215,226,.16);
  border-radius: 30px;
  background: rgba(7,16,29,.9);
  box-shadow: 0 32px 90px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.035);
  backdrop-filter: blur(20px);
}

html.auth-login-page .login-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 40px;
  overflow: hidden;
  border-right: 1px solid rgba(120,215,226,.12);
  background:
    radial-gradient(420px 340px at 15% 12%, rgba(120,215,226,.18), transparent 64%),
    radial-gradient(380px 300px at 85% 90%, rgba(225,185,79,.17), transparent 64%),
    linear-gradient(155deg, rgba(14,35,53,.96), rgba(7,17,30,.98));
}

html.auth-login-page .login-brand-panel::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: 70px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(225,185,79,.14);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(120,215,226,.025), 0 0 0 76px rgba(225,185,79,.02);
}

html.auth-login-page .login-brand,
html.auth-login-page .login-brand-mobile {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: var(--login-gold-light);
  font: 700 25px/1 "Playfair Display", serif;
}

html.auth-login-page .login-brand img,
html.auth-login-page .login-brand-mobile img {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(225,185,79,.24);
}

html.auth-login-page .login-brand-copy { position: relative; z-index: 1; }
html.auth-login-page .login-eyebrow {
  display: block;
  color: var(--login-cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

html.auth-login-page .login-brand-copy h2 {
  margin: 12px 0 14px;
  color: #f4f7f9;
  font: 700 38px/1.16 "Playfair Display", serif;
  letter-spacing: -.02em;
}

html.auth-login-page .login-brand-copy p {
  max-width: 330px;
  margin: 0;
  color: rgba(232,241,246,.63);
  font-size: 14px;
  line-height: 1.75;
}

html.auth-login-page .login-trust-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

html.auth-login-page .login-trust-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(238,245,248,.74);
  font-size: 12px;
}

html.auth-login-page .login-trust-list i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(120,215,226,.09);
  color: var(--login-cyan);
  font-style: normal;
}

html.auth-login-page .login-form-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 5vw, 62px);
  background: linear-gradient(155deg, rgba(9,20,35,.98), rgba(5,13,24,.97));
}

html.auth-login-page .login-form-heading h1 {
  margin: 9px 0 8px;
  color: #f7f9fb;
  font: 700 clamp(30px, 4vw, 42px)/1.14 "Playfair Display", serif;
  letter-spacing: -.02em;
}

html.auth-login-page .login-form-heading p {
  margin: 0;
  color: rgba(232,241,246,.56);
  font-size: 13px;
}

html.auth-login-page .login-error {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid rgba(248,113,113,.32);
  border-radius: 13px;
  background: rgba(127,29,29,.18);
  color: #fecaca;
  font-size: 12px;
}

html.auth-login-page .login-error > span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(248,113,113,.18);
  font-weight: 800;
}

html.auth-login-page .login-form { display: grid; gap: 18px; margin-top: 30px; }
html.auth-login-page .login-field { display: grid; gap: 8px; }
html.auth-login-page .login-field label,
html.auth-login-page .login-label-row span {
  color: rgba(236,243,247,.68);
  font-size: 11px;
  font-weight: 700;
}
html.auth-login-page .login-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
html.auth-login-page .login-label-row span { color: rgba(120,215,226,.52); font-weight: 500; }
html.auth-login-page .login-forgot-link {
  color: var(--login-cyan);
  font-size: 11px;
  font-weight: 800;
}
html.auth-login-page .login-forgot-link:hover { color: #baf7fb; }

html.auth-login-page .login-input-wrap { position: relative; }
html.auth-login-page .login-input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--login-cyan);
  font-size: 17px;
  pointer-events: none;
}

html.auth-login-page .login-input-wrap input {
  width: 100%;
  min-height: 52px;
  padding: 0 68px 0 44px;
  outline: none;
  border: 1px solid rgba(120,215,226,.16);
  border-radius: 14px;
  background: rgba(3,10,19,.7);
  color: #f5f8fa;
  caret-color: var(--login-gold-light);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

html.auth-login-page .login-input-wrap input::placeholder { color: rgba(231,239,244,.32); }
html.auth-login-page .login-input-wrap input:focus {
  border-color: rgba(120,215,226,.55);
  background: rgba(5,14,25,.9);
  box-shadow: 0 0 0 4px rgba(120,215,226,.08);
}

html.auth-login-page .password-toggle {
  position: absolute;
  right: 7px;
  top: 7px;
  min-width: 48px;
  min-height: 38px;
  padding: 0 8px;
  border: 0;
  border-radius: 9px;
  background: rgba(120,215,226,.07);
  color: rgba(209,240,244,.74);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

html.auth-login-page .login-submit {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  padding: 0 18px;
  border: 1px solid rgba(225,185,79,.45);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--login-gold), var(--login-gold-light));
  color: #07101b;
  box-shadow: 0 14px 34px rgba(225,185,79,.16);
  cursor: pointer;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease;
}

html.auth-login-page .login-submit:hover { transform: translateY(-1px); box-shadow: 0 18px 38px rgba(225,185,79,.22); }

html.auth-login-page .login-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  color: rgba(231,240,244,.46);
  font-size: 11px;
}

html.auth-login-page .login-footer-row a { color: var(--login-gold-light); font-weight: 700; }
html.auth-login-page .login-security-note {
  margin: 0;
  color: rgba(229,239,244,.42);
  font-size: 11px;
  text-align: center;
}
html.auth-login-page .login-security-note span { color: var(--login-cyan); }
html.auth-login-page .login-brand-mobile { display: none; }

/* Password recovery pages: compact, viewport-conscious and fully scoped. */
html.auth-login-page .password-reset-flow .reset-stage {
  min-height: auto;
  place-items: start center;
  padding: clamp(24px, 4vh, 42px) 24px 54px;
}

html.auth-login-page .password-reset-flow .password-reset-shell {
  width: min(100%, 960px);
  min-height: 500px;
  grid-template-columns: minmax(300px, .86fr) minmax(430px, 1.14fr);
  border-radius: 26px;
}

html.auth-login-page .password-reset-flow .login-brand-panel {
  min-height: 500px;
  padding: 34px 36px;
}

html.auth-login-page .password-reset-flow .login-form-panel {
  padding: clamp(36px, 4.5vw, 54px);
}

html.auth-login-page .password-reset-flow .reset-brand-copy h2 {
  max-width: 340px;
  font-size: clamp(31px, 3.2vw, 38px);
}

html.auth-login-page .password-reset-flow .reset-visual {
  position: relative;
  z-index: 1;
  align-self: center;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  margin: auto 0 16px;
  border: 1px solid rgba(16,185,129,.32);
  border-radius: 34px;
  background: radial-gradient(circle at 35% 28%, rgba(34,211,238,.22), transparent 45%), rgba(4,18,29,.64);
  box-shadow: 0 22px 55px rgba(0,0,0,.28), inset 0 0 28px rgba(16,185,129,.08);
}

html.auth-login-page .password-reset-flow .reset-visual-ring {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(120,215,226,.26);
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(120,215,226,.035);
}

html.auth-login-page .password-reset-flow .reset-visual-icon {
  position: relative;
  color: #6ee7b7;
  font-size: 42px;
  font-weight: 800;
  text-shadow: 0 0 22px rgba(16,185,129,.48);
}

html.auth-login-page .password-reset-flow .reset-visual--key {
  border-color: rgba(120,215,226,.3);
  box-shadow: 0 22px 55px rgba(0,0,0,.28), inset 0 0 28px rgba(34,211,238,.08);
}

html.auth-login-page .password-reset-flow .reset-visual--key .reset-visual-icon { color: var(--login-cyan); }
html.auth-login-page .password-reset-flow .reset-visual--warning { border-color: rgba(245,196,81,.32); }
html.auth-login-page .password-reset-flow .reset-visual--warning .reset-visual-icon { color: var(--login-gold-light); }

html.auth-login-page .password-reset-flow .reset-status-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  padding: 7px 11px;
  border: 1px solid rgba(16,185,129,.28);
  border-radius: 999px;
  background: rgba(16,185,129,.09);
  color: #8bf0c7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

html.auth-login-page .password-reset-flow .reset-status-badge span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(16,185,129,.18);
}

html.auth-login-page .password-reset-flow .reset-status-badge--warning {
  border-color: rgba(245,196,81,.3);
  background: rgba(245,196,81,.08);
  color: var(--login-gold-light);
}

html.auth-login-page .password-reset-flow .reset-delivery-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 26px;
  padding: 16px;
  border: 1px solid rgba(120,215,226,.16);
  border-radius: 16px;
  background: rgba(120,215,226,.055);
}

html.auth-login-page .password-reset-flow .reset-delivery-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(120,215,226,.1);
  color: var(--login-cyan);
  font-size: 20px;
}

html.auth-login-page .password-reset-flow .reset-delivery-card strong {
  display: block;
  margin-bottom: 4px;
  color: #edf7f8;
  font-size: 13px;
}

html.auth-login-page .password-reset-flow .reset-delivery-card p {
  margin: 0;
  color: rgba(232,241,246,.55);
  font-size: 11px;
  line-height: 1.55;
}

html.auth-login-page .password-reset-flow .reset-action-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 10px;
  margin-top: 22px;
}

html.auth-login-page .password-reset-flow :is(.reset-primary-action,.reset-secondary-action) {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

html.auth-login-page .password-reset-flow .reset-primary-action {
  border: 1px solid rgba(225,185,79,.5);
  background: linear-gradient(135deg, var(--login-gold), var(--login-gold-light));
  color: #07101b;
  box-shadow: 0 12px 28px rgba(225,185,79,.14);
}

html.auth-login-page .password-reset-flow .reset-secondary-action {
  border: 1px solid rgba(120,215,226,.22);
  background: rgba(120,215,226,.055);
  color: #c8f4f7;
}

html.auth-login-page .password-reset-flow :is(.reset-primary-action,.reset-secondary-action):hover { transform: translateY(-1px); }
html.auth-login-page .password-reset-flow :is(.reset-primary-action,.reset-secondary-action):focus-visible { outline: 2px solid var(--login-cyan); outline-offset: 3px; }
html.auth-login-page .password-reset-flow .reset-action-grid--single { grid-template-columns: minmax(200px, 280px); }

html.auth-login-page .password-reset-confirm-page .login-form { gap: 14px; margin-top: 22px; }
html.auth-login-page .password-reset-confirm-page .login-input-wrap input { min-height: 50px; }

/* Keep the complete recovery action visible on common 720p laptop viewports. */
@media (min-width: 761px) {
  html.auth-login-page .password-reset-confirm-page .reset-stage { padding-top: 18px; }
  html.auth-login-page .password-reset-confirm-page .password-reset-shell,
  html.auth-login-page .password-reset-confirm-page .login-brand-panel { min-height: 460px; }
  html.auth-login-page .password-reset-confirm-page .login-form-panel { padding: 30px 42px; }
  html.auth-login-page .password-reset-confirm-page .reset-status-badge { margin-bottom: 10px; }
  html.auth-login-page .password-reset-confirm-page .login-form { gap: 10px; margin-top: 16px; }
  html.auth-login-page .password-reset-confirm-page .login-input-wrap input { min-height: 46px; }
  html.auth-login-page .password-reset-confirm-page .reset-password-rules { padding: 10px 12px; }
}

html.auth-login-page .password-reset-flow .reset-password-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 7px 12px;
  padding: 13px 14px;
  border: 1px solid rgba(120,215,226,.12);
  border-radius: 13px;
  background: rgba(120,215,226,.035);
}

html.auth-login-page .password-reset-flow .reset-password-rules span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(232,241,246,.58);
  font-size: 10px;
  line-height: 1.35;
}

html.auth-login-page .password-reset-flow .reset-password-rules span:last-child { grid-column: 1 / -1; }
html.auth-login-page .password-reset-flow .reset-password-rules i { color: #5ee4b1; font-style: normal; }

@media (max-width: 760px) {
  html.auth-login-page .login-stage { display: block; padding: 24px 16px 88px; }
  html.auth-login-page .login-brand-mobile { display: inline-flex; margin: 0 0 20px 4px; font-size: 22px; }
  html.auth-login-page .login-brand-mobile img { width: 38px; height: 38px; }
  html.auth-login-page .login-shell { display: block; min-height: 0; border-radius: 24px; }
  html.auth-login-page .login-brand-panel { display: none; }
  html.auth-login-page .login-form-panel { padding: 30px 24px; }
  html.auth-login-page .login-form { margin-top: 25px; }
  html.auth-login-page .login-footer-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  html.auth-login-page .login-security-note { margin-top: 16px; padding: 0 12px; }
  html.auth-login-page .password-reset-flow .reset-stage { padding: 18px 14px 90px; }
  html.auth-login-page .password-reset-flow .password-reset-shell { min-height: 0; }
  html.auth-login-page .password-reset-flow .login-form-panel { padding: 28px 22px; }
  html.auth-login-page .password-reset-flow .reset-status-badge { margin-bottom: 12px; }
  html.auth-login-page .password-reset-flow .reset-action-grid { grid-template-columns: 1fr; }
  html.auth-login-page .password-reset-flow .reset-action-grid--single { grid-template-columns: 1fr; }
  html.auth-login-page .password-reset-flow .reset-password-rules { grid-template-columns: 1fr; }
  html.auth-login-page .password-reset-flow .reset-password-rules span:last-child { grid-column: auto; }
}

@media (max-width: 390px) {
  html.auth-login-page .login-stage { padding-left: 12px; padding-right: 12px; }
  html.auth-login-page .login-form-panel { padding: 26px 18px; }
  html.auth-login-page .password-reset-flow .login-form-panel { padding: 25px 18px; }
  html.auth-login-page .password-reset-flow .reset-delivery-card { grid-template-columns: 38px 1fr; padding: 13px; }
  html.auth-login-page .password-reset-flow .reset-delivery-icon { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html.auth-login-page .login-input-wrap input,
  html.auth-login-page .login-submit { transition: none; }
}
