* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: #e5e7eb;
  background:
    radial-gradient(1200px 600px at 15% -10%, #1e3a8a 0%, transparent 60%),
    radial-gradient(800px 400px at 85% 10%, #0f766e 0%, transparent 55%),
    linear-gradient(180deg, #020617, #020617);
  min-height: 100vh;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: rgba(2,6,23,0.7);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo {
  font-weight: 600;
  color: #93c5fd;
}

nav a {
  margin-left: 22px;
  text-decoration: none;
  font-size: 14px;
  color: #cbd5f5;
}

nav a:hover {
  color: #fff;
}

main {
  height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  max-width: 560px;
  text-align: center;
}

.hero h1 {
  font-size: 38px;
  margin-bottom: 12px;
}

.hero p {
  font-size: 15px;
  color: #9ca3af;
}

.hero button {
  margin-top: 26px;
  padding: 14px 30px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.login-box {
  width: 360px;
  padding: 32px;
  background: #020617;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
}

.login-box h2 {
  margin: 0 0 6px 0;
}

.login-box p {
  font-size: 13px;
  color: #9ca3af;
}

.login-box input {
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  border-radius: 8px;
  background: #020617;
  border: 1px solid rgba(255,255,255,0.1);
  color: #e5e7eb;
}

.login-box button {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.error {
  margin-top: 14px;
  color: #f87171;
  font-size: 13px;
}

.spinner {
  display: none;
  margin: 16px auto 0;
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top: 3px solid #60a5fa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
