/* ============================================================
   ECP Spartans — Authentication Stylesheet
   Shared layout, form components, and utilities for every
   page under /auth/.  No framework required.
   ============================================================ */

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--background);
}

h1, h2, h3, p {
  margin: 0;
}

a {
  color: var(--navy);
  text-underline-offset: 4px;
}

button, input, select, textarea {
  font: inherit;
}

button, a, input, select {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: .6;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

/* ── Skip link ─────────────────────────────────────────────── */
.skip {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 10;
  background: white;
  padding: 12px;
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
  transition: transform var(--transition);
}
.skip:focus {
  transform: none;
}

/* ════════════════════════════════════════════════════════════
   AUTHENTICATION SPLIT LAYOUT
   Left brand panel 42% | Right form panel 58%
   ════════════════════════════════════════════════════════════ */
.layout {
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 100dvh;
}

/* ── Left: brand panel ─────────────────────────────────────── */
.brand-panel {
  background:
    radial-gradient(ellipse at 85% 70%, #164A80, transparent 65%),
    var(--navy);
  color: white;
  padding: clamp(28px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: sticky;
  top: 0;
  height: 100dvh;
  min-height: 580px;
}

.brand-logo {
  align-self: flex-start;
  background: white;
  padding: 8px 16px;
  border-radius: 10px;
  display: inline-block;
}

.brand-logo img {
  width: 180px;
  height: 86px;
  object-fit: contain;
  display: block;
}

.brand-copy {
  margin: 32px 0;
  max-width: 420px;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 750;
  color: var(--muted);
  text-transform: uppercase;
}

.brand-copy .eyebrow {
  color: #C8DAEE;
}

.brand-copy h2 {
  color: white;
  font-size: clamp(42px, 4.5vw, 72px);
  line-height: 1.04;
  letter-spacing: -2px;
  margin: 20px 0 24px;
}

.brand-copy h2 span {
  color: var(--red);
}

.brand-copy > p:last-of-type {
  color: #CFDEF0;
  max-width: 350px;
  font-size: 14px;
  line-height: 1.9;
}

.brand-footer {
  font-size: 9px;
  letter-spacing: 1.3px;
  color: #BDCEE5;
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 20px;
}

/* Cricket pitch illustration */
.pitch {
  height: 160px;
  position: relative;
  margin-top: 25px;
}
.pitch::before,
.pitch::after {
  content: "";
  position: absolute;
  left: 15%;
  top: 20px;
  width: 78%;
  height: 120px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  transform: rotate(-22deg);
}
.pitch::after {
  width: 56%;
  height: 80px;
  left: 26%;
  top: 40px;
  border-style: dashed;
}
.pitch i {
  position: absolute;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle at 30% 20%, #FF4660, var(--red) 65%, #9D0928);
  border-radius: 50%;
  top: 64px;
  left: 19%;
  box-shadow: 12px 14px 30px rgba(0,0,0,.2);
  transform: rotate(25deg);
  z-index: 1;
  font-style: normal;
}
.pitch i::after {
  content: "";
  position: absolute;
  width: 12px;
  left: 28px;
  top: 3px;
  bottom: 3px;
  border-inline: 2px dashed #FFD5DC;
  border-radius: 50%;
}
.pitch b {
  position: absolute;
  top: 38px;
  left: 61%;
  width: 37px;
  height: 80px;
  border-top: 4px solid #77B4DD;
  border-inline: 3px solid #77B4DD;
  transform: rotate(18deg);
  font-style: normal;
  font-weight: normal;
}

/* ── Right: form panel ──────────────────────────────────────── */
.layout > main {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Scroll independently if form is taller than viewport */
  overflow-y: auto;
  padding: 48px 40px;
  min-width: 0;
  background: white;
  /* Ensure panel fills full height */
  min-height: 100dvh;
}

/* ── Form card ─────────────────────────────────────────────── */
.form-card {
  width: 100%;
  max-width: 520px;
  /* Entrance animation — JS-free, CSS only */
  animation: enter 220ms var(--ease) both;
}

/* Mobile logo — visible only below 768px */
.mobile-logo {
  display: none;
}

.mobile-logo img {
  width: 140px;
  height: 67px;
  object-fit: contain;
  display: block;
}

/* ── Typography in form ────────────────────────────────────── */
h1 {
  font-size: clamp(27px, 2.4vw, 34px);
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--navy);
  margin-bottom: 10px;
}

.intro {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}

/* ── Form structure ────────────────────────────────────────── */
form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

label,
legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .05px;
  transition: color var(--transition);
}

/* Text / email / tel / date / number / password inputs */
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid #DBDFE9;
  border-radius: 8px;
  padding: 12px 14px;
  background: #FFFFFF;
  color: var(--dark);
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .025);
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition), transform var(--transition);
}

