/* =====================================================================
   Cover The Gaps — Registration Page Redesign
   Extends login_redesign.css to share design tokens, input elements
   and base layouts while defining registration specific components.
   ===================================================================== */

@import "login_redesign.css";

/* Widen the form panels for two-column field layout */
.auth {
  grid-template-columns: 1.02fr 1.1fr;
}
.authcard {
  max-width: 480px;
}

/* Widen input margins on mobile brand centering */
@media (max-width: 920px) {
  .auth {
    grid-template-columns: 1fr;
  }
}

/* ----- Student / Teacher Auroras & Eyebrows ----- */

/* Student-scoped Glows (Indigo / Teal) */
.auth--student .auth__brandpane::before {
  background: radial-gradient(circle at 30% 30%, #6d63f4, transparent 70%);
}
.auth--student .auth__brandpane::after {
  background: radial-gradient(circle at 50% 50%, #0d9488, transparent 70%);
  opacity: .4;
}
.auth--student .auth__eyebrow {
  color: #aab3ff;
  background: rgba(124, 116, 243, 0.14);
  border: 1px solid rgba(124, 116, 243, 0.28);
}
.auth--student .auth__headline .grad {
  background: linear-gradient(100deg, #a5b4ff, #7ee7d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth--student .auth__points .tick {
  background: rgba(124, 116, 243, 0.18);
  color: #b8c0ff;
}

/* Teacher-scoped Glows (Warm Amber / Indigo) */
.auth--teacher .auth__brandpane::before {
  background: radial-gradient(circle at 30% 30%, #f0a04b, transparent 70%);
  opacity: .5;
}
.auth--teacher .auth__brandpane::after {
  background: radial-gradient(circle at 50% 50%, #6d63f4, transparent 70%);
  opacity: .5;
}
.auth--teacher .auth__eyebrow {
  color: #f3c79a;
  background: rgba(240, 160, 75, 0.14);
  border: 1px solid rgba(240, 160, 75, 0.30);
}
.auth--teacher .auth__headline .grad {
  background: linear-gradient(100deg, #ffd9a8, #a5b4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth--teacher .auth__points .tick {
  background: rgba(240, 160, 75, 0.16);
  color: #f3c79a;
}
.authcard__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-bg);
  padding: 5px 11px;
  border-radius: 999px;
}
.authcard__eyebrow svg {
  width: 13px;
  height: 13px;
}

/* ----- Layout & Fields ----- */

/* Form Grid */
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 460px) {
  .grid2 {
    grid-template-columns: 1fr;
  }
}

/* Section Legends */
.fieldset__legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.fieldset__legend::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.fieldset__legend svg {
  width: 15px;
  height: 15px;
  color: var(--primary);
}
.fieldset__legend .opt {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 650;
  font-size: 11px;
  color: var(--text-3);
  background: var(--surface-3);
  border-radius: 999px;
  padding: 2px 9px;
}

/* Select Wrapper */
.selwrap {
  position: relative;
}
.selwrap > svg.chev {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
  width: 18px;
  height: 18px;
}
.selwrap > svg.lead {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
  width: 18px;
  height: 18px;
}
.selwrap select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 48px;
  padding: 0 40px 0 42px;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: .15s var(--ease);
}
.selwrap select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50);
  background: #fff;
}
.selwrap select:invalid {
  color: var(--text-3);
}
.selwrap.is-invalid select {
  border-color: var(--rose);
}
.selwrap.is-invalid select:focus {
  box-shadow: 0 0 0 3px rgba(214, 31, 73, 0.15);
}

.field__hint {
  margin: 6px 2px 0;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.45;
}

/* Terms and Conditions Checkbox */
.terms {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 22px 0 4px;
  padding: 13px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.5;
  cursor: pointer;
}
.terms input {
  appearance: none;
  -webkit-appearance: none;
  margin: 1px 0 0;
  width: 20px; height: 20px;
  border-radius: 6px;
  border: 2px solid var(--border-2);
  background: #fff;
  cursor: pointer;
  flex: none;
  transition: .14s var(--ease);
  position: relative;
}
.terms input:checked {
  background: var(--primary);
  border-color: var(--primary);
}
.terms input:checked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: no-repeat center/13px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.terms input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-50);
}
.terms a {
  color: var(--primary);
  font-weight: 650;
}
.terms a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.terms.is-invalid {
  border-color: var(--rose);
}

/* Student Progress Steps */
.auth__steps {
  margin-top: 38px;
  display: flex;
  gap: 8px;
}
.auth__steps .dot {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}
.auth__steps .dot.on {
  background: linear-gradient(90deg, var(--primary), #7ee7d4);
}
.auth__stepnote {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: #8b93a8;
}

/* Teacher Specific Invite Box */
.auth__invite {
  margin-top: 38px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.auth__invite svg {
  width: 18px;
  height: 18px;
  color: #7ee7d4;
  flex: none;
  margin-top: 1px;
}
.auth__invite p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #aab2c9;
}
.auth__invite b {
  color: #fff;
  font-weight: 700;
}
