:root {
  --bg: #080b12;
  --surface: #101622;
  --surface-2: #151d2b;
  --text: #edf3ff;
  --muted: #9aa8bd;
  --primary: #7c8cff;
  --primary-2: #4de1c1;
  --red: #ff6b6b;
  --border: rgba(255,255,255,.09);
  --radius: 18px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, system-ui, sans-serif;
}

body {
  background:
    radial-gradient(circle at 15% 10%, rgba(124,140,255,.12), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(77,225,193,.08), transparent 25%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-container {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  background: linear-gradient(145deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 35px;
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
}

.auth-card h1 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 8px;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 25px;
  font-size: 14px;
}

.input-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
}

input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: 0.3s;
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124,140,255,.15);
}

button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(120deg, var(--primary), #6575ff);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
  margin-top: 5px;
}

button:hover {
  transform: translateY(-2px);
}

.link {
  text-align: center;
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
}

.link a {
  color: var(--primary-2);
  text-decoration: none;
  font-weight: 600;
}

.alert {
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
}

.alert.error {
  background: rgba(255,107,107,.12);
  color: #ff8a8a;
  border: 1px solid rgba(255,107,107,.2);
}

.alert.success {
  background: rgba(77,225,193,.12);
  color: #4de1c1;
  border: 1px solid rgba(77,225,193,.2);
}