:root {
  --bg: #0b1221;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --accent: #6b8bff;
  --accent-2: #42f5d7;
  --text: #e8edf7;
  --muted: #b7c2d9;
  --border: rgba(255, 255, 255, 0.15);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

* { box-sizing: border-box; }

body.page {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 20%, rgba(66, 245, 215, 0.12), transparent 30%),
              radial-gradient(circle at 80% 0%, rgba(107, 139, 255, 0.12), transparent 28%),
              linear-gradient(160deg, #0a0f1f 0%, #0f1b33 50%, #0b1221 100%);
  padding: 18px;
}

main {
  max-width: 520px;
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
}

a { color: inherit; }

a:hover { color: inherit; }

a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.4px;
  margin-bottom: 1.2rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 2.4rem);
  line-height: 1.1;
}

.sub {
  color: var(--muted);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.notice {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  background: var(--panel-strong);
}

.notice.error {
  border-color: rgba(255, 106, 106, 0.4);
}

.notice.success {
  border-color: rgba(66, 245, 215, 0.4);
}

ul.error-list {
  margin: 0;
  padding-left: 1.2rem;
}

ul.error-list li { margin-bottom: 0.35rem; }

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.field input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel-strong);
  font-size: 1rem;
  color: var(--text);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.field input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: rgba(107, 139, 255, 0.7);
  transform: translateY(-1px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: 100%;
  background: linear-gradient(120deg, var(--accent), #4e7bff);
  color: #0b1020;
  box-shadow: 0 12px 25px rgba(107, 139, 255, 0.35);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(107, 139, 255, 0.4);
}

.links {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  color: var(--muted);
}

.links a {
  text-decoration: none;
  font-weight: 700;
}

.links a:hover { color: var(--text); }

@media (max-width: 720px) {
  body.page { padding: 14px; }
  .card { padding: 1.6rem; }
}
