/* Auth pages (sign up / log in / account) — built on the shared design tokens in styles.css */

.auth-wrap {
  min-height: calc(100vh - 130px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(28px, 6vh, 72px) var(--gutter) 64px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--line, rgba(15, 23, 42, 0.08));
  border-radius: 20px;
  box-shadow: 0 40px 90px -40px rgba(15, 23, 42, 0.28), 0 10px 26px -16px rgba(15, 23, 42, 0.14);
  padding: clamp(26px, 4vw, 40px);
}

.auth-card h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin: 0;
}

.auth-sub {
  color: var(--ink-muted, #64748b);
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0.5rem 0 1.6rem;
}

.auth-field {
  margin-bottom: 1rem;
}
.auth-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft, #334155);
  margin-bottom: 0.4rem;
}
.auth-field input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink, #0f172a);
  background: var(--bg-soft, #f8fafc);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
  padding: 0.72em 0.9em;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.auth-field input:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand, #4f46e5);
  box-shadow: 0 0 0 3px var(--brand-soft, #eef2ff);
}

.auth-actions {
  margin-top: 1.4rem;
}
.auth-actions .btn {
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.auth-hint {
  font-size: 0.82rem;
  color: var(--ink-faint, #94a3b8);
  margin-top: 0.4rem;
}

.auth-msg {
  font-size: 0.9rem;
  line-height: 1.5;
  border-radius: 12px;
  padding: 0.7em 0.9em;
  margin-bottom: 1.1rem;
  display: none;
}
.auth-msg.show { display: block; }
.auth-msg.error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.auth-msg.success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.auth-msg.info { background: var(--brand-soft, #eef2ff); color: var(--brand-700, #3730a3); border: 1px solid #c7d2fe; }

.auth-foot {
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-muted, #64748b);
  margin-top: 1.4rem;
}
.auth-foot a { color: var(--brand-600, #4338ca); font-weight: 600; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

/* "or" divider between password and magic-link */
.auth-or {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink-faint, #94a3b8);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 1.5rem 0;
}
.auth-or::before, .auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line, #e2e8f0);
}

.auth-link-btn {
  background: none;
  border: none;
  color: var(--brand-600, #4338ca);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.auth-link-btn:hover { text-decoration: underline; }

.btn[disabled], .auth-actions .btn[aria-busy="true"] { opacity: 0.6; pointer-events: none; }

/* Account page */
.account-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line, #eef1f6);
  font-size: 0.96rem;
}
.account-row:last-of-type { border-bottom: none; }
.account-row .k { color: var(--ink-muted, #64748b); }
.account-row .v { color: var(--ink, #0f172a); font-weight: 600; text-align: right; word-break: break-word; }
.pill-verified { font-size: 0.75rem; font-weight: 700; padding: 0.2em 0.6em; border-radius: 999px; }
.pill-verified.yes { background: #f0fdf4; color: #15803d; }
.pill-verified.no { background: #fff7ed; color: #c2410c; }
