/* v20260326-01 | auth.panel.generic */
:root{
  --auth-bg:#f3f6fb;
  --auth-surface:#ffffff;
  --auth-surface-2:#f8fafc;
  --auth-ink:#0f172a;
  --auth-muted:#64748b;
  --auth-line:#dbe4f0;
  --auth-primary:#2563eb;
  --auth-primary-2:#1d4ed8;
  --auth-danger:#dc2626;
  --auth-danger-bg:#fef2f2;
  --auth-success:#15803d;
  --auth-success-bg:#f0fdf4;
  --auth-shadow:0 24px 60px rgba(15,23,42,.10);
  --auth-radius:24px;
  --auth-radius-sm:16px;
  --auth-control-h:52px;
}

*{box-sizing:border-box}

html,body{
  min-height:100%;
  margin:0;
}

body.auth-page{
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.08), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, var(--auth-bg) 100%);
  color:var(--auth-ink);
}

.auth-shell{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:32px 18px;
}

.auth-card{
  width:min(100%, 460px);
  background:var(--auth-surface);
  border:1px solid var(--auth-line);
  border-radius:var(--auth-radius);
  box-shadow:var(--auth-shadow);
  padding:30px;
}

.auth-header{
  display:grid;
  gap:10px;
  margin-bottom:24px;
}

.auth-eyebrow{
  margin:0;
  font-size:12px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--auth-primary);
}

.auth-header h1{
  margin:0;
  font-size:32px;
  line-height:1.08;
}

.auth-subtitle{
  margin:0;
  font-size:15px;
  line-height:1.6;
  color:var(--auth-muted);
}

.auth-form{
  display:grid;
  gap:18px;
}

.auth-field{
  display:grid;
  gap:8px;
}

.auth-field span{
  font-size:14px;
  font-weight:700;
}

.auth-field input{
  width:100%;
  height:var(--auth-control-h);
  border:1px solid var(--auth-line);
  border-radius:var(--auth-radius-sm);
  background:var(--auth-surface-2);
  padding:0 16px;
  font-size:15px;
  color:var(--auth-ink);
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.auth-field input:focus{
  border-color:rgba(37,99,235,.55);
  box-shadow:0 0 0 4px rgba(37,99,235,.10);
  background:#fff;
}

.auth-button{
  width:100%;
  min-height:54px;
  border:0;
  border-radius:18px;
  background:linear-gradient(180deg, var(--auth-primary) 0%, var(--auth-primary-2) 100%);
  color:#fff;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
  transition:transform .12s ease, filter .18s ease;
}

.auth-button:hover{
  filter:brightness(1.04);
}

.auth-button:active{
  transform:translateY(1px);
}

.auth-alert{
  border-radius:16px;
  padding:14px 16px;
  margin:0 0 18px 0;
  font-size:14px;
  line-height:1.5;
}

.auth-alert--error{
  color:var(--auth-danger);
  background:var(--auth-danger-bg);
  border:1px solid rgba(220,38,38,.15);
}

.auth-alert--success{
  color:var(--auth-success);
  background:var(--auth-success-bg);
  border:1px solid rgba(21,128,61,.15);
}

.auth-footer{
  margin-top:18px;
  text-align:center;
}

.auth-footer a{
  color:var(--auth-primary);
  font-weight:700;
  text-decoration:none;
}

.auth-footer a:hover{
  text-decoration:underline;
}

@media (max-width:640px){
  .auth-card{
    padding:24px 18px;
    border-radius:22px;
  }

  .auth-header h1{
    font-size:28px;
  }
}