/* ==========================================================
   VitaVox — Primeiro Acesso (identidade ferrugem/pastel)
   Autossuficiente. Sem azul/roxo. Fonte Arial.
   ========================================================== */
:root{
  --bg:#f6f1ea; --surface:#ffffff; --surface-2:#fbf5ee;
  --border:rgba(120,86,52,.16); --border-soft:rgba(120,86,52,.10);
  --text:#2a211b; --ink:#241a13; --muted:rgba(42,33,27,.62);
  --rust:#b85327; --rust-strong:#9c3d14; --rust-soft:#d9824f; --rust-tint:#f4e2d4;
  --pastel-1:#fce4d2; --pastel-2:#f4c79c;
  --ok:#4f7a4a; --bad:#b23a2e;
  --shadow:0 30px 70px rgba(80,40,15,.18);
  --shadow-soft:0 10px 28px rgba(80,46,20,.10);
}
[data-theme="dark"]{
  --bg:#0d0d0d; --surface:#161310; --surface-2:#1c1712;
  --border:rgba(255,255,255,.12); --border-soft:rgba(255,255,255,.07);
  --text:#ece7e1; --ink:#f1ece6; --muted:rgba(236,231,225,.60);
  --rust:#df8a55; --rust-strong:#e8a072; --rust-soft:#e8a072; --rust-tint:#2a1c13;
  --pastel-1:#2a211b; --pastel-2:#241d18;
  --shadow:0 30px 70px rgba(0,0,0,.6);
  --shadow-soft:0 10px 28px rgba(0,0,0,.5);
}

*{ margin:0; padding:0; box-sizing:border-box; font-family:Arial,Helvetica,sans-serif; }
html,body{ min-height:100%; }
body{ background:var(--bg); color:var(--text); }

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ---------- SHELL 2 COLUNAS ---------- */
.auth-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:1.05fr 1fr;
}

/* ---------- PAINEL DE MARCA (assinatura) ---------- */
.auth-aside{
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:32px;
  padding:56px 52px;
  color:#fff;
  background:
    radial-gradient(120% 90% at 12% 8%, rgba(255,255,255,.16), transparent 46%),
    linear-gradient(150deg, var(--rust) 0%, var(--rust-strong) 62%, #7d2f0d 100%);
}
/* trama de rastreabilidade */
.auth-aside::after{
  content:"";
  position:absolute; inset:0;
  background-image:repeating-linear-gradient(125deg, rgba(255,255,255,.06) 0 1px, transparent 1px 26px);
  pointer-events:none;
}
.auth-aside > *{ position:relative; z-index:1; }

.auth-brand{ display:flex; align-items:center; gap:14px; }
.auth-mark{
  width:52px; height:52px; flex:0 0 auto;
  border-radius:15px;
  display:grid; place-items:center;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.28);
  font-size:24px; font-weight:900; letter-spacing:.5px;
}
.auth-wordmark{ font-size:22px; font-weight:900; letter-spacing:.4px; }
.auth-wordmark small{
  display:block; margin-top:3px;
  font-size:11px; font-weight:700; letter-spacing:.18em;
  color:rgba(255,255,255,.72);
}

.auth-pitch h2{
  font-size:30px; line-height:1.22; font-weight:900;
  max-width:15ch; margin-bottom:16px;
}
.auth-pitch p{
  font-size:14.5px; line-height:1.6; max-width:42ch;
  color:rgba(255,255,255,.86);
}
.auth-principle{
  display:inline-flex; align-items:center; gap:12px;
  padding:14px 18px; border-radius:14px;
  background:rgba(0,0,0,.16);
  border:1px solid rgba(255,255,255,.20);
  font-size:14px; font-weight:800; letter-spacing:.01em;
}
.auth-principle::before{
  content:""; width:10px; height:10px; flex:0 0 auto;
  border-radius:50%; background:var(--pastel-2);
  box-shadow:0 0 0 4px rgba(255,255,255,.18);
}

/* ---------- COLUNA DO FORMULÁRIO ---------- */
.auth-main{
  display:flex; align-items:center; justify-content:center;
  padding:48px 28px;
  background:var(--bg);
}
.auth-card{ width:100%; max-width:400px; }

