/* ═════════════════════════════════════════════════════════════════════════
   AUTH PAGES — /login, /signup, /account.

   Deliberately NOT carrying the site's full mega-nav. An auth page has one
   job, and a Features/Solutions dropdown on it is an invitation to wander
   off mid-signup. Just the logo (linking home) and the form.

   Uses the site's own tokens from styles.css (--accent, --text-primary,
   --border, --body-bg …) rather than inventing colours, so these pages
   inherit any future brand change automatically.
   ═════════════════════════════════════════════════════════════════════════ */

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 56px;
  background: var(--body-bg);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(21,22,26,.04), 0 12px 32px rgba(21,22,26,.06);
  padding: 34px 32px 30px;
}
.auth-logo { display: block; text-align: center; margin-bottom: 22px; }
.auth-logo img { height: 34px; width: auto; }
.auth-title { font-size: 22px; font-weight: 800; letter-spacing: -.4px; color: var(--text-primary); text-align: center; margin: 0 0 6px; }
.auth-sub { font-size: 13.5px; color: var(--text-secondary); text-align: center; margin: 0 0 24px; line-height: 1.55; }

.auth-field { margin-bottom: 15px; }
.auth-label { display: block; font-size: 12px; font-weight: 700; color: var(--text-secondary); margin-bottom: 6px; letter-spacing: .2px; }
.auth-label .opt { font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.auth-input {
  width: 100%;
  font: inherit;
  font-size: 14.5px;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 11px 13px;
  transition: border-color .15s, box-shadow .15s;
}
.auth-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.auth-input::placeholder { color: var(--text-muted); }
.auth-hint { font-size: 11.5px; color: var(--text-muted); margin-top: 5px; line-height: 1.5; }

.auth-btn {
  width: 100%;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  margin-top: 6px;
  transition: background .15s, opacity .15s;
}
.auth-btn:hover { background: var(--accent2); }
.auth-btn[disabled] { opacity: .6; cursor: default; }

.auth-alt { text-align: center; font-size: 13.5px; color: var(--text-secondary); margin-top: 18px; }
.auth-alt a { color: var(--accent); font-weight: 700; text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }

/* Errors are announced, not just coloured — a colour-only error is invisible
   to a screen reader and to anyone who cannot distinguish it. */
.auth-msg {
  display: none;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 9px;
  padding: 10px 12px;
  margin-bottom: 16px;
}
.auth-msg.err { display: block; background: rgba(226,68,92,.08); color: #b3243a; border: 1px solid rgba(226,68,92,.22); }
.auth-msg.ok  { display: block; background: rgba(0,200,117,.09); color: #05794b; border: 1px solid rgba(0,200,117,.25); }

.auth-legal { text-align: center; font-size: 11.5px; color: var(--text-muted); margin-top: 20px; line-height: 1.6; }
.auth-legal a { color: var(--text-secondary); text-decoration: none; }
.auth-legal a:hover { text-decoration: underline; }

/* /account */
.acct-row { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.acct-row:last-of-type { border-bottom: none; }
.acct-row .k { color: var(--text-secondary); }
.acct-row .v { color: var(--text-primary); font-weight: 600; text-align: right; word-break: break-word; }
.acct-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.acct-badge.yes { background: rgba(0,200,117,.12); color: #05794b; }
.acct-badge.no  { background: rgba(140,141,151,.14); color: var(--text-secondary); }

@media (max-width: 480px) {
  .auth-card { padding: 26px 20px 24px; border-radius: 14px; }
  .auth-title { font-size: 20px; }
}
