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

body {
  font-family: system-ui, sans-serif;
  background: #0f0f13;
  color: #e2e8f0;
  min-height: 100vh;
}

.hidden { display: none !important; }

/* ── Login ── */
.login-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 2rem;
}

.login-box h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

#login-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 320px;
}

#login-form input {
  padding: 0.65rem 0.9rem;
  border-radius: 6px;
  border: 1px solid #2d2d3a;
  background: #1a1a24;
  color: #e2e8f0;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s;
}

#login-form input:focus { border-color: #6366f1; }

#login-form button {
  padding: 0.65rem;
  border-radius: 6px;
  border: none;
  background: #6366f1;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s;
}

#login-form button:hover { background: #4f52d4; }

.error {
  font-size: 0.85rem;
  color: #f87171;
  text-align: center;
}

/* ── App ── */
header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #1e1e2e;
  font-size: 0.9rem;
  color: #94a3b8;
}

#logout-btn {
  padding: 0.4rem 0.9rem;
  border-radius: 5px;
  border: 1px solid #2d2d3a;
  background: transparent;
  color: #94a3b8;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

#logout-btn:hover { border-color: #6366f1; color: #e2e8f0; }

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 57px);
  gap: 1rem;
}

main h1 { font-size: 2rem; font-weight: 700; letter-spacing: 0.05em; }
main p  { color: #94a3b8; }
