:root {
  --neon-purple: #a78bfa;
  --neon-green: #34d399;
  --muted: #9a97b0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #eceaf5;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(167, 139, 250, 0.25), transparent 55%),
    radial-gradient(ellipse at 90% 90%, rgba(52, 211, 153, 0.2), transparent 55%),
    #07070d;
  overflow-x: hidden;
}

/* rain streaks */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.03) 0,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 14px
  );
}

.topbar {
  position: relative;
  padding: 1.5rem 2rem;
}

.topbar a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s, text-shadow 0.2s;
}

.topbar a:hover {
  color: var(--neon-green);
  text-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
}

main {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem 4rem;
}

.card {
  width: 100%;
  max-width: 24rem;
  padding: 2.5rem 2rem 2rem;
  border-radius: 18px;
  background: rgba(18, 16, 32, 0.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(167, 139, 250, 0.45);
  box-shadow:
    0 0 30px rgba(167, 139, 250, 0.35),
    0 0 80px rgba(52, 211, 153, 0.12),
    inset 0 0 24px rgba(167, 139, 250, 0.08);
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon-green);
  text-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 2.2rem;
  line-height: 1.15;
  color: #fff;
  text-shadow:
    0 0 10px rgba(167, 139, 250, 0.6),
    0 0 30px rgba(167, 139, 250, 0.35);
}

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

.error {
  margin: 0 0 1.25rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  font-size: 0.92rem;
  color: #fecdd3;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.55);
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.3);
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

label {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

input {
  font: inherit;
  color: #fff;
  padding: 0.8rem 0.95rem;
  margin-bottom: 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(167, 139, 250, 0.3);
  background: rgba(7, 7, 13, 0.7);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input::placeholder { color: #55526b; }

input:focus {
  outline: none;
  border-color: var(--neon-green);
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.45);
}

button {
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 0.4rem;
  padding: 0.9rem 1rem;
  color: #14111f;
  background: var(--neon-purple);
  border: 1px solid var(--neon-purple);
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(167, 139, 250, 0.6);
  transition: all 0.2s ease;
}

button:hover {
  background: var(--neon-green);
  border-color: var(--neon-green);
  box-shadow: 0 0 26px rgba(52, 211, 153, 0.75);
  transform: translateY(-2px);
}

.switch {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
}

.switch a {
  color: var(--neon-green);
  text-decoration: none;
  text-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
}

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