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

body {
  background: #121212;
  color: #e0e0e0;
  font-family: system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.card {
  background: #1e1e1e;
  padding: 2rem;
  border-radius: 8px;
  width: 320px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

h1 { font-size: 1.25rem; margin-bottom: 1.5rem; font-weight: 500; }

input {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  background: #2a2a2a;
  border: 1px solid #333;
  border-radius: 4px;
  color: #e0e0e0;
}

button {
  width: 100%;
  padding: 0.6rem;
  background: #3a7bd5;
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-size: 0.95rem;
}

button:hover { background: #326bb8; }

.error { color: #e05a5a; margin-top: 0.75rem; font-size: 0.85rem; }

.status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #666;
}

.dot.active { background: #4caf50; }
.dot.inactive { background: #e05a5a; }
.dot.restarting { background: #d5a83a; }

.controls {
  display: flex;
  gap: 0.5rem;
}

.controls button { flex: 1; }

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cooldown {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #888;
  min-height: 1rem;
}

#stop { background: #b13a3a; }
#stop:hover { background: #952f2f; }

#restart { background: #b1863a; }
#restart:hover { background: #95702f; }

.logout {
  display: block;
  margin-top: 1.5rem;
  color: #888;
  font-size: 0.8rem;
  text-decoration: none;
}

.logout:hover { color: #aaa; }
