@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Orbitron:wght@400;700;900&display=swap');

:root {
  --bg: #060608;
  --s1: #0d0d12;
  --s2: #141420;
  --s3: #1c1c2c;
  --border: #252535;
  --border2: #303050;
  --green: #00ff88;
  --green-dim: #00cc66;
  --green-glow: rgba(0,255,136,.15);
  --orange: #ff6b00;
  --orange-dim: #cc5500;
  --orange-glow: rgba(255,107,0,.15);
  --red: #ff2244;
  --blue: #00aaff;
  --yellow: #ffdd00;
  --purple: #bb44ff;
  --text: #e8ecf4;
  --muted: #8888a8;
  --dim: #505068;
  --r: 10px;
  --font-display: 'Orbitron', monospace;
  --font-mono: 'Share Tech Mono', monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
.panel-hidden { display: none !important; }
.panel-partial { opacity: .7; }
input[type=range] { -webkit-appearance: none; width: 100%; height: 6px; border-radius: 3px; cursor: pointer; outline: none; }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--border2), 0 2px 8px rgba(0,0,0,.6);
}
.login-box { background: var(--s1); border: 1px solid var(--border2); border-radius: var(--r); padding: 28px; width: 320px; max-width: 100%; }
.login-box h2 { font-family: var(--font-display); letter-spacing: 4px; font-size: 1rem; color: var(--green); margin-bottom: 20px; text-align: center; }
.login-box input {
  width: 100%; height: 44px; margin-bottom: 12px; padding: 0 14px;
  background: var(--s2); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-family: var(--font-mono); font-size: .85rem; box-sizing: border-box;
}
.login-box input:focus { border-color: var(--green); outline: none; }
.login-box button {
  width: 100%; height: 44px; margin-top: 8px;
  background: var(--green-glow); border: 1px solid var(--green); border-radius: 8px;
  color: var(--green); font-family: var(--font-mono); font-size: .8rem; letter-spacing: 2px; cursor: pointer; transition: all .15s;
}
.login-box button:hover { background: var(--green); color: #000; }
.login-err { color: var(--red); font-size: .7rem; margin-top: 8px; text-align: center; }
.login-nav-top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: -4px 0 10px;
}
.login-back-home {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: 1px;
  color: var(--muted);
  text-decoration: none;
}
.login-back-home:hover { color: var(--green); }
.login-sub {
  font-size: .65rem;
  color: var(--muted);
  margin-bottom: 14px;
  text-align: center;
  line-height: 1.35;
}
.login-register-hint {
  font-size: .55rem;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
  line-height: 1.45;
}
.login-register-hint a { color: var(--green); text-decoration: none; }
.login-register-hint a:hover { text-decoration: underline; }
.login-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: .52rem;
  letter-spacing: 0.4px;
}
.login-legal a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.login-legal a:hover { color: var(--green); }
.login-legal-sep { color: var(--dim); user-select: none; pointer-events: none; }
#login-overlay { position: fixed; inset: 0; z-index: 1000; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 20px; }
#login-overlay.hidden { display: none; }

/* Light theme (when dark theme toggle is off) */
.theme-light { --bg: #e8ecf4; --s1: #d8dce8; --s2: #c8ccdc; --s3: #b8bccc; --border: #9098b0; --border2: #7880a0; --text: #0c1018; --muted: #405070; --dim: #607090; --green: #008844; --green-glow: rgba(0,136,68,.2); --orange: #cc5500; --orange-glow: rgba(204,85,0,.15); --red: #cc2244; --blue: #0066aa; --yellow: #bbaa00; --purple: #8844bb; }
.theme-light .logo { color: var(--green); text-shadow: none; }
.theme-light .login-box { background: var(--s1); border-color: var(--border2); }
.theme-light .login-box input { background: var(--s2); color: var(--text); }
.theme-light .login-box button { background: var(--green-glow); color: var(--green); }
.theme-light .login-box button:hover { background: var(--green); color: #fff; }
.theme-light .login-legal { border-top-color: var(--border2); }
.theme-light .login-back-home:hover { color: var(--green); }
