html,
body.student-login-page {
  min-height: 100%;
}

body.student-login-page {
  color: #17324d;
  background: #c8edff;
}

.student-login-page .student-login-shell {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  grid-template-columns: minmax(0, 59fr) minmax(430px, 41fr);
  align-items: stretch;
  gap: 0;
}

.student-login-page .student-login-visual {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: block;
  padding: 0;
  border-radius: 0;
  background: #b7e4f3;
  box-shadow: none;
}

.student-login-page .student-login-visual img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
}

.student-login-page .student-login-visual-copy {
  position: absolute;
  top: clamp(48px, 10vh, 112px);
  right: clamp(34px, 6vw, 100px);
  left: clamp(34px, 8vw, 130px);
  display: grid;
  gap: 18px;
  color: #0d47a1;
  text-shadow: 0 3px 0 rgb(255 255 255 / 86%), 0 8px 22px rgb(43 111 172 / 18%);
}

.student-login-page .student-login-visual-copy p {
  margin: 0;
  font-size: clamp(2.55rem, 5.1vw, 5rem);
  font-weight: 950;
  letter-spacing: -.055em;
  line-height: 1.08;
}

.student-login-page .student-login-visual-copy p span {
  display: block;
}

.student-login-page .student-login-visual-copy > span {
  color: #34475e;
  font-size: clamp(.96rem, 1.6vw, 1.25rem);
  font-weight: 800;
  text-shadow: 0 2px 0 rgb(255 255 255 / 92%);
}

.student-login-page .student-login-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 7vw, 92px);
  border: 0;
  border-left: 3px solid #f1cf61;
  border-radius: 64px 0 0 64px;
  background: #fffdf8;
  box-shadow: -22px 0 56px rgb(23 50 77 / 16%);
}

.student-login-page .student-login-back {
  gap: 9px;
  min-height: 36px;
  margin-bottom: 28px;
  color: #2459a1;
}

.student-login-page .student-login-heading {
  display: grid;
  gap: 16px;
  margin-bottom: 34px;
}

.student-login-page .student-login-kicker {
  width: fit-content;
  padding: 7px 18px;
  border: 1px solid #9ec8e9;
  border-radius: 999px;
  background: #eef7ff;
  color: #144d9c;
  font-size: 14px;
}

.student-login-page .student-login-heading h1 {
  margin: 0;
  color: #0d47a1;
  font-size: clamp(2.35rem, 4vw, 3.5rem);
  line-height: 1.12;
}

.student-login-page .student-login-form {
  gap: 16px;
}

.student-login-page .student-login-form label {
  color: #123f86;
}

.student-login-page .student-login-form input {
  min-height: 62px;
  border-color: #9ec8e9;
  border-radius: 13px;
  padding: 0 17px;
}

.student-login-page .student-login-submit {
  min-height: 62px;
  border-radius: 13px;
  background: #165dcc;
  box-shadow: 0 14px 30px rgb(22 93 204 / 22%);
  font-size: 17px;
}

.student-login-page .privacy-note {
  color: #35516a;
  font-weight: 800;
}

.student-login-page .student-login-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 44px;
  color: #173f73;
  font-weight: 900;
  cursor: pointer;
}

.student-login-page .student-login-remember input {
  width: 20px;
  min-height: 20px;
  margin: 0;
  accent-color: #188782;
}

.student-login-page .student-login-admin-entry {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #d9e3ec;
  color: #58708a;
  font-size: 13px;
  font-weight: 800;
}

.student-login-page .student-login-admin-button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #8dbdea;
  border-radius: 13px;
  color: #124f9f;
  background: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.student-login-page .student-login-admin-button:disabled {
  cursor: wait;
  opacity: .62;
}

