/* Keep the sign-in grid inside its viewport, including iPad and split view. */
#static-entry-gateway .static-auth-shell,
#static-entry-gateway .static-auth-panel,
#static-entry-gateway .static-auth-card {
  box-sizing: border-box;
  min-width: 0 !important;
}

#static-entry-gateway .static-auth-panel {
  width: 100% !important;
}

#static-entry-gateway .static-auth-title {
  overflow-wrap: break-word;
  letter-spacing: 0 !important;
}

#static-entry-gateway .static-switch button,
#static-entry-gateway .static-footer-link {
  white-space: normal !important;
  overflow-wrap: anywhere;
}

#static-entry-gateway .static-switch button,
#static-entry-gateway .static-footer-link,
#static-entry-gateway .static-link-button,
#static-entry-gateway .static-auth-submit,
#static-entry-gateway .static-student-open {
  min-height: 44px !important;
}

@media (min-width: 761px) {
  #static-entry-gateway .static-auth-shell {
    width: min(1220px, 100%) !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px) !important;
    gap: 32px !important;
  }

  #static-entry-gateway .static-auth-title {
    font-size: 40px !important;
  }
}

@media (min-width: 761px) and (max-width: 1000px) {
  #static-entry-gateway .static-auth-shell {
    width: min(540px, 100%) !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
  }

  #static-entry-gateway .static-auth-panel {
    margin-top: 0 !important;
  }

  #static-entry-gateway .static-auth-title {
    font-size: 30px !important;
    line-height: 1.2 !important;
  }

  #static-entry-gateway .static-auth-lead,
  #static-entry-gateway .static-auth-visual {
    display: none !important;
  }

  #static-entry-gateway .static-auth-footer {
    width: min(540px, 100%) !important;
  }
}

@media (max-width: 1000px) {
  #static-entry-gateway .static-field input {
    font-size: 16px !important;
    min-height: 44px !important;
  }
}
