:root{
  --primary:#2563eb;
  --primary-dark:#1d4ed8;
  --secondary:#4f46e5;
  --text:#172033;
  --muted:#667085;
  --bg:#f3f6fb;
  --card:#ffffff;
  --border:#e1e7ef;
  --danger:#b42318;
  --success:#027a48;
  --warning:#92400e;
}

*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:var(--text)}
body.auth-page{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px;
  background:
    radial-gradient(circle at 8% 8%,rgba(37,99,235,.12),transparent 30%),
    radial-gradient(circle at 92% 90%,rgba(79,70,229,.10),transparent 32%),
    var(--bg);
}

.auth-shell{
  width:min(980px,100%);
  display:grid;
  grid-template-columns:minmax(330px,1fr) minmax(390px,1.02fr);
  background:var(--card);
  border:1px solid rgba(16,24,40,.06);
  border-radius:28px;
  overflow:hidden;
  box-shadow:0 24px 70px rgba(15,23,42,.14);
}

.auth-brand{
  min-height:560px;
  padding:56px 48px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  color:#fff;
  background:linear-gradient(145deg,#1f56d9 0%,#2563eb 48%,#4f46e5 100%);
  position:relative;
  overflow:hidden;
}
.auth-brand:after{
  content:"";
  position:absolute;
  width:260px;height:260px;
  right:-110px;bottom:-110px;
  border-radius:50%;
  background:rgba(255,255,255,.08);
}
.auth-brand img{
  width:76px;height:76px;
  object-fit:cover;
  border-radius:22px;
  border:5px solid rgba(255,255,255,.9);
  box-shadow:0 12px 30px rgba(0,0,0,.16);
  margin-bottom:28px;
  position:relative;z-index:1;
}
.auth-brand div{position:relative;z-index:1;max-width:370px}
.auth-brand strong{
  display:block;
  margin:0 0 10px;
  font-size:32px;
  line-height:1.12;
  letter-spacing:-.8px;
}
.auth-brand span{
  display:block;
  color:rgba(255,255,255,.9);
  font-size:16px;
  line-height:1.55;
}
.auth-brand div:after{
  content:"✓ Telefone verificado\A✓ Uma participação por pesquisa\A✓ Comprovante após o voto";
  white-space:pre-line;
  display:block;
  margin-top:34px;
  color:#fff;
  font-size:15px;
  line-height:2.05;
}

.auth-card{
  min-width:0;
  padding:48px 48px 42px;
  background:#fff;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.auth-icon{
  width:48px;height:48px;
  border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  background:#eff6ff;
  color:var(--primary);
  font-size:18px;
  font-weight:800;
  margin-bottom:20px;
}
.auth-card h1{
  margin:0 0 8px;
  font-size:30px;
  line-height:1.2;
  letter-spacing:-.5px;
  color:#101828;
}
.muted{margin:0 0 24px;color:var(--muted);font-size:15px;line-height:1.55}
.auth-card label{
  display:block;
  margin:18px 0 0;
  color:#344054;
  font-size:13px;
  line-height:1.3;
  font-weight:700;
}
.auth-card input,
.auth-card select,
.auth-card textarea{
  display:block;
  width:100%;
  margin-top:8px;
  min-height:50px;
  border:1px solid var(--border);
  border-radius:12px;
  padding:13px 14px;
  background:#fff;
  color:#101828;
  font:inherit;
  font-size:15px;
  outline:none;
  transition:border-color .18s,box-shadow .18s,background .18s;
}
.auth-card input::placeholder{color:#98a2b3}
.auth-card input:focus,
.auth-card select:focus,
.auth-card textarea:focus{
  border-color:#7aa2f8;
  box-shadow:0 0 0 4px rgba(37,99,235,.10);
}
.phone-grid{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px}
.password-wrap{position:relative}
.password-wrap input{padding-right:88px}
.password-wrap button{
  position:absolute;
  right:8px;
  top:8px;
  min-height:34px;
  border:0;
  border-radius:8px;
  padding:7px 10px;
  background:#f2f4f7;
  color:#475467;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
.password-wrap button:hover{background:#e4e7ec}
.primary-btn{
  display:block;
  width:100%;
  min-height:52px;
  margin-top:24px;
  border:0;
  border-radius:13px;
  padding:14px 18px;
  background:linear-gradient(135deg,var(--primary),var(--secondary));
  color:#fff;
  font:inherit;
  font-size:15px;
  font-weight:750;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(37,99,235,.20);
  transition:transform .15s,box-shadow .15s,filter .15s;
}
.primary-btn:hover{transform:translateY(-1px);filter:brightness(1.02);box-shadow:0 13px 26px rgba(37,99,235,.25)}
.primary-btn:active{transform:translateY(0)}
.auth-footer{
  margin:20px 0 0;
  text-align:center;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}
.auth-footer a,.link-btn{color:var(--primary);font-weight:700;text-decoration:none}
.auth-footer a:hover,.link-btn:hover{text-decoration:underline}
.alert{padding:12px 14px;border-radius:12px;margin:16px 0 4px;font-size:13px;line-height:1.45;background:#fff7ed;color:#9a3412;border:1px solid #fed7aa}
.alert-danger{background:#fef3f2;color:var(--danger);border-color:#fecdca}
.alert-success{background:#ecfdf3;color:var(--success);border-color:#abefc6}
.alert-warning{background:#fffaeb;color:var(--warning);border-color:#fedf89}
.otp-input{text-align:center!important;font-size:26px!important;letter-spacing:9px!important;font-weight:700}
.link-btn{border:0;background:transparent;cursor:pointer;padding:8px;font:inherit}
.resend{text-align:center}
.resend .link-btn{margin-top:8px}

@media(max-width:760px){
  body.auth-page{padding:14px;align-items:flex-start}
  .auth-shell{grid-template-columns:1fr;border-radius:22px;margin:12px 0}
  .auth-brand{min-height:auto;padding:30px 26px 28px}
  .auth-brand img{width:62px;height:62px;border-radius:18px;margin-bottom:18px}
  .auth-brand strong{font-size:26px}
  .auth-brand span{font-size:14px}
  .auth-brand div:after{margin-top:18px;font-size:13px;line-height:1.8}
  .auth-card{padding:30px 24px 28px}
  .auth-card h1{font-size:25px}
}
@media(max-width:430px){
  body.auth-page{padding:8px}
  .auth-shell{margin:4px 0}
  .auth-brand{padding:26px 20px}
  .auth-card{padding:26px 18px 24px}
  .phone-grid{grid-template-columns:82px minmax(0,1fr);gap:9px}
}
