/* ── Design tokens (mirrors landing page) ── */
:root {
  --bg: #030a12;
  --bg2: #060f1a;
  --card: #0a1626;
  --accent: #00d4ff;
  --accent2: #7b5fe8;
  --accent3: #00ffb2;
  --border: rgba(0, 212, 255, 0.1);
  --border2: rgba(0, 212, 255, 0.18);
  --text: #e8f4ff;
  --text2: #6a8fa8;
  --danger: #ff4d6d;
  --warn: #ffb800;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ── Grid bg ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* ── Noise overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  opacity: 0.4;
}

/* ── Orbs ── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: pulse 8s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.06) 0%,
    transparent 70%
  );
  top: -150px;
  left: -150px;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(123, 95, 232, 0.07) 0%,
    transparent 70%
  );
  bottom: -100px;
  right: -100px;
  animation-delay: -4s;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

/* ── Navbar ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(3, 10, 18, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-ctas {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* ── Shared button styles ── */
.btn-ghost {
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--border2);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-primary {
  padding: 0.45rem 1.25rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
  cursor: pointer;
  display: inline-block;
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: 10px;
}

/* ── Page layout ── */
.page-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 1.5rem 4rem;
  position: relative;
  z-index: 1;
}

/* ── Auth card ── */
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 2.5rem 2.5rem 2rem;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(0, 212, 255, 0.06),
    0 32px 64px rgba(0, 0, 0, 0.5);
}

/* Glow top border */
.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 1px;
}

/* ── Auth header ── */
.auth-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  text-align: center;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.auth-logo span {
  color: var(--accent);
}

.auth-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--text2);
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2));
}

.auth-divider::after {
  transform: rotate(180deg);
}

.auth-divider span {
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text2);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ── Alert ── */
.auth-alert {
  background: rgba(255, 77, 109, 0.08);
  border: 1px solid rgba(255, 77, 109, 0.25);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 0.84rem;
  color: var(--danger);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.auth-alert.success {
  background: rgba(0, 255, 178, 0.07);
  border-color: rgba(0, 255, 178, 0.22);
  color: var(--accent3);
}

.auth-alert-icon {
  flex-shrink: 0;
  font-size: 1rem;
  margin-top: 0.05rem;
}

/* ── Form ── */
.form-group {
  margin-bottom: 1.2rem;
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 0.45rem;
  letter-spacing: 0.02em;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  -webkit-appearance: none;
}

.form-control::placeholder {
  color: var(--text2);
}

.form-control:focus {
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.08);
  background: rgba(0, 212, 255, 0.03);
}

.form-control:invalid:not(:placeholder-shown) {
  border-color: rgba(255, 77, 109, 0.45);
}

/* Password wrapper */
.input-wrap {
  position: relative;
}

.input-wrap .form-control {
  padding-right: 3rem;
}

.eye-btn {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text2);
  font-size: 1rem;
  padding: 0;
  transition: color 0.2s;
}

.eye-btn:hover {
  color: var(--accent);
}

/* ── Submit ── */
.btn-submit {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.1s;
  margin-top: 1.4rem;
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 30%,
    rgba(255, 255, 255, 0.08)
  );
}

.btn-submit:hover {
  opacity: 0.9;
}

.btn-submit:active {
  transform: scale(0.99);
}

/* ── Footer link ── */
.auth-footer {
  text-align: center;
  margin-top: 1.4rem;
  font-size: 0.875rem;
  color: var(--text2);
}

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

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

/* ── Trusted badges ── */
.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.8rem;
}

.trust-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ── Bonus pill ── */
.bonus-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 255, 178, 0.06);
  border: 1px solid rgba(0, 255, 178, 0.18);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  margin-bottom: 1.6rem;
}

.bonus-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.bonus-text {
  font-size: 0.8rem;
  color: var(--text2);
}

.bonus-text strong {
  color: var(--accent3);
  font-weight: 700;
}

/* ── Page footer ── */
footer.page-foot {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1rem;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text2);
  border-top: 1px solid var(--border);
}

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

/* ── Responsive ── */
@media (max-width: 520px) {
  .auth-card {
    padding: 2rem 1.4rem;
    border-radius: 16px;
  }

  .nav-links {
    display: none;
  }
}