.student-teacher-login-dialog {
  width: min(462px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid rgb(148 163 184 / 26%);
  border-radius: 14px;
  color: #f8fafc;
  background: #101827;
  box-shadow: 0 24px 70px rgb(15 23 42 / 45%);
}

.student-teacher-login-dialog::backdrop {
  background: rgb(15 23 42 / 58%);
  backdrop-filter: blur(6px);
}

.student-teacher-login-card {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.student-teacher-login-card h2 {
  margin: 0;
  font-size: 1.05rem;
}

.student-teacher-login-card > p {
  margin: 0;
  color: #cbd5e1;
  font-size: .88rem;
  line-height: 1.5;
}

.student-teacher-login-form {
  display: grid;
  gap: 8px;
}

.student-teacher-login-form label {
  color: #dbe6f5;
  font-size: .82rem;
  font-weight: 800;
}

.student-teacher-login-form input {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid rgb(148 163 184 / 32%);
  border-radius: 10px;
  color: #f8fafc;
  background: rgb(15 23 42 / 90%);
  font: inherit;
}

.student-teacher-login-form input:focus-visible {
  border-color: #60a5fa;
  outline: 3px solid rgb(59 130 246 / 28%);
}

.student-teacher-login-form .privacy-note {
  margin: 2px 0 4px;
  color: #aebed2;
  font-size: .75rem;
  line-height: 1.45;
}

.student-teacher-login-submit,
.student-teacher-login-close {
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid rgb(148 163 184 / 28%);
  border-radius: 10px;
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.student-teacher-login-submit {
  background: rgb(59 130 246 / 92%);
}

.student-teacher-login-close {
  background: rgb(15 23 42 / 90%);
}

.student-teacher-login-submit:disabled {
  cursor: wait;
  opacity: .62;
}

.student-teacher-login-message {
  min-height: 20px;
  margin: 0;
  color: #cbd5e1;
  font-size: .84rem;
  line-height: 1.45;
}

.student-teacher-login-message[data-tone="bad"] {
  color: #fca5a5;
}

.student-teacher-login-message[data-tone="good"] {
  color: #6ee7b7;
}

body.auth-page {
  color: #e8edf5;
  background: #0d172b;
}

.auth-page .auth-shell {
  width: min(478px, calc(100% - 32px));
  padding: 48px 0;
}

.auth-page .auth-shell-wide {
  width: min(620px, calc(100% - 32px));
}

.auth-page .auth-card {
  padding: 28px;
  border-color: #40516a;
  border-radius: 18px;
  background: #1c293d;
  box-shadow: 0 26px 70px rgb(0 0 0 / 30%);
}

.auth-page .student-login-back,
.auth-page .eyebrow {
  color: #9fb0c8;
}

.auth-page h1 {
  margin: 16px 0 8px;
  color: #f4f7fb;
  font-size: 24px;
}

.auth-page .auth-guide {
  margin-bottom: 24px;
  padding: 0;
  color: #9fb0c8;
  background: transparent;
}

.auth-page .auth-form label,
.auth-page .reset-result label {
  color: #b8c4d7;
}

.auth-page .auth-form input,
.auth-page .auth-form textarea,
.auth-page .reset-result textarea {
  border-color: #42516a;
  color: #f4f7fb;
  background: #111c30;
}

.auth-page .privacy-note,
.auth-page .student-login-message {
  color: #9fb0c8;
}

.auth-page .local-preview-login,
.auth-page .reset-result,
.auth-page .reset-success {
  border-color: #365b66;
  background: #142b35;
}

.auth-page .local-preview-login p {
  color: #9fb0c8;
}

.auth-page .secondary-button {
  border-color: #527087;
  color: #d9e7f3;
  background: #17263b;
}

.auth-page .student-login-submit {
  background: #10bd92;
  box-shadow: 0 12px 28px rgb(16 189 146 / 20%);
}

@media (max-width: 820px) {
  .student-login-page .student-login-shell {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .student-login-page .student-login-visual {
    min-height: 260px;
  }

  .student-login-page .student-login-visual-copy {
    top: 34px;
    right: 26px;
    left: 26px;
    gap: 10px;
  }

  .student-login-page .student-login-panel {
    min-height: auto;
    margin-top: -36px;
    padding: 36px 22px 42px;
    border-top: 3px solid #f1cf61;
    border-left: 0;
    border-radius: 36px 36px 0 0;
    box-shadow: 0 -18px 42px rgb(23 50 77 / 16%);
  }
}

@media (min-width: 821px) and (max-height: 900px) {
  .student-login-page .student-login-panel {
    padding: 18px clamp(44px, 6vw, 72px);
  }

  .student-login-page .student-login-back {
    margin-bottom: 12px;
  }

  .student-login-page .student-login-heading {
    gap: 6px;
    margin-bottom: 10px;
  }

  .student-login-page .student-login-heading h1 {
    font-size: 2.6rem;
  }

  .student-login-page .student-login-form {
    gap: 7px;
  }

  .student-login-page .student-login-form input,
  .student-login-page .student-login-submit {
    min-height: 48px;
  }

  .student-login-page .student-login-remember {
    min-height: 36px;
  }

  .student-login-page .privacy-note {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
  }

  .student-login-page .local-preview-login {
    gap: 5px;
    padding: 9px 11px;
  }

  .student-login-page .student-login-message {
    margin-top: 5px;
  }

  .student-login-page .student-login-admin-entry {
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
  }

  .student-login-page .student-login-admin-button {
    min-height: 44px;
  }
}
