/* Authentication screen only. Tokens match the public site. */
:root {
  --gold: #B8943F;
  --gold-light: #C9A84C;
  --charcoal: #2C2C35;
  --deep: #1A1A22;
  --parchment: #F8F6F2;
  --sand: #EFEDE8;
  --stone: #D8D4CC;
  --text-muted: #777;
  --text-faint: #AAA;
}

body.auth-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #fff;
  color: var(--charcoal);
  font-family: 'Source Sans 3', sans-serif;
}
body.auth-open { overflow: hidden; }
.auth-screen, .auth-screen *, .auth-screen *::before, .auth-screen *::after { box-sizing: border-box; }
.auth-screen button, .auth-screen input, .auth-screen select { font: inherit; }
.auth-screen button { border: 0; background: none; cursor: pointer; }
.auth-screen a { color: inherit; text-decoration: none; }

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(340px, .82fr) minmax(560px, 1.18fr);
  min-height: 100vh;
  overflow: auto;
  background: #fff;
}
.auth-screen[hidden] { display: none; }
.auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 40px 64px;
  overflow: hidden;
  color: #fff;
  background: var(--deep);
}
.auth-brand::before,
.auth-brand::after {
  content: '';
  position: absolute;
  left: -130px;
  top: 34%;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
}
.auth-brand::after {
  left: -48px;
  top: 43%;
  border-color: rgba(184,148,63,.5);
}
.auth-wordmark {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}
.auth-wordmark strong {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .19em;
}
.auth-wordmark span {
  margin-top: 7px;
  font-family: 'Poppins', sans-serif;
  font-size: 7px;
  font-weight: 500;
  letter-spacing: .23em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.auth-brand-copy {
  position: relative;
  max-width: 500px;
  margin: auto 0;
}
.auth-eyebrow {
  margin-bottom: 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.auth-brand-copy h1 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 300;
  line-height: 1.12;
}
.auth-brand-copy h1 strong { color: var(--gold-light); }
.auth-brand-copy > p:last-of-type {
  max-width: 440px;
  margin-top: 28px;
  color: rgba(255,255,255,.6);
  line-height: 1.75;
}
.auth-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 440px;
  margin-top: 48px;
  border: 1px solid rgba(255,255,255,.14);
}
.auth-stat { padding: 20px; background: rgba(255,255,255,.04); }
.auth-stat + .auth-stat { border-left: 1px solid rgba(255,255,255,.14); }
.auth-stat strong {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-size: 24px;
  color: #fff;
}
.auth-stat span { font-size: 12px; color: rgba(255,255,255,.45); }
.auth-security {
  position: relative;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,.35);
}
.auth-panel {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: #fff;
}
.auth-panel-header {
  display: flex;
  height: 80px;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  padding: 0 56px;
  border-bottom: 1px solid var(--stone);
}
.auth-mobile-wordmark { display: none; }
.auth-back {
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 600;
  transition: color .2s;
}
.auth-back:hover { color: var(--gold); }
.auth-panel-body {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 48px 56px;
}
.auth-card { width: 100%; max-width: 520px; }
.auth-tabs {
  display: inline-flex;
  margin-bottom: 36px;
  padding: 4px;
  background: var(--sand);
}
.auth-tab {
  min-width: 132px;
  padding: 10px 20px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}
