* { box-sizing: border-box; }

:root {
  --auth-indigo: #6366f1;
  --auth-violet: #8b5cf6;
  --auth-text: #f8fafc;
  --auth-muted: #a1a1b5;
}

html, body { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  color: var(--auth-text);
  background:
    radial-gradient(ellipse at 15% 10%, rgba(99,102,241,.28), transparent 38%),
    radial-gradient(ellipse at 88% 88%, rgba(168,85,247,.22), transparent 36%),
    #080811;
  font-family: Inter, system-ui, sans-serif;
}

.auth-shell { width: min(100%, 460px); }
.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin-bottom: 1.4rem;
  font-size: .94rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.auth-brand i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--auth-indigo), var(--auth-violet));
  box-shadow: 0 8px 24px rgba(99,102,241,.35);
}
.auth-card {
  padding: clamp(1.5rem, 5vw, 2.25rem);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(255,255,255,.1), rgba(255,255,255,.045));
  box-shadow: 0 24px 70px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.08) inset;
  backdrop-filter: blur(22px);
}
.auth-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 1rem;
  border: 1px solid rgba(165,180,252,.25);
  border-radius: 15px;
  background: rgba(99,102,241,.15);
  color: #c7d2fe;
  font-size: 1.25rem;
}
.auth-card h1 { margin: 0 0 .45rem; font-size: 1.55rem; letter-spacing: -.035em; }
.auth-intro { margin: 0 0 1.5rem; color: var(--auth-muted); font-size: .88rem; line-height: 1.65; }
.auth-field { margin-bottom: 1rem; }
.auth-field label {
  display: block;
  margin-bottom: .45rem;
  color: #d7d7e3;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .045em;
}
.auth-field input {
  width: 100%;
  min-height: 46px;
  padding: .75rem .9rem;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 11px;
  outline: none;
  background: rgba(7,7,17,.48);
  color: #fff;
  font: inherit;
  font-size: .88rem;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.auth-field input::placeholder { color: #77778d; }
.auth-field input:focus {
  border-color: #818cf8;
  background: rgba(7,7,17,.72);
  box-shadow: 0 0 0 3px rgba(99,102,241,.2);
}
.auth-button {
  display: flex;
  width: 100%;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  margin-top: .35rem;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(115deg, var(--auth-indigo), var(--auth-violet));
  box-shadow: 0 10px 24px rgba(99,102,241,.25);
  color: #fff;
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.auth-button:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(99,102,241,.34); }
.auth-notice {
  margin: 0 0 1rem;
  padding: .8rem .9rem;
  border: 1px solid rgba(52,211,153,.25);
  border-radius: 10px;
  background: rgba(16,185,129,.1);
  color: #a7f3d0;
  font-size: .82rem;
  line-height: 1.5;
}
.auth-error {
  border-color: rgba(248,113,113,.28);
  background: rgba(239,68,68,.1);
  color: #fecaca;
}
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 1.25rem;
  color: #c7d2fe;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
}
.auth-back:hover { color: #fff; }
.auth-foot { margin: 1.2rem 0 0; color: #77778d; font-size: .72rem; text-align: center; }

@media (max-width: 420px) {
  body { padding: .85rem; }
  .auth-card { border-radius: 18px; }
}
