/* Keep the entire access form within the desktop viewport before any scroll.
   The lower-height rules preserve the approved composition and only compact
   spacing, typography and the right-column width when required. */
@media (max-height: 900px) and (min-width: 851px) {
  .access-portal { padding-block: 22px; }
  .access-portal__card { padding: 27px 38px; }
  .access-portal__card h1 { margin: 8px 0 10px; font-size: clamp(2.1rem, 3vw, 2.8rem); }
  .access-portal__intro { margin-bottom: 18px; font-size: .96rem; line-height: 1.4; }
  .access-form { padding-top: 18px; gap: 10px; }
  .access-form input { padding: 10px; }
  .access-form button { margin-top: 2px; padding: 12px; }
  .access-portal__card small { margin-top: 15px; }
  .access-error:empty { display: none; }
}

@media (max-height: 720px) and (min-width: 851px) {
  .access-portal {
    grid-template-columns: minmax(280px, 1fr) minmax(440px, 510px);
    gap: clamp(30px, 5vw, 78px);
    padding: 14px clamp(28px, 5vw, 82px);
    overflow-y: auto;
  }
  .access-portal__brand > img { width: min(330px, 27vw); max-height: 180px; }
  .access-portal__card { width: 100%; padding: 18px 30px; }
  .access-portal__eyebrow { margin: 0 0 4px; font-size: .66rem; }
  .access-portal__card h1 { margin: 4px 0 8px; font-size: clamp(1.82rem, 2.35vw, 2.3rem); line-height: 1.02; }
  .access-portal__intro { margin-bottom: 10px; font-size: .86rem; line-height: 1.34; }
  .screen-brief--portal { margin-top: 8px; padding: 7px 9px; font-size: .69rem; line-height: 1.3; }
  .access-form { padding-top: 10px; gap: 7px; }
  .access-form h2 { margin-bottom: 1px; font-size: 1.04rem; }
  .access-form label { gap: 4px; font-size: .73rem; }
  .access-form input { min-height: 39px; padding: 9px 10px; font-size: .93rem; }
  .access-form button { min-height: 39px; margin-top: 0; padding: 10px; font-size: .88rem; }
  .access-portal__credit { bottom: 8px; font-size: 10px; }
}
