:root {
  --bg: #0d0f14;
  --surface: #161921;
  --surface2: #1e2230;
  --surface3: #252b3b;
  --border: #2a3049;
  --gold: #c9a84c;
  --gold-light: #e4c47a;
  --gold-dim: rgba(201,168,76,0.12);
  --green: #2ecc8a;
  --green-dim: rgba(46,204,138,0.12);
  --red: #e05c5c;
  --red-dim: rgba(224,92,92,0.12);
  --blue: #4f9cf9;
  --blue-dim: rgba(79,156,249,0.12);
  --text: #e8eaf0;
  --text-muted: #8891aa;
  --text-faint: #4a5168;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);
  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ===== LOGIN SCREEN ===== */
#login-screen {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  background-image: radial-gradient(ellipse at 30% 20%, rgba(201,168,76,0.06) 0%, transparent 60%),
                    radial-gradient(ellipse at 70% 80%, rgba(79,156,249,0.04) 0%, transparent 60%);
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 40px;
  width: 100%; max-width: 400px;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.6s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-logo {
  text-align: center; margin-bottom: 36px;
}
.login-logo .logo-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
  box-shadow: 0 8px 32px rgba(201,168,76,0.3);
}
.login-logo h1 {
  font-family: var(--font-display);
  font-size: 26px; color: var(--text);
}
.login-logo p { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.form-group input {
  width: 100%;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.login-hint { font-size: 12px; color: var(--text-faint); margin-top: 6px; }
.btn-login {
  width: 100%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border: none; border-radius: var(--radius-sm);
  padding: 14px; color: #1a1200;
  font-family: var(--font-body); font-size: 15px; font-weight: 700;
  cursor: pointer; margin-top: 8px;
  transition: opacity 0.2s, transform 0.1s;
  letter-spacing: 0.02em;
}
.btn-login:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-login:active { transform: translateY(0); }
.login-error { color: var(--red); font-size: 13px; text-align: center; margin-top: 12px; display: none; }
