/* Telas de ACESSO (login, esqueci a senha, código, redefinir, avisos).
   Vive num arquivo só porque são quatro páginas que precisam ser reconhecidas como a mesma
   porta de entrada: estilo copiado por página envelhece torto e vira quatro produtos.
   Paleta da MARCA Vida+: sage #222c42 + gold #c60f15 sobre creme #f8f2e7 (mesmas variáveis
   de backend/public/login.html — a referência de identidade). */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg: #f8f2e7;
  --surface: #fbf6ec;
  --surface-2: #fdfaf2;
  --ink: #1c1c1a;
  --ink-soft: #4a4842;
  --ink-muted: #8b877e;
  --line: #e8dfca;
  --sage: #222c42;
  --sage-deep: #161d2d;
  --sage-mist: #e6e9ef;
  --gold: #c60f15;
  --gold-soft: #f5c8ca;
  --coral: #c60f15;
  --coral-bg: #fce8e9;
}
html[data-theme="dark"] {
  --bg: #13171e;
  --surface: #1b212c;
  --surface-2: #232b39;
  --ink: #ece7dc;
  --ink-soft: #b8b2a5;
  --ink-muted: #8a8578;
  --line: #2d3543;
  --sage: #8694bb;
  --sage-deep: #a7b1d0;
  --sage-mist: #283047;
  --gold: #ff5d62;
  --gold-soft: #6b2a2e;
  --coral: #ff5d62;
  --coral-bg: #3a1e21;
}
html, body { margin: 0; height: 100%; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; position: relative; overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(34,44,66,0.06) 0%, transparent 35%),
    radial-gradient(circle at 90% 90%, rgba(198,15,21,0.06) 0%, transparent 35%);
  z-index: 0;
}
.card {
  position: relative; z-index: 3;
  background: var(--surface-2);
  padding: 56px 48px 44px;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(28,28,26,0.08), 0 0 0 1px var(--line);
  width: 100%; max-width: 420px;
}
.card::before {
  content: '';
  position: absolute; top: 8px; left: 8px; right: 8px; bottom: 8px;
  border: 1px solid var(--gold-soft);
  border-radius: 2px; pointer-events: none; opacity: 0.4;
}
.mark {
  width: 56px; height: 56px; margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage), var(--sage-deep));
  color: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: 26px; font-weight: 500; letter-spacing: -0.03em;
  box-shadow: 0 6px 18px rgba(31,87,85,0.2);
}
h1 {
  margin: 0 0 4px; font-family: 'Fraunces', serif;
  font-size: 32px; font-weight: 500; letter-spacing: -0.02em;
  text-align: center; color: var(--ink);
}
h1 em { font-style: italic; color: var(--sage); font-weight: 400; }
.sub {
  text-align: center; color: var(--ink-muted); font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 36px; font-weight: 500;
}
label {
  display: block; font-family: 'Fraunces', serif; font-style: italic;
  font-size: 13px; color: var(--sage-deep); margin-bottom: 8px; font-weight: 500;
}
.field { margin-bottom: 18px; }
input {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 4px;
  font-size: 14px; font-family: 'DM Sans', system-ui, sans-serif;
  outline: none; background: var(--surface); color: var(--ink);
  transition: all 0.18s;
}
input:focus {
  border-color: var(--sage); background: var(--surface-2);
  box-shadow: 0 0 0 3px rgba(31,87,85,0.1);
}
button[type=submit], .botao {
  width: 100%; padding: 14px;
  background: var(--sage); color: var(--surface-2);
  border: none; border-radius: 4px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
  margin-top: 12px; transition: all 0.18s;
  display: block; text-align: center; text-decoration: none;
}
button[type=submit]:hover, .botao:hover {
  background: var(--sage-deep); transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(19,56,55,0.25);
}
.foot { margin-top: 36px; text-align: center; font-size: 11px; color: var(--ink-muted); letter-spacing: 0.08em; }
.foot .brand-line {
  font-family: 'Fraunces', serif; font-style: italic; font-size: 13px;
  color: var(--sage-deep); letter-spacing: 0.04em;
}
.foot .by {
  display: block; font-size: 10px; color: var(--ink-muted);
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 6px;
}
.ornament-bottom {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-size: 12px; color: var(--ink-muted); letter-spacing: 0.1em;
  text-align: center; z-index: 2;
}
.captcha-box {
  display: flex; align-items: center; justify-content: center;
  padding: 10px 12px; margin-bottom: 10px;
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--surface); color: var(--sage-deep);
  user-select: none;
}
.captcha-box img { display: block; max-width: 100%; height: auto; border-radius: 2px; }
.captcha-reload { display: inline-block; font-size: 11px; color: var(--ink-muted); text-decoration: none; letter-spacing: 0.03em; }
.captcha-reload:hover { color: var(--sage); text-decoration: underline; }

/* ---- Recuperação de senha ---- */
.explica { font-size: 13px; line-height: 1.6; color: var(--ink-soft); text-align: center; margin: 0 0 26px; }
.radio {
  display: flex; align-items: center; gap: 9px;
  font-family: 'DM Sans', sans-serif; font-style: normal;
  font-size: 13.5px; color: var(--ink-soft); text-transform: none; letter-spacing: 0;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 6px;
  margin-bottom: 8px; cursor: pointer; background: var(--surface);
}
.radio:hover { border-color: var(--sage); }
.radio input { width: auto; margin: 0; padding: 0; }
.aviso { font-size: 14px; line-height: 1.65; color: var(--ink-soft); text-align: center; margin-top: 18px; }
.aviso a { color: var(--sage-deep); font-weight: 600; }
.aviso p { margin: 0 0 14px; }
.aviso-inline {
  font-size: 12.5px; line-height: 1.55; color: var(--ink-soft);
  background: var(--gold-soft); border-radius: 6px; padding: 11px 13px; margin-bottom: 18px;
}
.erro {
  font-size: 13px; line-height: 1.5; color: var(--surface-2); background: var(--gold);
  border-radius: 6px; padding: 10px 13px; margin-bottom: 18px; text-align: center;
}
.voltar {
  display: block; text-align: center; margin-top: 24px;
  font-size: 12px; color: var(--ink-muted); text-decoration: none; letter-spacing: 0.03em;
}
.voltar:hover { color: var(--sage); text-decoration: underline; }
.link-esqueci {
  display: block; text-align: right; margin-top: -8px; margin-bottom: 16px;
  font-size: 12px; color: var(--ink-muted); text-decoration: none;
}
.link-esqueci:hover { color: var(--sage); text-decoration: underline; }
