*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  background: #0b0d14;
}

/* ── Split background ── */
.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}
.auth-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(135deg, #0f2460 0%, #1740b0 45%, #3b82f6 80%, #60a5fa 100%);
}
.auth-bg::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: #0b0d14;
}

/* ── Wrapper ── */
.auth-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  gap: 1.5rem;
}

/* ── Brand ── */
.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
  text-decoration: none;
}
.auth-brand-icon {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  font-size: 1.2rem;
}

/* ── Card ── */
.auth-card {
  background: #131724;
  border: 1px solid #1e2740;
  border-radius: 20px;
  padding: 2.25rem 2.25rem 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.04) inset;
}
.auth-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f1f5f9;
  text-align: center;
  margin-bottom: 1.75rem;
  letter-spacing: -0.01em;
}

/* ── Alerts ── */
.auth-alert {
  display: none;
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}
.auth-alert.show { display: block; }
.auth-alert--error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #ef4444;
}
.auth-alert--success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #22c55e;
}

/* ── Floating label fields ── */
.auth-field {
  position: relative;
  margin-bottom: 1rem;
}
.auth-field input {
  width: 100%;
  background: #1a1f32;
  border: 1px solid #252d47;
  border-radius: 12px;
  padding: 1.4rem 1rem 0.55rem;
  font-size: 0.93rem;
  font-family: 'Inter', sans-serif;
  color: #e2e8f0;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.auth-field input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.auth-field input.field--error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.10);
}
.auth-field input.field--ok {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.08);
}
.auth-field label {
  position: absolute;
  top: 0.52rem;
  left: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #4f6080;
  pointer-events: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.auth-field input::placeholder { color: #334060; }
.auth-field-hint {
  font-size: 0.72rem;
  margin-top: 0.3rem;
  padding-left: 0.25rem;
  min-height: 1rem;
  transition: color 0.15s;
}
.auth-field-hint.hint--error { color: #ef4444; }
.auth-field-hint.hint--ok    { color: #22c55e; }

/* ── Forgot row ── */
.auth-forgot {
  text-align: right;
  margin-bottom: 1.5rem;
  margin-top: -0.4rem;
}
.auth-forgot a {
  font-size: 0.79rem;
  color: #4f6080;
  text-decoration: none;
  transition: color 0.15s;
}
.auth-forgot a:hover { color: #93c5fd; }

/* ── Submit button ── */
.auth-btn {
  width: 100%;
  padding: 0.9rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #7c3aed 0%, #4f46e5 50%, #3b82f6 100%);
  color: #fff;
  font-size: 0.93rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: opacity 0.15s, transform 0.12s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(99,60,237,0.35);
}
.auth-btn:hover    { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(99,60,237,0.45); }
.auth-btn:active   { transform: translateY(0); box-shadow: none; }
.auth-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Divider ── */
.auth-divider {
  height: 1px;
  background: #1e2740;
  margin: 1.5rem 0 1.25rem;
}

/* ── Footer link ── */
.auth-footer {
  text-align: center;
  font-size: 0.83rem;
  color: #4f6080;
}
.auth-footer a {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.auth-footer a:hover { color: #fff; }
