:root {
  --auth-card-bg: #171d2a;
  --auth-input-bg: #101724;
  --auth-input-border: #30394b;
  --auth-accent: #7887ff;
}
html[data-theme="light"] {
  --auth-card-bg: #ffffff;
  --auth-input-bg: #f8f9fc;
  --auth-input-border: #dfe3ec;
  --auth-accent: #5365e8;
}
.auth-page {
  min-height: calc(100vh - 69px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 54px 20px 34px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(105,124,255,.13), transparent 48%),
    var(--page-bg);
}
.auth-card {
  width: min(100%, 460px);
  padding: 38px 40px 30px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: var(--auth-card-bg);
  box-shadow: 0 22px 70px rgba(0,0,0,.18);
}
.auth-brand-mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  margin-bottom: 24px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #6478ff, #8d65e9);
  font-size: 22px; font-weight: 850;
  box-shadow: 0 8px 22px rgba(105,124,255,.28);
}
.auth-eyebrow {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 10px; font-weight: 800; letter-spacing: 1.8px;
}
.auth-card h1 {
  margin: 0;
  color: var(--text-color);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -.8px;
}
.auth-subtitle {
  margin: 11px 0 25px;
  color: var(--muted-color);
  font-size: 13px;
  line-height: 1.65;
}
.auth-form { display: flex; flex-direction: column; }
.auth-form label {
  margin: 15px 0 7px;
  color: var(--text-color);
  font-size: 12px; font-weight: 700;
}
.auth-form input {
  width: 100%; height: 47px;
  padding: 0 13px;
  border: 1px solid var(--auth-input-border);
  border-radius: 9px;
  outline: none;
  background: var(--auth-input-bg);
  color: var(--text-color);
  font: inherit; font-size: 13px;
  transition: border-color .15s, box-shadow .15s;
}
.auth-form input::placeholder { color: var(--muted-color); opacity: .75; }
.auth-form input:focus {
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px rgba(105,124,255,.15);
}
.auth-help {
  margin: 8px 0 0;
  color: var(--muted-color);
  font-size: 10px;
}
.auth-submit {
  width: 100%; min-height: 48px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 23px;
  border: 0; border-radius: 9px;
  color: #fff;
  background: linear-gradient(105deg, #6478ff, #8268eb);
  font-size: 13px; font-weight: 750;
  cursor: pointer;
  transition: transform .15s, filter .15s;
}
.auth-submit:hover { filter: brightness(1.08); transform: translateY(-1px); }
.auth-submit span { font-size: 18px; line-height: 1; }
.auth-alert {
  margin: 0 0 14px; padding: 11px 13px;
  border: 1px solid rgba(240,68,82,.35);
  border-radius: 8px;
  background: rgba(240,68,82,.1);
  color: #ff929c;
  font-size: 12px; line-height: 1.5;
}
.auth-switch {
  margin: 23px 0 0; padding-top: 19px;
  border-top: 1px solid var(--border-color);
  color: var(--muted-color);
  text-align: center; font-size: 12px;
}
.auth-switch a {
  color: var(--accent); font-weight: 750;
  text-decoration: none;
}
.auth-switch a:hover { text-decoration: underline; }
.auth-footer {
  margin: 20px 0 0;
  color: var(--muted-color);
  font-size: 10px; letter-spacing: .2px;
}
@media(max-width:600px) {
  .auth-page { min-height: calc(100vh - 62px); padding: 34px 15px 25px; }
  .auth-card { padding: 29px 23px 24px; border-radius: 16px; }
  .auth-card h1 { font-size: 25px; }
}
