/* Sign-in pages on phones: the OBN Meet app look (StreamPort colours), all on one screen, no scrolling. */
@media (max-width: 760px) {
  html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
  body { display: flex; flex-direction: column; height: 100dvh; margin: 0; background: #0b0c0e !important; color: #f2f3f5;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; }
  .nav { flex: none; height: auto !important; min-height: 0; padding: calc(env(safe-area-inset-top, 0px) + 10px) 16px 6px !important;
    background: transparent !important; border: 0 !important; box-shadow: none !important; position: static !important; }
  .nav .brand-full { height: 28px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
  .auth { flex: 1; min-height: 0 !important; display: flex !important; flex-direction: column; justify-content: center; overflow: hidden;
    padding: 0 16px calc(env(safe-area-inset-bottom, 0px) + 10px) !important; }
  .auth-card { width: 100%; max-width: 420px; margin: 0 auto; padding: 0 !important; background: transparent !important; border: 0 !important;
    box-shadow: none !important; border-radius: 0; animation: none !important; overflow: visible; }
  .auth-card::after { display: none; }
  .auth-card::before { width: 52px; height: 52px; margin: 0 auto 10px; background-image: url("/obn-mark.png"); }
  .auth-card h1 { font-size: 24px; color: #f2f3f5; margin-bottom: 4px; }
  .auth-card > p { margin: 0 0 12px; font-size: 14px; line-height: 1.4; color: #9a9fa8; }
  .auth-card label { margin: 10px 0 6px; color: #9a9fa8; }
  .auth-card .auth-aside { color: #2997ff; text-decoration: none; }
  .auth-card input { height: 48px; padding: 0 14px; border: 1px solid #2a2d33 !important; border-radius: 12px; background: #1a1c20 !important;
    color: #f2f3f5 !important; font-size: 17px; box-shadow: none !important; }
  .auth-card input:focus { outline: none; border-color: #2997ff !important; box-shadow: 0 0 0 3px rgba(41, 151, 255, .25) !important; }
  .auth-card .btn { height: 50px; margin-top: 16px; padding: 0; border: 0; border-radius: 12px; font-size: 17px; font-weight: 600; box-shadow: none !important; }
  .auth-card .btn.primary { background: #2997ff !important; color: #fff !important; }
  .auth-card .btn.primary::before, .auth-card .btn.primary::after { display: none; }
  .auth-card .sso-btn { justify-content: center; align-items: center; background: #1a1c20 !important; color: #f2f3f5 !important; border: 1px solid #2a2d33 !important; }
  .sso-or { margin: 14px 0 0; color: #6e737c; }
  .sso-or::before, .sso-or::after { background: #2a2d33; }
  .auth-ok { color: #f5b83d; }
  .error { color: #ff6961; }
  .auth-foot { margin-top: 12px; color: #9a9fa8; }
  .auth-foot a { color: #2997ff; }
  .auth { padding-bottom: 10px !important; }
  #form .auth-foot { display: none; } /* the Join tab is right below */
  /* Short phones: drop the explanation line first. */
  @media (max-height: 640px) {
    .auth-card::before { width: 40px; height: 40px; margin-bottom: 6px; }
    .auth-card h1 { font-size: 21px; }
    .auth-card > p:not(.auth-ok):not(.hidden) { display: none; }
    .auth-card label { margin-top: 8px; }
  }
}