input:not([type="checkbox"]):hover,
select:hover,
textarea:hover {
  border-color: #B5BDCC;
}

input:not([type="checkbox"]):focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(0, 152, 218, .11), 0 1px 2px rgba(15, 23, 42, .025);
  outline: none;
}

.field:focus-within > label {
  color: var(--navy);
}

input::placeholder,
textarea::placeholder {
  color: #7A8799;
  opacity: 1;
}

input:disabled,
select:disabled,
textarea:disabled {
  color: #68778A;
  background: #F0F3F7;
  border-color: #D5DDE7;
  cursor: not-allowed;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--red);
  background: #FFFBFC;
  box-shadow: 0 0 0 1px rgba(228, 0, 43, .04);
}

input[aria-invalid="true"]:focus-visible,
select[aria-invalid="true"]:focus-visible,
textarea[aria-invalid="true"]:focus-visible {
  box-shadow: 0 0 0 3px rgba(228, 0, 43, .10);
}

textarea {
  min-height: 112px;
  resize: vertical;
}

select {
  cursor: pointer;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--dark);
  box-shadow: 0 0 0 1000px white inset;
  transition: background-color 9999s ease-out;
}

/* ── Password field with show/hide toggle ───────────────────── */
.password {
  position: relative;
}

.password input {
  padding-right: 68px;
}

.password button {
  position: absolute;
  right: 4px;
  top: 3px;
  min-width: 58px;
  min-height: 42px;
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  border-radius: 5px;
}

.password button:hover {
  background: var(--navy-soft);
}

/* ── Inline error messages ─────────────────────────────────── */
.error {
  color: #AE0021;
  font-size: 11px;
  min-height: 16px;
  display: block;
}

.error:empty {
  display: none;
}

/* ── Row: checkbox + link side by side ────────────────────── */
.row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
}

.row a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ── Checkbox label ────────────────────────────────────────── */
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}

.check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--navy);
  border-radius: 4px;
  cursor: pointer;
}

/* ── Buttons ───────────────────────────────────────────────── */
.primary,
.secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 7px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
}

.primary {
  background: var(--navy);
  color: white;
  border: 1px solid var(--navy);
}

.primary:hover {
  background: #123C79;
  box-shadow: 0 4px 16px rgba(0,32,91,.22);
}

.primary:active {
  transform: scale(.98);
}

.secondary {
  border: 1.5px solid #CAD4E0;
  color: var(--navy);
  background: white;
}

.secondary:hover {
  background: var(--navy-soft);
  border-color: var(--navy);
}

