/* Center the sign-in form across screen sizes. */
body[data-portal="staff"] .auth-shell,
body[data-portal="student"] .auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-content: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  gap: clamp(16px, 2.5vh, 26px);
  margin: 0;
  padding: clamp(26px, 5vh, 55px) clamp(16px, 4vw, 44px);
  background: linear-gradient(180deg, #64162f 0%, #7b2442 42%, #fff7f9 42.1%, #fffafb 100%);
  overflow-wrap: break-word;
}
body[data-portal="staff"] .auth-identity,
body[data-portal="student"] .auth-identity {
  position: static;
  align-self: auto;
  justify-self: center;
  width: 100%;
  max-width: 700px;
  padding: 0;
  margin: 0;
  text-align: center;
}
body[data-portal] .auth-identity .school-logo {
  display: grid;
  margin: 0 auto 13px;
  width: clamp(66px, 10vw, 98px);
  height: clamp(66px, 10vw, 98px);
}
body[data-portal] .auth-identity h1 {
  font-size: clamp(28px, 3.6vw, 45px);
  line-height: 1.13;
  margin: 9px 0 7px;
  letter-spacing: -.025em;
  max-width: none;
}
body[data-portal] .auth-identity p:not(.overline),
body[data-portal] .auth-identity .auth-note {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}
body[data-portal] .auth-identity > p:not(.overline):not(.disclaimer) {
  font-size: clamp(13px, 1.4vw, 16px);
  line-height: 1.45;
  margin-bottom: 5px;
}
body[data-portal] .auth-identity .overline {
  font-size: 10px;
  letter-spacing: 1.25px;
}
body[data-portal] .auth-identity .disclaimer {
  display: block;
  font-size: 10px;
  margin: 10px auto 0;
  line-height: 1.3;
}
body[data-portal="staff"] .auth-card,
body[data-portal="student"] .auth-card {
  position: relative;
  align-self: auto;
  justify-self: center;
  width: 100%;
  max-width: 530px;
  min-width: 0;
  padding: clamp(20px, 3vw, 33px);
  border: 1px solid #ead8df;
  border-top: 4px solid #9a3152;
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 19px 52px #3c112632;
}
body[data-portal] .auth-card :is(input, select, textarea) { min-width: 0; }
body[data-portal] .auth-card :is(.segmented, .password) { min-width: 0; }
body[data-portal] .auth-card .password input { flex: 1 1 auto; min-width: 0; }
body[data-portal] .auth-card .password button { flex: 0 0 70px; }
body[data-portal] .auth-version {
  justify-self: center;
  margin: 0;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  color: #76495b;
  opacity: .9;
}
@media (max-width: 600px) {
  body[data-portal] .auth-shell {
    gap: 15px;
    padding: max(22px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(25px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    background: linear-gradient(180deg, #64162f 0%, #7b2442 39%, #fff7f9 39.1%, #fffafb 100%);
  }
  body[data-portal] .auth-identity .school-logo { width: 76px; height: 76px; margin-bottom: 8px; }
  body[data-portal] .auth-identity h1 { font-size: 28px; margin: 7px 0 5px; }
  body[data-portal] .auth-identity .disclaimer { display: none; }
  body[data-portal] .auth-card { max-width: 480px; padding: 20px 17px; border-radius: 17px; }
  body[data-portal] .auth-card:has(#staffRegisterForm:not(.hidden)) {
    max-height: none;
    overflow: visible;
  }
}
@media (max-width: 360px) {
  body[data-portal] .auth-shell { padding-inline: 10px; }
  body[data-portal] .auth-card { padding-inline: 13px; }
  body[data-portal] .auth-identity .overline { font-size: 9px; }
}
@media (max-height: 640px) {
  body[data-portal] .auth-shell { align-content: start; padding-block: 18px; gap: 12px; }
  body[data-portal] .auth-identity .school-logo { height: 60px; width: 60px; margin-bottom: 4px; }
  body[data-portal] .auth-identity .disclaimer { display: none; }
}
