: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;
}

/* Fundo via BD (leve overlay) */
body[style*="--auth-bg"]::before{
  content:"";
  position:fixed; inset:0;
  background:center/cover no-repeat;
  background-image:var(--auth-bg);
  opacity:.18;
  pointer-events:none;
  z-index:-1;
}

/* ===== 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(520px,100%);
  margin:0 auto;
  padding:22px 22px 26px;
}

.auth-card__header{
  display:flex; align-items:center; gap:14px;
  margin-bottom:10px;
}
.auth-logo{ width:54px; height:auto; display:block }
.auth-card__header h1{ margin:0; font-size:1.45rem; letter-spacing:.3px }

/* nota */
.auth-note{
  margin:6px 0 10px;
  font-size:.95rem;
  color:#374151;
}

/* 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:8px }
.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 }

/* Botão */
.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) }

/* Links */
.auth-links{
  text-align:center;
  margin:14px 0 0;
  color:var(--muted);
}
.auth-links a{
  color:#0b56c4; text-decoration:none; font-weight:600;
}
.auth-links a:hover{ text-decoration:underline }
