/* ════════════════════════════════════════════════════════════════════
   COCI™ Auth — login / signup / forgot password
   Sitewide flip May 8 PM · default white+black+sage; gold preserved.
   ──────────────────────────────────────────────────────────────────── */

:root {
  --bg-black: #FFFFFF;
  --bg-panel: #F5F8F5;
  --line-mid: rgba(0,0,0,0.12);
  /* WCAG-AA tokens flipped for white surfaces. */
  --text-primary:   #000000;
  --text-secondary: #4A4A4A;
  --text-tertiary:  #6B6B6B;
  --text-disabled:  #9aa39a;
  --text-cream: #000000;       /* legacy alias → primary */
  --text-dim:   #4A4A4A;
  --text-faint: #6B6B6B;
  --gold: #ffc54c;             /* gold preserved — luxury accent */
  --gold-deep: #A8842B;        /* deeper mustard for gold-on-white text */
  --neon-green: #4a9070;
  --red: #dc3c46;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.auth-page {
  background: var(--bg-black);
  color: var(--text-cream);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; cursor: pointer; }

.crisis-bar {
  background: rgba(220,60,70,0.08);
  border-bottom: 1px solid rgba(220,60,70,0.18);
  padding: 10px 20px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  display: flex; align-items: center; gap: 10px;
  text-align: center;
  justify-content: center;
}
.crisis-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px rgba(220,60,70,0.6);
}
.crisis-bar a { color: var(--gold); }

.auth-shell {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 40px 20px 60px;
}
.auth-card {
  width: min(440px, 100%);
  display: flex; flex-direction: column;
  gap: 22px;
}
.auth-logo {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 56px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #ffe48a 0%, #ffc54c 50%, #d99e2b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
  margin: 0;
  line-height: 1;
}
.auth-tagline {
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--text-dim);
  margin: -6px 0 12px;
}
.auth-form {
  display: flex; flex-direction: column;
  gap: 14px;
}
.auth-form label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.auth-form .field { display: flex; flex-direction: column; }
.auth-form input[type="email"],
.auth-form input[type="password"] {
  background: var(--bg-panel);
  border: 1px solid var(--line-mid);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text-cream);
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
}
.auth-form input:focus {
  border-color: var(--gold);
  background: #0d0d0d;
}
.auth-submit {
  background: linear-gradient(135deg, #ffe48a 0%, #ffc54c 50%, #d99e2b 100%);
  color: #1a0f00;
  border: none;
  border-radius: 10px;
  padding: 16px 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 8px;
  transition: filter .12s, transform .12s;
}
.auth-submit:hover { filter: brightness(1.08); }
.auth-submit:active { transform: translateY(1px); }
.auth-submit[disabled] { opacity: 0.55; cursor: wait; }
.auth-error {
  color: var(--red);
  background: rgba(220,60,70,0.06);
  border: 1px solid rgba(220,60,70,0.30);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  display: none;
}
.auth-error.is-shown { display: block; }
.auth-success {
  color: var(--neon-green);
  background: rgba(196,255,90,0.06);
  border: 1px solid rgba(196,255,90,0.30);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  display: none;
}
.auth-success.is-shown { display: block; }
.auth-foot {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 6px;
}
.auth-foot a { color: var(--gold); }
.auth-foot a:hover { color: #ffe48a; }
.auth-extra {
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
  margin-top: -6px;
}
.auth-extra a { color: var(--text-dim); }
.auth-tm {
  font-size: 10px;
  vertical-align: super;
  letter-spacing: 0;
  margin-left: 1px;
  color: var(--gold);
}
@media (max-width: 480px) {
  .auth-logo { font-size: 44px; }
  .auth-tagline { font-size: 16px; }
  .crisis-bar { font-size: 11px; padding: 8px 14px; }
  .auth-shell { padding: 30px 16px 48px; }
}
