/* ──────────────────────────────────────────────────────────────────────────
   Shared auth layout · used by login.html and signup.html
   Assumes css/style.css is loaded first for tokens & inputs.
   ────────────────────────────────────────────────────────────────────────── */

body {
  background: var(--surface-1);
  min-height: 100vh;
}

.auth-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  min-height: 100vh;
}

.auth-form-col {
  background: var(--surface-0);
  border-right: 1px solid var(--border);
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
}

.auth-quote-col {
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at top right, var(--accent-soft) 0%, var(--surface-1) 60%);
}

.auth-brand {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 56px;
  text-decoration: none;
  color: var(--text-primary);
}
.auth-brand-dot {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dk));
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 2px rgba(188,104,65,.4), inset 0 1px 0 rgba(255,255,255,.2);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
}
.auth-brand-name {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -.01em;
}

.auth-form-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.auth-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 38px;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--text-primary);
  margin: 0 0 8px;
}
.auth-sub {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin: 0 0 28px;
}

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0 24px;
  font-size: 12px;
  color: var(--text-muted);
}
.auth-divider::before,
.auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

.auth-row { margin-bottom: 16px; }
.auth-label-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 7px;
}
.auth-label {
  font-size: 13px; font-weight: 500; color: var(--text-primary);
}
.auth-hint {
  font-size: 12px; color: var(--text-muted);
}
.auth-hint a { color: var(--accent); text-decoration: none; font-weight: 500; }
.auth-hint.strong  { color: var(--sage); }
.auth-hint.weak    { color: #C29B3B; }
.auth-hint.error   { color: var(--danger); }

.auth-strength {
  display: flex; gap: 4px; margin: 8px 0 0;
}
.auth-strength span {
  flex: 1; height: 3px; border-radius: 2px; background: var(--border);
  transition: background .2s;
}
.auth-strength[data-score="1"] span:nth-child(-n+1) { background: #D8A878; }
.auth-strength[data-score="2"] span:nth-child(-n+2) { background: var(--accent); }
.auth-strength[data-score="3"] span:nth-child(-n+3) { background: var(--sage); }

.auth-remember {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-secondary);
  margin-bottom: 20px;
}
.auth-remember input { accent-color: var(--accent); }

.auth-terms {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 18px;
}
.auth-terms a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 2px; }

.auth-submit {
  width: 100%; padding: 12px 22px;
  background: var(--text-primary); color: var(--surface-0);
  border: 1px solid var(--text-primary); border-radius: var(--radius-md);
  font-family: var(--font); font-size: 15px; font-weight: 500;
  cursor: pointer;
  transition: background .12s;
  box-shadow: 0 1px 0 rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.06);
}
.auth-submit:hover { background: #2A2E3A; }
.auth-submit:disabled { opacity: .55; cursor: not-allowed; }

.auth-google {
  width: 100%; padding: 11px 22px;
  background: var(--surface-0); color: var(--text-primary);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  font-family: var(--font); font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: background .12s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: var(--shadow-xs);
}
.auth-google:hover:not(:disabled) { background: var(--surface-1); }
.auth-google:disabled { opacity: .55; cursor: not-allowed; }

.auth-footer {
  margin-top: 28px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-secondary);
}
.auth-footer a { color: var(--accent); text-decoration: none; font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

.auth-form-footer {
  margin-top: auto;
  padding-top: 28px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Right marketing panel ────────────────────────────────────────── */
.auth-quote-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: var(--surface-0);
  border: 1px solid var(--border);
  font-size: 12px; font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.auth-quote-eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 6px; background: var(--accent);
}
.auth-quote-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 56px;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: var(--text-primary);
  margin: 0 0 20px;
}
.auth-quote-title em { font-style: italic; color: var(--accent); font-weight: 400; }
.auth-quote-sub {
  font-size: 16px; color: var(--text-secondary);
  line-height: 1.55; max-width: 420px;
  margin: 0;
}

.auth-quote-card {
  margin-top: 48px;
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 420px;
  box-shadow: 0 12px 30px -16px rgba(27,30,38,.18);
  display: flex; gap: 14px; align-items: flex-start;
}
.auth-quote-avatar {
  width: 44px; height: 44px; border-radius: 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dk));
  color: var(--surface-0);
  font-family: var(--font-serif); font-size: 22px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.auth-quote-card p {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0;
}
.auth-quote-card .attr {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 10px;
}
.auth-quote-card .attr strong { color: var(--text-primary); font-weight: 600; }

/* ── Mobile ─────────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .auth-grid { grid-template-columns: 1fr; }
  .auth-quote-col { display: none; }
  .auth-form-col { border-right: none; padding: 32px 24px; }
  .auth-title { font-size: 30px; }
}
