.hero-reference.landing-exact .login-privacy {
  margin-top: 14px !important;
}

.hero-reference.landing-exact .login-card {
  border-top: 1px solid #dbe3ed !important;
  background-clip: padding-box !important;
}

body.landing-page .brand span {
  margin-left: .25em;
}

/* Keep the landing brand readable after the shared admin header styles load. */
body.landing-page .brand .brand-copy {
  color: #082653 !important;
}

body.landing-page .brand .brand-copy em {
  color: #8a5b00 !important;
}

@media (min-width: 901px) {
  /* Use the free space above the card to keep the developer credit inside it. */
  body.landing-page .hero-reference.landing-exact .login-card {
    height: calc(100% + clamp(24px, 3vh, 30px)) !important;
    max-height: 720px !important;
    padding-bottom: 22px !important;
    transform: translate(-120px, clamp(-30px, -3vh, -24px)) !important;
  }
}

@media (min-width: 901px) and (max-height: 820px) {
  /* Short desktop windows need vertical scrolling instead of clipping the card. */
  html:has(body.landing-page),
  body.landing-page {
    height: auto !important;
    min-height: 100vh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body.landing-page main {
    overflow: visible !important;
  }

  body.landing-page .hero-reference.landing-exact {
    height: auto !important;
    min-height: 720px !important;
    padding-bottom: 28px !important;
    overflow: visible !important;
  }

  body.landing-page .hero-reference.landing-exact .login-card {
    height: auto !important;
    min-height: 700px !important;
    max-height: none !important;
  }
}

@media (max-width: 900px) {
  html:has(body.landing-page) {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body.landing-page {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
  }

  body.landing-page main {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  body.landing-page .hero-reference.landing-exact {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  body.landing-page .hero-reference.landing-exact .login-card,
  body.landing-page .hero-reference.landing-exact form {
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

@media (max-width: 620px) {
  body.landing-page .header {
    width: 100% !important;
    min-width: 0 !important;
    gap: 12px !important;
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  body.landing-page .brand {
    min-width: 0 !important;
    font-size: 14px !important;
    letter-spacing: -.015em !important;
    white-space: nowrap !important;
  }

  body.landing-page .brand b {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    margin-right: 10px !important;
  }

  body.landing-page .admin-link {
    flex: 0 0 auto !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  body.landing-page .hero-reference.landing-exact {
    box-sizing: border-box !important;
    padding: 38px 16px 48px !important;
  }

  body.landing-page .hero-reference.landing-exact .hero-copy {
    width: 100% !important;
    min-width: 0 !important;
  }

  body.landing-page .hero-reference.landing-exact h1 {
    max-width: 100% !important;
    font-size: clamp(34px, 9vw, 42px) !important;
    line-height: 1.14 !important;
    overflow-wrap: normal !important;
  }

  body.landing-page .hero-reference.landing-exact .lead br {
    display: block !important;
  }

  body.landing-page .hero-reference.landing-exact .hero-benefits {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
    gap: 12px !important;
  }

  body.landing-page .hero-reference.landing-exact .hero-benefits > div {
    min-width: 0 !important;
    gap: 8px !important;
  }

  body.landing-page .hero-reference.landing-exact .hero-benefits p {
    min-width: 0 !important;
    overflow-wrap: normal !important;
  }

  body.landing-page .hero-reference.landing-exact .login-card {
    position: relative !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-top: 15px !important;
    padding: 30px 22px 20px !important;
    border: 1px solid #dbe3ed !important;
    box-shadow: 0 8px 16px rgba(14, 33, 62, .045) !important;
  }

  body.landing-page .hero-reference.landing-exact .student-icon {
    margin-bottom: 14px !important;
  }

  body.landing-page .hero-reference.landing-exact .login-card > p:not(.eyebrow) {
    margin-bottom: 22px !important;
  }

  body.landing-page .hero-reference.landing-exact .login-card label {
    margin-bottom: 14px !important;
  }

  body.landing-page .hero-reference.landing-exact .login-card::after {
    margin-top: 8px !important;
  }
}

@media (max-width: 420px) {
  body.landing-page .brand span {
    display: none !important;
  }

  body.landing-page .hero-reference.landing-exact .hero-benefits {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  body.landing-page .hero-reference.landing-exact .hero-benefits > div {
    justify-content: flex-start !important;
  }
}