.secondary:active {
  transform: scale(.98);
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.actions .primary {
  flex: 1;
}

/* ── Divider ───────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 26px 0 20px;
}

/* ── Switch line (e.g. "New player? Create account") ─────── */
.form-card .switch,
.switch {
  width: auto;
  height: auto;
  background: transparent;
  padding: 0;
  border-radius: 0;
  display: block;
  position: static;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.form-card .switch::before,
.form-card .switch::after,
.switch::before,
.switch::after {
  content: none !important;
  display: none !important;
}

.form-card .switch a,
.switch a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 650;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ── Page footer ───────────────────────────────────────────── */
.page-footer {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.page-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration-line: underline;
  text-decoration-style: dotted;
}

/* ── Multi-step indicator ──────────────────────────────────── */
.steps {
  list-style: none;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 8px 0 18px;
}

.steps li {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9AA7B7;
  font-size: 14px;
  font-weight: 650;
}

.step-marker {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border: 2px solid #D8E0EA;
  border-radius: 50%;
  background: #FFFFFF;
  color: #95A2B2;
  font-size: 14px;
  font-weight: 700;
}

.step-label {
  white-space: nowrap;
}

.step-connector {
  height: 2px;
  flex: 1;
  min-width: 12px;
  margin: 0 16px 0 0;
  background: #E3E8EF;
}

.steps [aria-current="step"] {
  color: var(--navy);
  font-weight: 700;
}

.steps [aria-current="step"] .step-marker {
  border-color: var(--navy);
  background: var(--navy);
  color: #FFFFFF;
}

.steps [aria-current="step"] .step-connector {
  background: #DCE4EE;
}

.steps li.is-complete {
  color: #168A50;
}

.steps li.is-complete .step-marker {
  border-color: #168A50;
  background: #FFFFFF;
  color: #168A50;
}

.steps li:last-child .step-connector {
  display: none;
}

.steps + .eyebrow {
  margin-bottom: 22px;
  letter-spacing: 2.4px;
  font-size: 13px;
  font-weight: 750;
}

/* ── Two-column grid inside form ────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Password strength ─────────────────────────────────────── */
.requirements {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
  font-size: 11px;
  color: var(--muted);
}

.requirements li {
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}

.requirements .met {
  color: var(--success);
}

.strength {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 600;
}

/* ── Terms/privacy collapsible ─────────────────────────────── */
.policy {
  font-size: 12px;
  color: var(--muted);
}

.policy summary {
  min-height: 44px;
  padding: 10px 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
}

.policy p {
  padding: 12px 16px;
  background: var(--background);
  border-radius: 7px;
  line-height: 1.7;
}

/* ── Profile photo upload ─────────────────────────────────── */
.photo {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1.5px dashed #BCCBDC;
  border-radius: 10px;
  padding: 16px;
  background: var(--background);
}

.photo .field {
  flex: 1;
}

#photo-preview {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy-soft);
  color: var(--navy);
  overflow: hidden;
  font-size: 26px;
  border: 2px solid var(--border);
}

#photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo input[type="file"] {
  font-size: 12px;
  border: 0;
  padding: 6px 0;
  min-height: 36px;
  background: none;
}

.photo small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

/* ── Summary / review cards ────────────────────────────────── */
.summary {
  border: 1.5px solid var(--border);
  padding: 18px 20px;
  border-radius: 10px;
  background: white;
}

.summary + .summary {
  margin-top: 14px;
}

.summary header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.summary h2 {
  font-size: 14px;
  color: var(--navy);
  font-weight: 700;
}

.summary a {
  font-size: 12px;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 650;
}

.summary dl {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 8px 16px;
  font-size: 13px;
  margin: 0;
}

.summary dt {
  color: var(--muted);
  font-size: 12px;
}

.summary dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 500;
}

