/* ABZ "hero redesign" dark auth theme - shared by the student login gate
   (student_portal.html) and the educator login/signup page
   (login/integrated.html). Deliberately separate from hero_theme.css,
   which is the bright in-app theme used AFTER a student logs in - the
   pre-login/marketing-adjacent surfaces use this dark premium theme per
   the design system's own CLAUDE.md ("Background (near-black): #08060d").
   Ported from ABZ Student Login / ABZ Educator Login / ABZ Educator
   Signup .dc.html exports. */

.hidden { display: none !important; }

.auth-app {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  background: #08060d;
  color: #f3f0fa;
  min-height: 100vh;
}
.auth-app * { box-sizing: border-box; }
.auth-app ::selection { background: #b43cff; color: #fff; }
.auth-app a { color: #d69cff; text-decoration: none; }
.auth-app a:hover { color: #ff8cf0; }

@keyframes auth-floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes auth-gradient-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes auth-pop { 0% { transform: scale(0.7); opacity: 0; } 55% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); } }

.auth-g-text {
  background: linear-gradient(115deg, #ff8cf0 0%, #c37bff 42%, #3cdcff 72%, #ff8cf0 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: auth-gradient-shift 7s ease-in-out infinite;
}

.auth-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; min-height: 100vh; }
@media (max-width: 900px) {
  .auth-grid { grid-template-columns: 1fr; }
  .auth-brand-panel { display: none; }
}

.auth-brand-panel {
  position: relative; overflow: hidden; padding: 48px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,140,240,0.28), transparent 55%),
              radial-gradient(ellipse at 70% 90%, rgba(60,220,255,0.22), transparent 55%), #0c0916;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.auth-brand-logo-row { display: flex; align-items: center; gap: 11px; font-family: 'Space Grotesk'; font-weight: 700; font-size: 21px; color: #f3f0fa; }
