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

:root {
  --navy:   #0D1B2A;
  --navy2:  #112236;
  --blue:   #2E86C1;
  --glow:   #3BA3E8;
  --white:  #E8F1F8;
  --muted:  #7A9BB5;
  --border: #1E3A5F;
  --error:  #E53E3E;
  --success:#38A169;
}

body.auth-body {
  background: var(--navy);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Exo 2', sans-serif;
  background-image:
    linear-gradient(rgba(46,134,193,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,134,193,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.auth-card h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
}

.auth-sub { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

.alert {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
}

.alert-error { background: rgba(229,62,62,0.1); border: 1px solid rgba(229,62,62,0.3); color: #FC8181; }
.alert-success { background: rgba(56,161,105,0.1); border: 1px solid rgba(56,161,105,0.3); color: #68D391; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--white);
  font-family: 'Exo 2', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.field input:focus { border-color: var(--blue); }
.field input::placeholder { color: var(--muted); opacity: 0.6; }

.btn-submit {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 20px rgba(46,134,193,0.2);
  margin-top: 4px;
}

.btn-submit:hover {
  background: var(--glow);
  box-shadow: 0 0 32px rgba(46,134,193,0.4);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-discord {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #5865F2;
  color: white;
  padding: 11px;
  border-radius: 6px;
  text-decoration: none;
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.btn-discord:hover { background: #4752C4; }

.auth-footer {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

.auth-footer a { color: var(--blue); text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }
