/* Auth pages: shared styles for register, login, verify, forgot-password,
   reset-password, account. Matches the landing page's palette. */
:root {
  --bg: #ffffff; --bg-alt: #fafafa; --bg-soft: #f3f4f6;
  --border: #e5e7eb; --text: #0f172a; --text-soft: #334155; --muted: #64748b;
  --accent: #7c3aed; --accent-dark: #6d28d9; --accent-soft: #f3eeff;
  --positive: #16a34a; --warm: #f59e0b; --danger: #dc2626;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-alt);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5; font-size: 15px; min-height: 100vh;
}
header.site { background: var(--bg); border-bottom: 1px solid var(--border); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.header-inner { display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700;
  font-size: 1.02rem; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand svg { color: var(--accent); }
.brand-tag { color: var(--muted); font-weight: 500; font-size: 0.86rem; margin-left: 6px; }

.auth-wrap { display: flex; align-items: flex-start; justify-content: center;
  padding: 60px 20px 80px; }
.auth-card { background: var(--bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 36px 36px 32px; max-width: 440px; width: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.auth-card h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em;
  margin: 0 0 6px; color: var(--text); }
.auth-card .lede { color: var(--muted); font-size: 0.92rem; margin: 0 0 24px;
  line-height: 1.55; }
.auth-card label { display: block; font-size: 0.78rem; font-weight: 600;
  color: var(--text-soft); margin: 14px 0 6px; }
.auth-card input[type="email"], .auth-card input[type="password"], .auth-card input[type="text"],
.auth-card textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 0.96rem; font-family: inherit;
  background: var(--bg); color: var(--text);
}
.auth-card textarea { resize: vertical; min-height: 280px; line-height: 1.5; }
.auth-card input:focus, .auth-card textarea:focus { outline: none;
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.auth-card .btn-primary { width: 100%; padding: 12px 16px; background: var(--accent);
  color: white; border: none; border-radius: 8px; font-size: 0.96rem;
  font-weight: 600; font-family: inherit; cursor: pointer; margin-top: 18px;
  transition: background 0.15s; }
.auth-card .btn-primary:hover { background: var(--accent-dark); }
.auth-card .btn-primary:disabled { background: #c4b5fd; cursor: not-allowed; }
.auth-card .row-links { margin-top: 18px; display: flex;
  justify-content: space-between; font-size: 0.84rem; }
.auth-card .row-links a { color: var(--accent); text-decoration: none; font-weight: 500; }
.auth-card .row-links a:hover { text-decoration: underline; }
.auth-card .alt { text-align: center; margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--border); font-size: 0.88rem; color: var(--muted); }
.auth-card .alt a { color: var(--accent); font-weight: 600; text-decoration: none; }
.auth-card .alt a:hover { text-decoration: underline; }
.auth-card .strength { font-size: 0.74rem; color: var(--muted); margin-top: 4px; }

/* Password show/hide eye toggle */
.pw-wrap { position: relative; }
.pw-wrap input[type="password"], .pw-wrap input[type="text"] { padding-right: 42px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 6px; border-radius: 6px;
  color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.pw-toggle:hover { color: var(--text); background: var(--bg-soft); }
.pw-toggle svg { width: 18px; height: 18px; display: block; }

/* Required-field asterisk */
.auth-card label.req::after {
  content: " *"; color: var(--danger); font-weight: 700; margin-left: 1px;
}

/* Light helper text under a label — used when revealed by an info icon. */
.field-help { font-size: 0.78rem; color: var(--muted);
  margin: -2px 0 8px; line-height: 1.5; }
.field-help strong { color: var(--text-soft); font-weight: 600; }

/* Inline info icon — small (i) glyph beside a label. No button rectangle:
   just a clickable SVG that changes color on hover. */
.info-icon-inline { background: none; border: none; cursor: pointer; padding: 0;
  margin-left: 6px; vertical-align: -2px; color: var(--muted);
  display: inline-flex; align-items: center; }
.info-icon-inline:hover { color: var(--accent); }
.info-icon-inline svg { width: 15px; height: 15px; display: block; }

.auth-card .strength.weak { color: var(--danger); }
.auth-card .strength.med  { color: var(--warm); }
.auth-card .strength.strong { color: var(--positive); }

.banner { padding: 12px 14px; border-radius: 8px; font-size: 0.84rem;
  line-height: 1.5; margin: 0 0 18px; }
.banner.error   { background: #fef2f2; border: 1px solid #fecaca; color: #7f1d1d; }
.banner.success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #14532d; }
.banner.info    { background: var(--accent-soft); border: 1px solid #ddd6fe; color: #5b21b6; }

.spinner { display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: white;
  border-radius: 50%; animation: spin 0.7s linear infinite;
  vertical-align: -2px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
