:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #1a1a24;
  --border: #2a2a3a;
  --text: #e0e0ee;
  --text-dim: #888899;
  --accent: #5566ff;
  --accent2: #ff4466;
  --green: #44ff88;
  --yellow: #ffcc00;
  --red: #ff4444;
  --blue: #44aaff;
  --purple: #aa44ff;
  --font-mono: "Courier New", "Consolas", monospace;
  --font-ui: system-ui, sans-serif;
  --radius: 6px;
  --shadow: 0 4px 24px rgba(0,0,0,0.6);
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: inherit;
  transition: opacity 0.15s, transform 0.1s;
}
button:active { transform: scale(0.97); }
button:disabled, button.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

input[type="text"],
input[type="password"] {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 8px 12px;
  width: 100%;
  transition: border-color 0.2s;
}
input:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: bold;
  letter-spacing: 0.05em;
}
.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 6px 14px;
  border-radius: var(--radius);
}
.btn-ghost:hover { border-color: var(--text-dim); color: var(--text); }

.hidden { display: none !important; }

.error-msg { color: var(--red); font-size: 13px; margin-top: 8px; min-height: 18px; }
.empty-msg { color: var(--text-dim); text-align: center; padding: 20px; }