.auth-head{ margin-bottom:26px; }
.auth-eyebrow{
  display:inline-block; margin-bottom:12px;
  padding:5px 12px; border-radius:999px;
  background:var(--rust-tint); color:var(--rust-strong);
  font-size:11px; font-weight:900; letter-spacing:.12em; text-transform:uppercase;
}
.auth-head h1{ font-size:27px; font-weight:900; color:var(--ink); }
.auth-head p{ margin-top:8px; font-size:14px; line-height:1.55; color:var(--muted); }

.auth-form{ display:flex; flex-direction:column; gap:14px; }

.field{
  display:flex; align-items:center; gap:11px;
  height:52px; padding:0 14px;
  border:1px solid var(--border); border-radius:13px;
  background:var(--surface);
  transition:border-color .18s ease, box-shadow .18s ease;
}
.field:focus-within{
  border-color:var(--rust-soft);
  box-shadow:0 0 0 4px rgba(184,83,39,.14);
}
.field .field-ico{
  width:20px; height:20px; flex:0 0 auto;
  stroke:var(--rust); fill:none; stroke-width:1.9;
  stroke-linecap:round; stroke-linejoin:round;
}
.field input{
  flex:1 1 auto; min-width:0; height:100%;
  border:0; outline:0; background:transparent;
  font-size:14.5px; color:var(--text);
}
.field input::placeholder{ color:var(--muted); }
.field-toggle{
  width:34px; height:34px; flex:0 0 auto;
  border:0; border-radius:9px; background:transparent;
  display:grid; place-items:center; color:var(--muted); cursor:pointer;
}
.field-toggle:hover{ background:var(--surface-2); color:var(--rust); }
.field-toggle svg{ width:19px; height:19px; stroke:currentColor; fill:none; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }

.field-hint{
  margin:-4px 2px 2px; font-size:12px; color:var(--muted);
}

.feedback{
  display:none;
  margin:2px 0;
  padding:11px 14px; border-radius:11px;
  font-size:13px; font-weight:700; line-height:1.4;
  background:#f7e2de; color:var(--bad);
  border:1px solid rgba(178,58,46,.28);
}
.feedback.show{ display:block; }
.feedback.ok{ background:#e9f3e6; color:var(--ok); border-color:rgba(79,122,74,.30); }

.auth-form button[type="submit"]{
  height:52px; margin-top:4px;
  border:0; border-radius:13px;
  background:var(--rust); color:#fff;
  font-size:15px; font-weight:900; letter-spacing:.01em; cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.auth-form button[type="submit"]:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 26px rgba(184,83,39,.32);
}
.auth-form button[type="submit"]:disabled{
  opacity:.6; cursor:default; transform:none; box-shadow:none;
}

.switch{ margin-top:22px; font-size:14px; color:var(--muted); }
.switch a{ color:var(--rust); font-weight:900; text-decoration:none; }
.switch a:hover{ text-decoration:underline; }

.footer{
  margin-top:16px; padding-top:16px;
  border-top:1px solid var(--border-soft);
  font-size:12px; line-height:1.55; color:var(--muted);
}

/* botão de tema no canto */
.theme-btn{
  position:fixed; top:18px; right:18px; z-index:5;
  width:42px; height:42px; border-radius:12px;
  border:1px solid var(--border); background:var(--surface);
  color:var(--rust); display:grid; place-items:center; cursor:pointer;
  box-shadow:var(--shadow-soft);
}
.theme-btn:hover{ background:var(--surface-2); }
.theme-btn svg{ width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }

/* ---------- RESPONSIVO ---------- */
@media (max-width:900px){
  .auth-shell{ grid-template-columns:1fr; }
  .auth-aside{
    padding:34px 30px;
    flex-direction:row; align-items:center; justify-content:space-between;
    gap:20px;
  }
  .auth-pitch,.auth-principle{ display:none; }
  .auth-main{ padding:36px 22px 56px; }
}
@media (max-width:520px){
  .auth-aside{ padding:26px 22px; }
  .auth-wordmark small{ display:none; }
  .auth-head h1{ font-size:24px; }
}
@media (prefers-reduced-motion:reduce){ *{ transition:none !important; } }