/* auth.css — signup / login / forgot / reset / verify pages
 * Builds on landing.css's :root tokens. Two-column desktop, single-column
 * mobile, paper background, industrial-confident.
 */

.auth-shell {
  padding: 56px 0 96px;
  min-height: calc(100vh - 80px);
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.auth-grid-narrow { max-width: 460px; margin: 0 auto; grid-template-columns: 1fr; }

@media (max-width: 880px) {
  .auth-grid { grid-template-columns: 1fr; gap: 40px; }
  .auth-shell { padding: 32px 0 56px; }
}

/* ---- card --------------------------------------------------------------- */
.auth-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 40px 36px;
  box-shadow: 0 1px 0 var(--rule-soft), 0 18px 50px -30px rgba(17,24,39,0.18);
}
@media (max-width: 520px) {
  .auth-card { padding: 28px 22px; }
}
.auth-card-center { text-align: center; }

.auth-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 10px;
}
.auth-eyebrow::before {
  content: ''; display: inline-block; width: 22px; height: 1px; background: var(--accent);
}
.auth-card-center .auth-eyebrow { justify-content: center; }

.auth-h1 {
  margin-top: 18px;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.05; letter-spacing: -0.025em; font-weight: 600;
  color: var(--ink);
}
.auth-h1 .serif {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic; font-weight: 400; color: var(--accent);
}
.auth-sub {
  margin-top: 14px; font-size: 15px; line-height: 1.55;
  color: var(--ink); opacity: 0.75;
}
.auth-sub strong { font-weight: 600; opacity: 1; }

/* ---- alerts ------------------------------------------------------------- */
.auth-error {
  margin-top: 22px; padding: 12px 14px; border-radius: 6px;
  background: rgba(240,68,46,0.08); color: var(--accent);
  border: 1px solid rgba(240,68,46,0.25);
  font-size: 14px; line-height: 1.4;
}
.auth-notice {
  margin-top: 22px; padding: 12px 14px; border-radius: 6px;
  background: rgba(15,118,110,0.08); color: var(--accent-2);
  border: 1px solid rgba(15,118,110,0.25);
  font-size: 14px; line-height: 1.4;
}

/* ---- form --------------------------------------------------------------- */
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field { display: block; }
.auth-label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--ink); margin-bottom: 6px; letter-spacing: -0.005em;
}
.auth-label-row { display: flex; align-items: baseline; justify-content: space-between; }
.auth-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.auth-link:hover { color: var(--accent-2); text-decoration-thickness: 2px; }

.auth-field input {
  width: 100%; box-sizing: border-box;
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: 6px; padding: 12px 14px;
  font-size: 15px; font-family: inherit; color: var(--ink);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.auth-field input::placeholder { color: var(--muted); opacity: 0.6; }
.auth-field input:focus {
  outline: 0; background: var(--card);
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(240,68,46,0.18);
}

.auth-submit {
  display: block; width: 100%; margin-top: 8px;
  background: var(--ink) !important; color: var(--paper) !important;
  border: 1px solid var(--ink) !important; border-radius: 6px; padding: 14px 18px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  cursor: pointer; text-align: center; text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
  font-family: inherit;
}
.auth-submit:hover { background: var(--accent-2) !important; border-color: var(--accent-2) !important; }
.auth-submit:active { transform: translateY(1px); }
.auth-submit-secondary {
  background: #FFFFFF !important; color: var(--ink) !important;
  border: 1px solid #94A0B0 !important;
}
.auth-submit-secondary:hover { background: var(--paper-2) !important; }

.auth-foot {
  margin-top: 24px; font-size: 14px; color: var(--ink); opacity: 0.7; text-align: center;
}
.auth-foot a { color: var(--ink); opacity: 1; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.auth-foot a:hover { color: var(--accent); }

/* ---- Google button ----------------------------------------------------- */
.auth-google {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; box-sizing: border-box;
  margin-top: 24px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 13px 18px;
  font-size: 14.5px; font-weight: 500; color: var(--ink); text-decoration: none;
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
  cursor: pointer;
}
.auth-google:hover {
  background: var(--paper-2);
  border-color: var(--ink);
  box-shadow: 0 1px 0 var(--rule-soft), 0 6px 16px -10px rgba(17,24,39,0.18);
}
.auth-google svg { flex-shrink: 0; }

.auth-or {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0;
}
.auth-or-line { flex: 1; height: 1px; background: var(--rule); }
.auth-or-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--muted);
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* ---- visual column (signup only) --------------------------------------- */
.auth-visual {
  position: sticky; top: 96px;
  display: flex; flex-direction: column; gap: 24px;
}
@media (max-width: 880px) { .auth-visual { position: static; } }
.auth-receipt { max-width: 100%; }
.auth-quote {
  font-size: 17px; line-height: 1.45; color: var(--ink); opacity: 0.85;
  padding-left: 18px; border-left: 2px solid var(--accent);
}
.auth-quote .serif {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic; font-weight: 400;
}
