:root {
  --bg-950: #0a0a0c;
  --bg-900: #121216;
  --bg-850: #18181e;
  --fg-50: #f5f5f8;
  --fg-300: #aaaab2;
  --fg-400: #8a8a96;
  --primary-500: #8b5cf6;
  --primary-600: #7c3aed;
  --danger-500: #ef4444;
  --border-subtle: #2d2d37;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-950);
  color: var(--fg-50);
  font-family: var(--font-sans);
  font-size: 14px;
}

.auth-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  isolation: isolate;
  overflow: hidden;
}

.auth-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 8% -20%, rgba(139, 92, 246, 0.28), transparent 58%),
    radial-gradient(ellipse 70% 55% at 92% 10%, rgba(124, 58, 237, 0.18), transparent 52%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(109, 40, 217, 0.12), transparent 55%);
}

.auth-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 12, 0.45) 100%);
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  background: var(--bg-900);
  padding: 1.5rem;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.08);
}

.badge {
  display: inline-flex;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.65rem;
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.1);
  color: var(--primary-500);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-400);
}

h1 {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--fg-50);
}

.sub {
  margin: 0 0 1.25rem;
  color: var(--fg-300);
  font-size: 13px;
  line-height: 1.5;
}

label {
  display: block;
  margin: 0.85rem 0 0.35rem;
  font-size: 13px;
  color: var(--fg-300);
}

input {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border-subtle);
  border-radius: 0.5rem;
  background: var(--bg-850);
  color: var(--fg-50);
  font-family: inherit;
  font-size: 14px;
}

input:focus {
  outline: 2px solid rgba(139, 92, 246, 0.45);
  border-color: var(--primary-500);
}

button {
  margin-top: 1.25rem;
  width: 100%;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--primary-500);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: var(--primary-600);
}

.alert {
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 13px;
  line-height: 1.45;
}

.alert-danger {
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
  color: #fecaca;
}

.hint {
  margin: 1rem 0 0;
  font-size: 12px;
  color: var(--fg-400);
  line-height: 1.5;
}

.hidden {
  display: none !important;
}
