/* Auth pages layout (login, teacher sign-up, account created, password reset).
   Figma: "Sign In" 608:70678, "Sign up" 608:70841, "SignUpToDashboard-Success" 34:6950.
   Shared pieces (buttons, inputs, alerts, badges...) come from static/design/components.css;
   this file is only the split-screen layout and the auth-specific cards. */

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

html, body { margin: 0; }

body.auth-page {
  font-family: var(--fds-font-sans);
  background: var(--fds-page-bg);
  color: var(--fds-text-label);
  -webkit-font-smoothing: antialiased;
}

.auth-layout {
  display: flex;
  min-height: 100vh;
}

/* ---------- Hero (left) ---------- */
.auth-hero {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  gap: 160px;
  padding: 80px 64px 64px 80px;
  background: var(--fds-navy-hero);
  color: var(--fds-white);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--fds-white);
  text-decoration: none;
}

.auth-brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* Same height as the two-line name next to it (2 x 24px line-height). */
  width: 48px;
  height: 48px;
  background: var(--fds-navy-logo);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--fds-radius-pill);
}

.auth-brand-name {
  font-size: 24px;
  line-height: 24px;
  font-weight: 500;
}

.auth-brand-name em { font-style: italic; display: block; }

.auth-hero-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 576px;
}

.auth-hero-heading h1 {
  margin: 0 0 14px;
  max-width: 512px;
  font-size: 30px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.15px;
}

.auth-tagline {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.08px;
  color: rgba(255, 255, 255, 0.8);
  opacity: 0.9;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 512px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 20px;
}

.auth-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: var(--fds-radius-pill);
  background: var(--fds-teal-500);
}

.auth-feature h2 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: 0.08px;
}

.auth-feature p {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.08px;
  color: var(--fds-slate-100);
  opacity: 0.8;
}

.auth-copyright {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 48px 0 0;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.06px;
  color: rgba(255, 255, 255, 0.9);
}

.auth-copyright .fds-icon { color: var(--fds-white); }

/* ---------- Form panel (right) ---------- */
.auth-panel {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 88px;
}

.auth-card {
  width: 100%;
  max-width: 544px;
  padding: 32px 40px;
  background: var(--fds-surface);
  border: 0.682px solid var(--fds-border-input);
  border-radius: var(--fds-radius-lg);
  box-shadow: var(--fds-shadow-sm);
}

.auth-card-header { margin-bottom: 32px; }
.auth-card-header .fds-icon-badge { margin-bottom: 20px; }

.auth-card-header h1 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0.12px;
  color: var(--fds-text-heading);
}

.auth-card-header p {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--fds-text-muted);
}

.auth-required-note { color: var(--fds-primary); }

.auth-card > .fds-alerts { margin-bottom: 24px; }

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Two fields side by side (first/last name). */
.auth-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

/* Bordered box around the "Try for free" checkbox and its hint. */
.auth-option {
  padding: 12px 14px;
  border: 1px solid var(--fds-border-input);
  border-radius: var(--fds-radius-sm);
}

.auth-option .fds-hint { margin: 4px 0 0 26px; }

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-switch {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  text-align: center;
  color: var(--fds-text-secondary);
}

.auth-switch a { color: var(--fds-primary); text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* ---------- Account created (Figma 34:6950): centred modal-style card ---------- */
.auth-card-success {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 450px;
  padding: 40px;
  border: 0;
  border-radius: var(--fds-radius-2xl);
  box-shadow: var(--fds-shadow-xl);
  text-align: center;
}

.auth-card-success .fds-alerts { width: 100%; text-align: left; }

.auth-close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--fds-gray-800);
}

.auth-success-title {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: normal;
  font-weight: 600;
  letter-spacing: 0.1px;
  color: var(--fds-text-label);
}

.auth-success-text {
  margin: 0;
  font-size: 16px;
  line-height: 29px;
  font-weight: 500;
  letter-spacing: 0.08px;
  color: var(--fds-gray-500);
}

.auth-success-text strong { font-weight: 600; color: var(--fds-primary); }

.auth-steps {
  width: 100%;
  padding: 24px;
  border-radius: var(--fds-radius-sm);
  background: var(--fds-gray-100);
  text-align: left;
}

.auth-steps h2 {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--fds-text-label);
}

.auth-steps ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-steps li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--fds-gray-500);
}

.auth-steps-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  color: var(--fds-teal-500);
}

/* ---------- Responsive (Figma breakpoints) ---------- */
@media (max-width: 1279.98px) {
  .auth-hero { padding: 56px 48px 48px; gap: 96px; }
  .auth-panel { padding: 40px 32px; }
}

@media (max-width: 1023.98px) {
  .auth-layout { flex-direction: column; }
  .auth-hero { flex: none; gap: 0; padding: 24px 16px; }
  .auth-hero-body { display: none; }
  .auth-panel { padding: 24px 16px 40px; }
}

@media (max-width: 639.98px) {
  .auth-card { padding: 24px 20px; }
  .auth-row { grid-template-columns: 1fr; }
}