/* ── OTP inputs ────────────────────────────────────────────── */
.otp-group {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.otp-group legend {
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 10px;
}

.otp {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.otp input {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  height: 62px;
  padding: 8px 0;
  letter-spacing: 2px;
}

/* ── Text button (Resend, Change email, etc.) ──────────────── */
.text-button {
  background: none;
  border: 0;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  padding: 0;
}

.text-button:disabled {
  color: var(--muted);
  text-decoration: none;
}

.change-email {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.change-email a {
  margin-left: 4px;
  font-weight: 600;
}

/* ── Alert / status messages ────────────────────────────────── */
.alert {
  background: var(--red-soft);
  border: 1px solid #F5C3CD;
  color: #A50020;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.5;
}

.alert.success {
  background: var(--success-soft);
  color: var(--success);
  border-color: #B9DCCB;
}

/* ── Demo OTP state examples ────────────────────────────────── */
.demo-messages {
  margin-top: 22px;
  padding: 14px 16px;
  background: var(--background);
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
}

.demo-messages > p + p {
  margin-top: 6px;
}

.demo-messages > p:first-child {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ── Success / approval pending states ──────────────────────── */
.success-symbol {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  display: grid;
  place-items: center;
  font-size: 30px;
  margin-bottom: 24px;
  border: 2px solid #B9DCCB;
}

.progress {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
}

.progress li {
  padding: 13px 18px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress li + li {
  border-top: 1px solid var(--border);
}

.reference {
  background: var(--background);
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 24px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--border);
}

.reference small {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.reference strong {
  font-size: 15px;
  color: var(--navy);
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

.footnote {
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
  line-height: 1.7;
}

/* ════════════════════════════════════════════════════════════
   INDEX / DIRECTORY PAGE
   ════════════════════════════════════════════════════════════ */
body.directory {
  background: var(--background);
}

.directory-page {
  max-width: 1080px;
  margin: auto;
  padding: 52px 24px 64px;
}

.directory-page header {
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.directory-page header img {
  object-fit: contain;
  width: 180px;
  height: 86px;
}

.directory-page h1 {
  font-size: clamp(28px, 3vw, 40px);
  color: var(--navy);
  margin: 4px 0;
}

.directory-page > header > p {
  color: var(--muted);
  font-size: 15px;
}

.dir-section {
  margin-top: 40px;
}

.dir-section h2 {
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.directory-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  text-decoration: none;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.directory-card:hover {
  transform: translateY(-2px);
  border-color: var(--sky);
  box-shadow: var(--shadow);
}

.directory-card .card-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
}

.directory-card .card-file {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.directory-card .card-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.directory-footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

/* ════════════════════════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════════════════════════ */
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ════════════════════════════════════════════════════════════ */

/* ── 1100px and below: tighter padding ──────────────────────── */
@media (max-width: 1100px) {
  .brand-panel {
    padding: 28px;
  }

  .layout > main {
    padding: 36px 28px;
  }

  .brand-copy h2 {
    font-size: 44px;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

/* ── 768px and below: hide left panel, full-width form ──────── */
@media (max-width: 768px) {
  .layout {
    display: block;
  }

  .brand-panel {
    display: none;
  }

  .layout > main {
    display: block;
    min-height: 100dvh;
    padding:
      calc(24px + env(safe-area-inset-top))
      max(22px, env(safe-area-inset-right))
      calc(28px + env(safe-area-inset-bottom))
      max(22px, env(safe-area-inset-left));
    background: white;
  }

  .mobile-logo {
    display: block;
    margin-bottom: 28px;
  }

  .form-card {
    max-width: 100%;
    width: 100%;
    animation: enter 200ms var(--ease) both;
  }

  h1 {
    font-size: 28px;
  }

  .intro {
    font-size: 13px;
  }

  /* Prevent zooming on input focus on iOS */
  input:not([type="checkbox"]),
  select {
    font-size: 16px;
  }

  .otp {
    gap: 7px;
  }

  .otp input {
    font-size: 22px;
    height: 52px;
  }

  .summary {
    padding: 14px;
  }

  .summary dl {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .directory-grid {
    grid-template-columns: 1fr;
  }

  .directory-page {
    padding: 28px 20px 48px;
  }

  .page-footer {
    margin-top: 28px;
  }

  .photo {
    gap: 12px;
    padding: 12px;
  }
}

/* ── 480px: small phones ─────────────────────────────────────── */
@media (max-width: 480px) {
  .steps li {
    gap: 7px;
    font-size: 11px;
  }

  .step-marker {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    font-size: 12px;
  }

  .step-connector {
    margin-right: 8px;
  }

  .steps + .eyebrow {
    font-size: 12px;
    margin-bottom: 20px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column-reverse;
  }

  .actions .secondary {
    order: 2;
  }

  .requirements {
    grid-template-columns: 1fr;
  }
}

/* ── Reduced motion preference ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Authentication forms sit directly on the page, without an outer card. */
.form-card{border:0;border-radius:0;box-shadow:none;background:transparent}
.form-card .divider:has(span){display:flex;align-items:center;gap:14px;height:auto;background:none;color:var(--muted);font-size:11px;letter-spacing:.08em}
.form-card .divider:has(span):before,.form-card .divider:has(span):after{content:'';height:1px;flex:1;background:var(--border)}
.phone-entry.is-phone{display:flex;align-items:stretch;border:1px solid #d5deeb;border-radius:9px;background:white;overflow:hidden}.phone-entry .phone-prefix{display:none}.phone-entry.is-phone .phone-prefix{display:flex;align-items:center;padding:0 16px;background:#f3f6fb;border-right:1px solid #d5deeb;font-weight:650;color:var(--navy);font-size:14px}.phone-entry.is-phone input{border:0!important;border-radius:0!important;box-shadow:none!important;min-width:0;flex:1;width:100%;letter-spacing:.08em}.phone-entry.is-phone:focus-within{outline:2px solid var(--sky);outline-offset:2px}.phone-entry.is-phone input:focus{outline:0}.phone-entry.is-phone:has(input[aria-invalid=true]){border-color:var(--red)}
