:root {
  --bg: #0c0e12;
  --card: #151a22;
  --border: #2a3344;
  --text: #e8edf5;
  --muted: #8b97ab;
  --accent: #4c9dff;
  --err: #f14c4c;
  font-family: "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 20% -10%, #1a2336 0%, var(--bg) 55%);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 2rem 1.75rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

h1 {
  margin: 0 0 0.2rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.sub {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 1.5rem;
}

label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

input {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0a0d11;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(76, 157, 255, 0.2);
}

.captcha-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.captcha-img {
  flex-shrink: 0;
  width: 200px;
  height: 64px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0a0d11;
  cursor: pointer;
  object-fit: cover;
}

.captcha-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.captcha-side input {
  margin-bottom: 0;
}

.captcha-refresh {
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
}

.captcha-refresh:hover {
  border-color: var(--accent);
  color: var(--text);
}

button[type="submit"] {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.65rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.err {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--err);
  min-height: 1.2em;
}

.footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

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

.hidden {
  display: none;
}
