:root {
  --bg: #0A0F1C;
  --bg-elev: #111827;
  --bg-elev-2: #1A2332;
  --border: rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.12);
  --text: #E5E7EB;
  --text-muted: #94A3B8;
  --text-faint: #475569;
  --accent: #8EA2FF;
  --accent-bg: rgba(142,162,255,0.08);
  --neg: #F87171;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow-x: hidden;
}
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 96px;
  background: #070C17;
  border-right: 1px solid var(--border);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 16px;
}
.nav-item {
  width: 84px; height: 52px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-faint);
  cursor: pointer;
  position: relative;
  text-decoration: none;
  margin-bottom: 2px;
  transition: background 0.15s, color 0.15s;
}
.nav-item:hover { background: rgba(255,255,255,0.05); color: var(--text-muted); }
.nav-item.active { background: var(--accent-bg); color: var(--accent); }
.nav-item.active::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 22px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}
.nav-item.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}
.nav-icon { color: currentColor; }
.nav-label {
  font-size: 8px;
  font-weight: 600;
  color: currentColor;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  width: 100%; white-space: nowrap;
}
.nav-divider {
  width: 32px;
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 56px;
  margin-left: 96px;
  padding: 0 48px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,15,28,0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.topbar-brand,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ae-topbar-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  height: 34px;
  min-width: 160px;
}
.ae-topbar-logo img {
  width: 154px;
  height: auto;
  display: block;
}
.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Urbanist', ui-sans-serif, sans-serif;
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 6px rgba(74,222,128,0.6);
}
.ae-topbar-logout {
  min-width: 76px;
  height: 32px;
  border-radius: 999px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Urbanist', ui-sans-serif, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 12px;
  text-decoration: none;
}
.ae-topbar-logout:hover {
  color: var(--accent);
  border-color: rgba(142,162,255,0.5);
}
.login-shell {
  min-height: calc(100vh - 56px);
  padding: 40px 40px 48px 116px;
  display: grid;
  grid-template-columns: minmax(280px, 480px) minmax(320px, 1fr);
  gap: 64px;
  align-items: center;
}
.intro {
  max-width: none;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Urbanist', ui-sans-serif, sans-serif;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(142,162,255,0.2);
  border-radius: 4px;
  padding: 5px 10px;
  margin-bottom: 28px;
  background: var(--accent-bg);
}
.eyebrow::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.intro h1 {
  font-size: 52px;
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 18px;
}
.intro h1 span { color: var(--accent); }
.intro p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 500px;
}
.login-card {
  width: 100%;
  max-width: 520px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.28);
}
.login-header {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}
.login-title {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.login-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.login-error {
  background: rgba(248,113,113,0.08);
  color: #fecaca;
  border: 1px solid rgba(248,113,113,0.28);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 18px;
  font-size: 13px;
}
.login-form {
  display: grid;
  gap: 16px;
}
.login-row {
  display: grid;
  gap: 7px;
}
.login-row label {
  font-family: 'Urbanist', ui-sans-serif, sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.input-wrap { position: relative; }
.login-input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #0C111A;
  color: var(--text);
  padding: 0 13px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.input-wrap .login-input { padding-right: 70px; }
.login-input::placeholder { color: #475569; }
.login-input:focus {
  border-color: rgba(142,162,255,0.55);
  box-shadow: 0 0 0 3px rgba(142,162,255,0.08);
  background: #0F1622;
}
.toggle-password {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 6px 9px;
  font-family: 'Urbanist', ui-sans-serif, sans-serif;
  font-size: 10px;
  cursor: pointer;
}
.toggle-password:hover {
  color: var(--accent);
  border-color: rgba(142,162,255,0.35);
}
.login-submit {
  height: 42px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #0A0F1C;
  font-family: 'Urbanist', ui-sans-serif, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 6px;
}
.login-submit:hover { opacity: 0.9; }
.login-footnote {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-family: 'Urbanist', ui-sans-serif, sans-serif;
  font-size: 10px;
  line-height: 1.6;
}
.ae-site-footer {
  margin: 0 0 0 72px;
  padding: 22px 48px 28px;
  border-top: 1px solid var(--border);
  background: #070C17;
  color: #64748B;
}
.ae-site-footer-inner { max-width: none; margin: 0; }
.ae-site-footer-copy {
  margin: 0 0 8px;
  font-family: 'Urbanist', ui-sans-serif, sans-serif;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94A3B8;
}
.ae-site-footer-disclaimer {
  margin: 0;
  max-width: none;
  font-size: 11px;
  line-height: 1.65;
  color: #64748B;
}
.ae-site-footer a { color: #94A3B8; text-decoration: none; }
.ae-site-footer a:hover { color: var(--accent); }
@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 94px 22px 36px 86px;
    align-items: start;
  }
  .intro h1 { font-size: 38px; }
  .intro p { font-size: 14px; }
}
@media (max-width: 560px) {
  .sidebar { width: 60px; }
  .nav-item { width: 44px; height: 44px; }
  .nav-label { display: none; }
  .topbar { margin-left: 60px; padding: 0 18px 0 14px; }
  .ae-topbar-logo { min-width: 132px; }
  .ae-topbar-logo img { width: 132px; }
  .login-shell { padding-left: 76px; padding-right: 16px; }
  .login-card { padding: 22px; }
  .ae-site-footer { margin-left: 60px; padding: 20px 18px 24px; }
}