.auth-tab.active {
  color: var(--charcoal);
  background: #fff;
  box-shadow: 0 1px 4px rgba(26,26,34,.08);
}
.auth-kicker {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.auth-title {
  font-family: 'Raleway', sans-serif;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--charcoal);
}
.auth-intro {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}
.auth-form { margin-top: 36px; }
.auth-field { display: block; }
.auth-field + .auth-field { margin-top: 20px; }
.auth-field-label,
.auth-password-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 600;
}
.auth-field input,
.auth-field select {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--stone);
  border-radius: 2px;
  outline: none;
  background-color: #fff;
  color: var(--charcoal);
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.auth-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%232C2C35' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px 6px;
}
.auth-field input:focus,
.auth-field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,148,63,.1);
}
.auth-password-wrap { position: relative; }
.auth-password-wrap input { padding-right: 64px; }
.auth-password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}
.auth-text-button { color: var(--gold)!important; font-size: 14px; font-weight: 600; }
.auth-email-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 12px 16px;
  border: 1px solid var(--stone);
  background: var(--parchment);
}
.auth-email-summary small {
  display: block;
  color: var(--text-faint);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.auth-email-summary strong { display: block; margin-top: 2px; font-size: 14px; }
.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
}
.auth-check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--gold); }
.auth-submit {
  display: flex;
  width: 100%;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  background: var(--charcoal)!important;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
  transition: background .2s;
}
.auth-submit:hover { background: var(--deep); }
.auth-switch {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--stone);
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.auth-grid .auth-field + .auth-field { margin-top: 0; }
.auth-span-2 { grid-column: 1 / -1; }
.auth-idp,
.auth-success {
  margin-top: 32px;
  padding: 28px;
  border: 1px solid var(--stone);
  background: var(--parchment);
}
.auth-idp-bar {
  width: 64px;
  height: 4px;
  margin-bottom: 20px;
  overflow: hidden;
  background: var(--stone);
}
.auth-idp-bar::after {
  content: '';
  display: block;
  width: 65%;
  height: 100%;
  background: var(--gold);
  animation: auth-pulse 1.1s ease-in-out infinite alternate;
}
@keyframes auth-pulse { to { transform: translateX(35%); } }
.auth-idp p,
.auth-success p { margin-top: 10px; color: var(--text-muted); line-height: 1.6; }
.auth-success h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 30px;
  color: var(--charcoal);
}
.auth-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 36px;
  color: var(--text-faint);
  font-size: 12px;
}
.auth-meta a:hover { color: var(--gold); }
.auth-alert {
  margin-top: 20px;
  padding: 12px 16px;
  border: 1px solid #e4c4c4;
  background: #fdf6f6;
  color: #8a3030;
  font-size: 14px;
  line-height: 1.5;
}
.auth-field .auth-alert {
  margin-top: 8px;
  padding: 8px 12px;
}
.auth-field input[aria-invalid="true"] {
  border-color: #b42318;
}
.auth-alert-inline {
  margin-top: 8px;
  padding: 8px 12px;
}
.auth-alert[hidden] { display: none; }
.auth-view[hidden],
.auth-login-step[hidden] { display: none; }

.auth-notice {
  margin-top: 20px;
  padding: 12px 16px;
  border: 1px solid #b9d9c3;
  background: #f3faf5;
  color: #2E7D4F;
  font-size: 14px;
  line-height: 1.5;
}
.auth-resend { margin-top: 8px; }
.auth-resend-countdown { color: var(--text-muted); font-size: 14px; }
.auth-resend-countdown[hidden] { display: none; }
.auth-resend-countdown strong { color: var(--charcoal); font-variant-numeric: tabular-nums; }
.auth-resend .auth-submit { margin-top: 16px; }
.auth-submit:disabled { background: var(--stone)!important; color: #fff; cursor: not-allowed; }

.auth-captcha { margin-top: 20px; }
.auth-captcha altcha-widget {
  display: block;
  --altcha-max-width: 100%;
  --altcha-border-radius: 2px;
  --altcha-border-color: var(--stone);
  --altcha-color-base: #fff;
  --altcha-color-base-content: var(--charcoal);
  --altcha-color-primary: var(--gold);
  --altcha-color-success: #2E7D4F;
  --altcha-color-error: #b42318;
  --altcha-checkbox-border-radius: 2px;
  --altcha-shadow: none;
}

@media (max-width: 900px) {
  .auth-screen { display: block; }
  .auth-screen[hidden] { display: none; }
  .auth-brand { display: none; }
  .auth-mobile-wordmark { display: flex; margin-right: auto; }
  .auth-panel-header { padding: 0 24px; }
  .auth-panel-body { padding: 44px 24px; }
}
@media (max-width: 560px) {
  .auth-title { font-size: 34px; }
  .auth-tabs { display: flex; }
  .auth-tab { min-width: 0; flex: 1; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-span-2 { grid-column: auto; }
}
