/* ============================================
   EduNaija — auth.css
   Landing page, login, signup forms
   ============================================ */

/* ── LANDING PAGE ── */
#landing {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  position: relative;
}

/* Background glow */
#landing::before {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--gold-glow-lg) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.landing-inner {
  text-align: center;
  padding: 60px var(--space-6);
  max-width: 680px;
  width: 100%;
  animation: fadeUp 0.8s var(--ease) both;
  position: relative;
  z-index: 1;
}

.landing-badge {
  display: inline-block;
  background: var(--gold-glow);
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.landing-title {
  font-family: var(--font-head);
  font-size: clamp(36px, 8vw, 68px);
  line-height: 1.1;
  margin-bottom: var(--space-5);
  color: var(--text);
}
.landing-title span { color: var(--gold); }

.landing-sub {
  color: var(--text-sub);
  font-size: clamp(15px, 2.5vw, 18px);
  line-height: 1.8;
  margin-bottom: var(--space-10);
  font-weight: 300;
}

.landing-btns {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}
.landing-btns .btn { min-width: 140px; padding: 13px 28px; font-size: var(--text-base); }

/* Feature pills */
.landing-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-top: var(--space-8);
}
.feature-pill {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--text-sub);
}
.feature-pill span:first-child { font-size: 14px; }

/* ── AUTH MODAL FORM ── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.auth-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-sub);
}
.auth-input {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: var(--text-base);
  transition: var(--transition);
}
.auth-input:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.auth-input::placeholder { color: var(--text-muted); }

.auth-error {
  background: var(--danger-soft);
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  display: none;
}
.auth-error.show { display: block; }

.auth-submit {
  width: 100%;
  padding: 14px;
  background: var(--gold);
  color: var(--text-inverse);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}
.auth-submit:hover { background: var(--gold-soft); transform: translateY(-1px); }
.auth-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.auth-switch {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.auth-switch a {
  color: var(--gold);
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-muted);
  font-size: var(--text-xs);
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Password toggle */
.input-wrap {
  position: relative;
}
.input-wrap .auth-input {
  padding-right: 44px;
}
.pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
}
.pw-toggle:hover { color: var(--text); }

/* Class/grade select */
.auth-select {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: var(--text-base);
  appearance: none;
  cursor: pointer;
  transition: var(--transition);
}
.auth-select:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px var(--gold-glow);
  outline: none;
}
.auth-select option {
  background: var(--bg3);
  color: var(--text);
}
