/* ===============================
   GLOBAL RESET & VARIABLES
================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #0f172a;
  --bg-light: #f8fafc;
  --card-dark: #020617;
  --card-light: #ffffff;
  --text-dark: #e5e7eb;
  --text-light: #020617;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --border-dark: #1e293b;
  --border-light: #cbd5f5;
  --danger: #ef4444;
}

/* ===============================
   BODY & THEMES
================================ */
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg-dark);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

body.light {
  background: var(--bg-light);
  color: var(--text-light);
}

.hidden {
  display: none !important;
}

/* ===============================
   BUTTONS
================================ */
button {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s ease;
}

button:hover {
  background: var(--accent-hover);
}

button.danger {
  background: var(--danger);
}

button.danger:hover {
  opacity: 0.9;
}

/* ===============================
   INPUTS & SELECT
================================ */
input,
select {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border-dark);
  background: transparent;
  color: inherit;
  font-size: 14px;
}

body.light input,
body.light select {
  border-color: var(--border-light);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
}

/* ===============================
   AUTH PAGE
================================ */
#auth {
  width: 320px;
  background: var(--card-dark);
  padding: 24px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

body.light #auth {
  background: var(--card-light);
}

#auth h2 {
  text-align: center;
}

#tog