.auth-brand-logo-row img { width: 34px; height: 34px; object-fit: contain; }
.auth-brand-mascot { width: 70px; height: 70px; object-fit: contain; margin-bottom: 26px; animation: auth-floaty 6s ease-in-out infinite; }
.auth-brand-headline { font-family: 'Space Grotesk'; font-weight: 700; font-size: clamp(28px, 3vw, 44px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 16px; }
.auth-brand-sub { font-size: 16px; line-height: 1.6; color: #a8a1ba; max-width: 360px; margin: 0; }
.auth-brand-foot { font-size: 13px; color: #6f6883; }
.auth-brand-checklist { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.auth-brand-check-row { display: flex; align-items: center; gap: 12px; font-size: 15.5px; color: #cfc8dd; }
.auth-brand-check-icon { flex: 0 0 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 13px; }

.auth-form-panel { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-form-inner { width: 100%; max-width: 440px; }

.auth-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  font-size: 13px; font-weight: 600; color: #cfc8dd; margin-bottom: 22px;
}

.auth-app h2 { font-family: 'Space Grotesk'; font-weight: 700; font-size: 28px; letter-spacing: -0.02em; margin: 0 0 6px; }
.auth-lead { font-size: 15px; color: #8f88a3; margin: 0 0 26px; }

.auth-label { display: block; font-size: 13.5px; font-weight: 600; color: #cfc8dd; margin-bottom: 8px; }

.auth-field {
  width: 100%; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 15px 16px; color: #f3f0fa; font-family: 'Instrument Sans', sans-serif;
  font-size: 16px; outline: none; transition: border-color 0.15s; margin-bottom: 16px;
}
.auth-field:focus { border-color: rgba(255,140,240,0.55); }
.auth-field::placeholder { color: #6f6883; }
.auth-field[aria-invalid="true"] { border-color: #ff8ba0; }
select.auth-field { appearance: none; cursor: pointer; }

.auth-password-wrap { position: relative; }
.auth-password-wrap .auth-field { padding-right: 52px; }
.auth-password-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 9px; color: #a9a2b9; background: transparent; cursor: pointer;
}
.auth-password-toggle:hover { color: #f3f0fa; background: rgba(255,255,255,0.07); }
.auth-password-toggle:focus-visible { outline: 2px solid #ff8cf0; outline-offset: 1px; }
.auth-password-toggle svg { width: 20px; height: 20px; pointer-events: none; }
.auth-password-toggle .auth-eye-off { display: none; }
.auth-password-toggle[aria-pressed="true"] .auth-eye-on { display: none; }
.auth-password-toggle[aria-pressed="true"] .auth-eye-off { display: block; }
.auth-field-error { min-height: 18px; margin: 6px 0 0; color: #ff8ba0; font-size: 12.5px; }

.auth-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.auth-row-2 .auth-field { margin-bottom: 0; }
@media (max-width: 900px) { .auth-row-2 { grid-template-columns: 1fr; } }

.auth-forgot-row { text-align: right; margin-bottom: 22px; font-size: 13.5px; font-weight: 600; }

.auth-btn-primary {
  width: 100%; padding: 16px; border-radius: 12px; border: 0; cursor: pointer;
  background: linear-gradient(115deg, #ff8cf0, #b43cff 55%, #7c3cff); color: #fff;
  font-family: 'Space Grotesk'; font-weight: 700; font-size: 16px;
  box-shadow: 0 10px 34px rgba(180,60,255,0.4); transition: transform 0.12s ease;
}
.auth-btn-primary:active { transform: scale(0.97); }
.auth-btn-primary:disabled { opacity: 0.6; cursor: default; box-shadow: none; }

.auth-btn-secondary {
  display: block; text-align: center; width: 100%; padding: 15px; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14); color: #f3f0fa;
  font-family: 'Space Grotesk'; font-weight: 600; font-size: 15.5px;
}

.auth-divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: #6f6883; font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,0.1); }

.auth-switch-line { text-align: center; margin-top: 20px; font-size: 14px; color: #8f88a3; }
.auth-switch-line a { font-weight: 600; }

.auth-error { display: none; color: #ff8ba0; font-size: 13.5px; margin-top: 10px; }
.auth-error.visible { display: block; }

.auth-checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; cursor: pointer; }
.auth-checkbox-row input { margin-top: 3px; width: 17px; height: 17px; accent-color: #b43cff; flex: 0 0 auto; }
.auth-checkbox-row span { font-size: 12.5px; line-height: 1.5; color: #8f88a3; }

/* stepper (student login step 1/2, educator signup step 1/2) */
.auth-stepper { display: flex; align-items: center; gap: 8px; margin-bottom: 30px; }
.auth-step { display: flex; align-items: center; gap: 8px; }
.auth-step-badge {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-family: 'Space Grotesk'; font-weight: 700; font-size: 13; color: #8f88a3; background: rgba(255,255,255,0.06);
}
.auth-step-badge.active, .auth-step-badge.done { color: #fff; background: linear-gradient(115deg, #ff8cf0, #b43cff); }
.auth-step-label { font-family: 'Space Grotesk'; font-weight: 600; font-size: 13.5px; color: #8f88a3; }
.auth-step-label.active { color: #f3f0fa; }
.auth-step-connector { flex: 1; height: 2px; border-radius: 2px; background: rgba(255,255,255,0.1); }
.auth-step-connector.done { background: linear-gradient(90deg, #ff8cf0, #b43cff); }

/* picture password tiles - real emoji icons stay (the actual stored
   passwords are emoji-based), just restyled to the mockup's gradient-tile
   treatment: colored tile + numbered order badge once picked. */
.auth-pw-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.auth-pw-count { font-size: 12.5px; color: #6f6883; }
.auth-pw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.auth-pw-tile {
  position: relative; aspect-ratio: 1 / 1; border: 3px solid transparent; border-radius: 16px;
  cursor: pointer; padding: 0; display: grid; place-items: center; font-size: 28px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3); transition: transform 0.12s, border-color 0.12s;
}
.auth-pw-tile.picked { border-color: #fff; box-shadow: 0 8px 22px rgba(180,60,255,0.45); transform: scale(1.04); }
.auth-pw-order-badge {
  position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%;
  background: #08060d; color: #fff; display: grid; place-items: center;
  font-family: 'Space Grotesk'; font-weight: 700; font-size: 12.5px;
}

.auth-success-icon {
  width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 20px;
  background: linear-gradient(135deg, #ff8cf0, #b43cff 55%, #3cdcff); display: grid; place-items: center;
  color: #fff; font-size: 34px; animation: auth-pop 0.6s ease;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/Poppins-Regular.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/Poppins-SemiBold.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/Poppins-Bold.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
