/* GCSE Perfect — Auth pages
   Split-screen: brand panel (left) + form panel (right)
   Fonts: Cormorant Garamond (display) + Outfit (UI)
   ─────────────────────────────────────────────────── */

/* ── Override body font for auth pages ──────────────── */
body.auth-standalone {
  font-family: 'Outfit', -apple-system, sans-serif;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

/* ── Auth layout ─────────────────────────────────────── */
.auth-split {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ── Brand panel (left) ──────────────────────────────── */
.auth-brand-panel {
  flex: 1 1 55%;
  background: #0a0c14;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 3.5rem;
  overflow: hidden;
}

/* Dot-grid background */
.auth-brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(99, 102, 241, 0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 40% 60%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 40% 60%, black 0%, transparent 70%);
  pointer-events: none;
}

/* Accent glow */
.auth-brand-panel::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.auth-brand-top {
  position: relative;
  z-index: 1;
}

.auth-logo-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0;
}

.auth-logo-mark img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.auth-logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.01em;
}

/* Big display headline */
.auth-headline {
  position: relative;
  z-index: 1;
  margin: auto 0;
  padding: 3rem 0;
}

.auth-headline-eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent-hi);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.auth-headline-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(3.2rem, 5.5vw, 5.2rem);
  line-height: 1.02;
  color: var(--text-1);
  letter-spacing: -0.01em;
}

.auth-headline-title em {
  font-style: italic;
  color: #c7d2fe;
  display: block;
}

.auth-headline-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-3);
  margin-top: 1.5rem;
  line-height: 1.6;
  max-width: 340px;
}

/* Subject tags */
.auth-brand-bottom {
  position: relative;
  z-index: 1;
}

.auth-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.auth-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  letter-spacing: 0.02em;
  background: rgba(255,255,255,0.02);
}

/* ── Form panel (right) ──────────────────────────────── */
.auth-form-panel {
  flex: 0 0 420px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3rem;
  position: relative;
  z-index: 1;
}

.auth-form-header {
  margin-bottom: 2.25rem;
}

.auth-form-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: 2.1rem;
  line-height: 1.1;
  color: var(--text-1);
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.auth-form-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-3);
}

/* Error */
.auth-error {
  background: var(--danger-soft);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  font-family: 'Outfit', sans-serif;
}

/* Form fields */
.auth-form .form-group {
  margin-bottom: 1.1rem;
}

.auth-form .form-group label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.45rem;
}

.auth-form .form-group input {
  width: 100%;
  padding: 0.72rem 1rem;
  background: var(--surface-hi);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-1);
  font-size: 0.95rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  -webkit-appearance: none;
}

.auth-form .form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.auth-form .form-group input::placeholder {
  color: var(--text-3);
}

.auth-form .form-hint {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.74rem;
  color: var(--text-3);
  margin-top: 0.35rem;
}

/* Submit button */
.auth-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.82rem 1rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, var(--accent));
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.auth-submit:hover {
  background: linear-gradient(135deg, #8b5cf6, var(--accent-hi));
  box-shadow: 0 6px 28px rgba(99, 102, 241, 0.55);
  transform: translateY(-1px);
}

.auth-submit:active {
  transform: translateY(0);
}

/* Footer link */
.auth-switch {
  text-align: center;
  margin-top: 1.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  color: var(--text-3);
}

.auth-switch a {
  color: var(--accent-hi);
  text-decoration: none;
  font-weight: 500;
}

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

/* ── Responsive: stack on small screens ──────────────── */
@media (max-width: 780px) {
  .auth-split {
    flex-direction: column;
  }

  .auth-brand-panel {
    flex: none;
    padding: 2rem 2rem 1.5rem;
    min-height: 240px;
  }

  .auth-headline-title {
    font-size: 2.8rem;
  }

  .auth-headline-sub {
    display: none;
  }

  .auth-tags {
    display: none;
  }

  .auth-form-panel {
    flex: none;
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem;
  }
}
