.auth-page > .row {
  margin: 0;
}
.auth-page > .row > .col-md-12 {
  padding: 0;
}
.auth-page {
  padding: 48px 24px 24px;
  min-height: calc(100vh - 160px);
  display: grid;
  align-items: center;
  background: radial-gradient(ellipse at 10% 10%, #fce6ef80, transparent 50%), radial-gradient(ellipse at 95% 90%, #dcecff80, transparent 45%);
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  max-width: 1040px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 18px 65px #2445740c;
}
.auth-story {
  position: relative;
  min-height: 620px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #cde4ff url('/images/hero-spring.jpg') 19% center / auto 100% no-repeat;
  isolation: isolate;
  color: #172e5e;
}
.auth-story::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #dcedff15 25%, #ecf4ffd9 64%, #f4f8ff 100%);
}
.auth-story-badge {
  align-self: flex-start;
  padding: 9px 14px;
  border: 1px solid #ffffffa6;
  border-radius: 30px;
  background: #ffffffd9;
  font-size: 12px;
  font-weight: 800;
}
.auth-story-badge i {
  color: #ed4583;
  margin-right: 6px;
}
.auth-story-copy {
  padding: 120px 10px 14px;
}
.auth-story-spark {
  color: #ee4784;
  font-size: 36px;
}
.auth-story h2 {
  font-family: 'Caveat', cursive;
  font-size: 70px;
  font-weight: 700;
  line-height: .98;
  letter-spacing: -1px;
  margin: 0 0 23px;
}
.auth-story h2::after {
  content: '';
  display: block;
  width: 165px;
  height: 5px;
  margin-top: 10px;
  background: #fa4487;
  border-radius: 50%;
  transform: rotate(-3deg);
}
.auth-story-copy p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 25px;
}
.auth-story-note {
  font-size: 12px;
  font-weight: 700;
  color: #5d7397;
}
.auth-story-note i {
  color: #fa4487;
  margin-right: 7px;
}
.auth-card {
  padding: 36px 48px;
  min-width: 0;
  align-self: center;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--page);
  margin-bottom: 30px;
}
.auth-tabs a {
  padding: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  border-radius: 8px;
}
.auth-tabs a[aria-current] {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 2px 5px #172e5e0a;
}
.auth-eyebrow {
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--pink);
}
.auth-card h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.7px;
  margin: 8px 0;
}
.auth-intro {
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
  margin-bottom: 24px;
}
.auth-card .form-floating {
  margin-bottom: 14px;
}
.auth-card .form-control,
.auth-card .form-select {
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: var(--surface);
  color: var(--ink);
  font-size: 14px;
  height: 56px;
}
.auth-card .form-floating > label {
  color: var(--muted);
  font-size: 13px;
}
.auth-card .form-control:focus,
.auth-card .form-select:focus {
  border-color: #ed86ad;
  box-shadow: 0 0 0 3px #fa448715;
}
.auth-card .btn-primary {
  min-height: 49px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 800;
  margin-top: 6px;
  box-shadow: 0 5px 12px #fa44871a;
}
.auth-card .btn-primary:disabled {
  background: var(--pink);
  border-color: var(--pink);
  opacity: .5;
}
.auth-message:empty {
  display: none;
}
.auth-message {
  color: #b82c59;
  background: #fff0f5;
  border: 1px solid #ffd6e4;
  border-radius: 9px;
  padding: 11px 13px;
  margin-top: 14px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.auth-switch {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 23px 0;
}
.auth-switch a {
  font-weight: 800;
  margin-left: 3px;
}
.auth-back {
  display: block;
  padding-top: 19px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.auth-back i {
  margin-right: 6px;
}
.auth-field-hint {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin: -4px 0 8px;
}
.auth-page #schoolPreview {
  overflow-wrap: anywhere;
}
:root[data-theme=dark] .auth-page {
  background: radial-gradient(ellipse at 10% 10%, #512b4530, transparent 50%);
}
:root[data-theme=dark] .auth-message {
  background: #44283b;
  border-color: #74405b;
  color: #ffc1d9;
}
:root[data-theme=dark] .auth-card .form-control,
:root[data-theme=dark] .auth-card .form-select {
  background-color: var(--surface) !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}
@media (max-width: 959px) {
  .auth-page { padding: 30px 20px 20px; }
  .auth-card { padding: 30px; }
  .auth-story { padding: 24px; }
  .auth-story h2 { font-size: 62px; }
  .auth-story-copy { padding-left: 0; padding-right: 0; }
}
@media (max-width: 650px) {
  .auth-page { padding: 20px 14px; min-height: auto; }
  .auth-layout { grid-template-columns: 1fr; max-width: 460px; border-radius: 16px; }
  .auth-story { min-height: 135px; padding: 18px; background-size: cover; background-position: center 34%; }
  .auth-story::before { background: linear-gradient(90deg, #e9f3ff10, #e9f3ff95); }
  .auth-story-badge { font-size: 10px; padding: 7px 10px; }
  .auth-story-copy { padding: 0; text-align: right; }
  .auth-story h2 { font-size: 38px; margin: 5px 0 0; }
  .auth-story h2 br { display: none; }
  .auth-story h2::after { width: 105px; height: 4px; margin: 4px 5px 0 auto; }
  .auth-story-copy p, .auth-story-note, .auth-story-spark { display: none; }
  .auth-card { padding: 25px 24px; }
  .auth-tabs { margin-bottom: 24px; }
  .auth-card h1 { font-size: 28px; }
}
@media (max-width: 360px) {
  .auth-card { padding: 22px 18px; }
  .auth-story h2 { font-size: 34px; }
}
