/* ===== Base + tema herdado do painel ===== */
:root{
  --ink:#0f2c3a;
  --muted:#5f6b74;
  --bg:#edf6fb;
  --panel:#ffffff;
  --shadow:0 10px 26px rgba(20,62,81,.08);
  --radius:16px;
  --grad:linear-gradient(135deg,#7c3aed 10%, #2563eb 60%, #22d3ee 120%);
  --ring:0 0 0 3px rgba(37,99,235,.2);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--ink);
  background:var(--bg);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Poppins",sans-serif;
}

/* Se veio imagem do BD */
body[style*="--auth-bg"]{
  background:var(--bg);
}
body[style*="--auth-bg"]::before{
  content:"";
  position:fixed; inset:0;
  background:var(--bg) center/cover no-repeat;
  background-image:var(--auth-bg);
  opacity:.18; /* leve */
  pointer-events:none;
  z-index:-1;
}

/* Pequeno ajuste de navegação do include (sem depender de classes) */
header nav a+a{ margin-left:18px } /* dá respiro entre “Sobre” e “Contato”, etc. */

/* ===== Layout ===== */
.auth-wrap{
  max-width:980px;
  margin:28px auto 40px;
  padding:0 16px;
}

.auth-card{
  background:var(--panel);
  border-radius:20px;
  box-shadow:var(--shadow);
  border:1px solid #e9eff5;
  width:min(760px,100%);
  margin:0 auto;
  padding:22px 22px 26px;
}

.auth-card__header{
  display:flex; align-items:center; gap:14px;
  margin-bottom:14px;
}
.auth-logo{
  width:56px; height:auto; display:block;
}
.auth-card__header h1{
  margin:0; font-size:1.6rem; letter-spacing:.3px;
}

/* Alerts */
.auth-alert{
  border-radius:12px; padding:10px 12px; margin:10px 0 14px;
  font-weight:600;
}
.auth-alert--ok{
  background:#ecfdf5; border-left:4px solid #10b981; color:#065f46;
}
.auth-alert--error{
  background:#fef2f2; border-left:4px solid #ef4444; color:#7f1d1d;
}

/* Form */
.auth-form{ margin-top:6px }
.field{ margin-bottom:12px }
.field label{
  display:block; font-weight:700; margin-bottom:6px; color:#0f2c3a;
}
.field input{
  width:100%;
  background:#f6f9fc;
  border:1px solid #dbe7f1;
  border-radius:12px;
  padding:.78rem .9rem;
  outline:0;
  transition:box-shadow .15s ease,border-color .15s ease;
}
.field input:focus{ box-shadow:var(--ring); border-color:#bcd3ea }

.grid{ display:grid; gap:12px }
.grid-2{ grid-template-columns:repeat(2,1fr) }
@media (max-width:760px){ .grid-2{ grid-template-columns:1fr } }

.terms{
  display:flex; align-items:center; gap:10px; margin:8px 0 14px;
}
.terms input[type="checkbox"]{
  width:18px; height:18px; margin:0; accent-color:#2563eb;
}
.terms a{
  color:#143E51; font-weight:800; text-decoration:underline;
}

/* Botão com gradiente (igual ao painel) */
.btn-grad{
  display:inline-block;
  border:0; color:#fff; font-weight:800; cursor:pointer;
  background:var(--grad);
  padding:.95rem 1.2rem;
  border-radius:14px;
  box-shadow:0 12px 26px rgba(37,99,235,.22);
  transition:transform .15s ease, filter .15s ease;
  width:100%;
  text-align:center;
}
.btn-grad:hover{ transform:translateY(-1px); filter:brightness(1.02) }

.backlink{
  text-align:center; margin:14px 0 0;
}
.backlink a{ color:#0b56c4; text-decoration:none; font-weight:600 }
.backlink a:hover{ text-decoration:underline }
