/**
 * auth.css — the sign-in card. A single lit card on the maroon ground,
 * matching the header the rest of the site uses.
 */

.auth-shell {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(40px, 8vh, 88px);
  background: linear-gradient(165deg, var(--maroon-900), var(--maroon-800) 55%, var(--maroon-700));
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  margin-inline: auto;
  padding: clamp(28px, 5vw, 42px);
  text-align: center;
  border-radius: var(--radius-2xl);
  border-color: rgba(224, 163, 37, .4);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .8), 0 0 50px -18px rgba(224, 163, 37, .5);
}
.auth-card__mark {
  width: 44px;
  height: 31px;
  margin-inline: auto;
  color: var(--gold);
  filter: drop-shadow(0 0 12px rgba(224, 163, 37, .6));
}
.auth-card h1 { margin: 18px 0 8px; font-size: clamp(24px, 4vw, 30px); }
.auth-card > .auth-step > p { font-size: 15px; color: var(--ink-3); line-height: 1.6; }

.auth-step[hidden] { display: none; }

.auth-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 26px;
}

.auth-divider {
  position: relative;
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-5);
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 26px);
  height: 1px;
  background: var(--line);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-form { margin-top: 22px; text-align: left; }
.auth-form .btn { margin-top: 16px; }

.auth-legal {
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--ink-5);
  line-height: 1.6;
}

.otp-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}
.otp-row input {
  width: 100%;
  padding: 12px 0;
  min-height: 54px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-warm);
}

.otp-helper {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--ink-5);
}
.otp-helper button {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font-size: inherit;
  font-weight: 600;
  color: var(--maroon-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.otp-helper button[disabled] { color: var(--ink-5); text-decoration: none; cursor: default; }

.auth-success-mark {
  width: 64px;
  height: 64px;
  margin-inline: auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-tint);
  color: var(--green-800);
  box-shadow: 0 0 30px -6px rgba(47, 93, 86, .5);
}
.auth-success-mark svg { width: 30px; height: 30px; }
