/* 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 Shopdent: coral #F16542 + creme #F5EEE6 (da logo oficial). */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg: #f5eee6;
  --surface: #faf5ee;
  --surface-2: #fffcf7;
  --ink: #241812;
  --ink-soft: #54453c;
  --ink-muted: #94857a;
  --line: #e7d9cc;
  --coral: #f16542;
  --coral-deep: #d14a28;
  --coral-soft: #fbd9cd;
}
html[data-theme="dark"] {
  --bg: #170d08;
  --surface: #221510;
  --surface-2: #2d1d15;
  --ink: #f5eee6;
  --ink-soft: #d6c6bb;
  --ink-muted: #a08c7f;
  --line: #3d2a1e;
  --coral: #f16542;
  --coral-deep: #ff8f6c;
  --coral-soft: #4a2517;
}
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Hanken Grotesk', 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 12% 12%, rgba(241,101,66,0.10) 0%, transparent 38%),
    radial-gradient(circle at 88% 88%, rgba(241,101,66,0.08) 0%, transparent 38%);
  z-index: 0;
}
.card {
  position: relative; z-index: 3;
  background: var(--surface-2);
  padding: 52px 48px 42px;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(90,45,30,0.12), 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(--coral-soft);
  border-radius: 4px; pointer-events: none; opacity: 0.55;
}
.mark { width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center; }
.mark img { width: 64px; height: 64px; display: block; filter: drop-shadow(0 8px 18px rgba(241,101,66,0.35)); }
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(--coral); 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: 600;
}
label {
  display: block; font-family: 'Fraunces', serif; font-style: italic;
  font-size: 13px; color: var(--coral-deep); margin-bottom: 8px; font-weight: 500;
}
.field { margin-bottom: 18px; }
input {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 6px;
  font-size: 14px; font-family: 'Hanken Grotesk', system-ui, sans-serif;
  outline: none; background: var(--surface); color: var(--ink);
  transition: all 0.18s;
}
input:focus {
  border-color: var(--coral); background: var(--surface-2);
  box-shadow: 0 0 0 3px rgba(241,101,66,0.16);
}
button[type=submit], .botao {
  width: 100%; padding: 14px;
  background: var(--coral); color: #fff;
  border: none; border-radius: 6px;
  font-family: 'Hanken Grotesk', sans-serif; font-size: 14px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
  margin-top: 12px; transition: all 0.18s;
  box-shadow: 0 10px 24px -10px rgba(241,101,66,0.6);
  display: block; text-align: center; text-decoration: none;
}
button[type=submit]:hover, .botao:hover { background: var(--coral-deep); transform: translateY(-1px); }
.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(--coral-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; white-space: nowrap;
}
.captcha-box {
  display: flex; justify-content: center; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 6px; padding: 10px; margin-bottom: 10px;
}
.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(--coral); 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: 'Hanken Grotesk', 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(--coral); }
.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(--coral-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(--coral-soft); border-radius: 6px; padding: 11px 13px; margin-bottom: 18px;
}
.erro {
  font-size: 13px; line-height: 1.5; color: #fff; background: var(--coral-deep);
  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(--coral); 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(--coral); text-decoration: underline; }
