:root {
  --bg: #f4f6fa;
  --card: #ffffff;
  --text: #111;
  --accent: #4f46e5;
}

body.dark {
  --bg: #0f172a;
  --card: #1e293b;
  --text: #e5e7eb;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, sans-serif;
  margin: 0;
  padding: 20px;
}

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

h1 {
  margin-top: 0;
}

.server {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
}

/* Toggle Switch */
.switch {
  position: relative;
  width: 48px;
  height: 24px;
}
.switch input {
  display: none;
}
.slider {
  position: absolute;
  inset: 0;
  background: #888;
  border-radius: 999px;
  cursor: pointer;
}
.slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.2s;
}
input:checked + .slider {
  background: var(--accent);
}
input:checked + .slider::before {
  transform: translateX(24px);
}

button,
input {
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
}

button {
  background: var(--accent);
  color: white;
  cursor: pointer;
}

#login {
  max-width: 300px;
  margin: 100px auto;
}

.error {
  color: red;
}
