:root {
  --bg: #0b1727;
  --card: #111f32;
  --text: #e7eef9;
  --muted: #9bb0d3;
  --accent: #3cb4ff;
  --accent-strong: #2b8fd0;
  --border: #1e2d46;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 20%, #0f2039, #0a1422 50%),
    radial-gradient(circle at 80% 0%, #123158, transparent 40%), var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-container {
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.logo {
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: 0.04em;
}

.logo-img {
  display: block;
  width: 160px;
  max-width: 70%;
  margin: 0 auto 8px;
  object-fit: contain;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.4));
}

.subtext {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0c1a2b;
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(60, 180, 255, 0.15);
}

button {
  border: none;
  cursor: pointer;
  font-weight: 600;
  border-radius: 10px;
  padding: 12px 18px;
  transition: transform 0.1s ease, box-shadow 0.2s ease, opacity 0.2s;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #0a1422;
  box-shadow: 0 10px 30px rgba(60, 180, 255, 0.35);
}

button:active {
  transform: translateY(1px);
}

.links {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 14px;
}

.links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.links a:hover {
  text-decoration: underline;
}

.theme-toggle {
  position: absolute;
  top: 15px;
  right: 20px;
}

.theme-toggle input {
  display: none;
}

.theme-toggle label {
  cursor: pointer;
  font-size: 1.5rem;
}

.error-message {
  color: #f05d5e;
  font-size: 14px;
  min-height: 18px;
  margin: 8px 0 6px;
  text-align: left;
}

@media (max-width: 520px) {
  body {
    padding: 16px;
  }

  .login-container {
    padding: 28px 24px;
  }
}
