:root {
  --auth-bg: #081321;
  --auth-blue: #2563eb;
}

.auth-page {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(90% 120% at 82% -10%, rgba(37, 99, 235, .5), transparent 58%),
    radial-gradient(70% 100% at 0% 0%, rgba(13, 148, 136, .22), transparent 56%),
    linear-gradient(135deg, #081321 0%, #0c1d33 56%, #10294a 100%);
  color: #142033;
  font-family: var(--font);
}
.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}
.auth-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 18px 30px;
}
.auth-brand {
  position: absolute;
  top: 26px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
}
.auth-brand .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 8px 20px rgba(37, 99, 235, .4);
  font-weight: 700;
  font-size: 17px;
}
.auth-brand strong { display: block; font-size: 15px; letter-spacing: .04em; }
.auth-brand span { display: block; color: #8fa9c9; font-size: 10px; letter-spacing: .14em; margin-top: 2px; }
.auth-card {
  width: min(430px, 100%);
  padding: 32px 32px 26px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(2, 10, 24, .35), 0 2px 6px rgba(2, 10, 24, .12);
  border: 1px solid rgba(255, 255, 255, .5);
  animation: authIn .35s ease both;
}
@keyframes authIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.auth-mark {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 18px;
}
.auth-card h1 { font-size: 25px; letter-spacing: -.025em; color: var(--ink); }
.auth-sub { color: var(--ink-3); font-size: 12px; margin-top: 6px; line-height: 1.7; }
.auth-form { margin-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.auth-form label { color: var(--ink-2); font-size: 11.5px; font-weight: 500; margin-top: 7px; }
.auth-form .field { height: 42px; border-radius: 9px; font-size: 14px; }
.auth-readonly {
  height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
}
.auth-readonly small { margin-left: auto; color: var(--ink-3); font-size: 10px; font-weight: 400; letter-spacing: 0; }
.auth-submit {
  width: 100%;
  height: 43px;
  margin-top: 15px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
}
.auth-alert {
  margin-top: 15px;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 11.5px;
  line-height: 1.6;
}
.auth-alert.error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.auth-alert.ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.auth-help { margin-top: 16px; color: var(--ink-3); font-size: 10.5px; line-height: 1.7; }
.auth-meta { color: var(--ink-3); font-size: 11px; margin-top: 4px; line-height: 1.7; }
.auth-actions { display: flex; gap: 8px; margin-top: 18px; }
.auth-actions .btn { flex: 1; height: 38px; font-size: 12px; }
.auth-footer {
  position: relative;
  margin-top: 22px;
  color: #7e97b6;
  font-size: 10px;
  letter-spacing: .03em;
  text-align: center;
  line-height: 1.8;
}
.auth-divider { height: 1px; background: var(--line); margin: 20px 0 2px; }
.auth-note {
  margin-top: 12px;
  padding: 10px 11px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px dashed var(--line-strong);
  color: var(--ink-3);
  font-size: 10.5px;
  line-height: 1.65;
}
@media (max-width: 600px) {
  .auth-shell { justify-content: flex-start; padding: 90px 14px 24px; }
  .auth-brand { top: 20px; left: 18px; }
  .auth-brand .brand-mark { width: 34px; height: 34px; font-size: 15px; }
  .auth-brand strong { font-size: 13px; }
  .auth-brand span { font-size: 9px; }
  .auth-card { padding: 25px 20px 22px; border-radius: 15px; }
  .auth-card h1 { font-size: 22px; }
}
