/* O助手 v2.2: mobile form-first authentication and de-duplicated account navigation.
   Desktop login modal and all existing homepage/tool cards remain unchanged. */
/* Login page is used instead of the popup below 780px. */
@media (max-width: 779px) {
  /* Remove the oversized illustration/brand card from mobile login, registration and reset pages. */
  .content .ozs-auth-page {
    display: block !important;
    grid-template-columns: minmax(0,1fr) !important;
    width: 100% !important;
    max-width: 520px !important;
    min-height: 0 !important;
    margin: 6px auto 14px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow: visible !important;
  }
  .content .ozs-auth-page > .ozs-auth-art {
    display: none !important;
  }
  .content .ozs-auth-page > .ozs-auth-fields {
    display: flex !important;
    min-height: 0 !important;
    padding: 14px 10px 18px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    justify-content: flex-start !important;
    color: #254132 !important;
  }
  .content .ozs-auth-fields .eyebrow { margin: 0 !important; }
  .content .ozs-auth-fields h1 { margin: 8px 0 6px !important; font-size: clamp(23px, 6.4vw, 28px) !important; }
  .content .ozs-auth-fields > p { margin: 0 0 17px !important; }
  .content .ozs-auth-fields form { gap: 12px !important; }
  .content .ozs-auth-fields form .btn { margin-top: 6px !important; }
  .content .ozs-auth-alt { margin-top: 13px !important; }
  .content .ozs-oauth { margin-top: 12px !important; flex-wrap: wrap; }
  /* Bottom fixed nav is authoritative on mobile; keep form buttons scrollable above it. */
  .content[data-view="login"],.content[data-view="register"],
  .content[data-view="forgot-password"],.content[data-view="reset-password"] {
    padding-bottom: max(108px, env(safe-area-inset-bottom) + 90px) !important;
  }
}
/* Preserve the desktop two-column login art, including customized background images. */
@media (max-width: 720px) {
  /* Bottom “账户” item is present at these widths; avoid a duplicate top avatar. */
  .site-header .site-header-actions > .site-account {
    display: none !important;
    visibility: hidden !important;
  }
}
@media (min-width: 780px) {
  .ozs-auth-page > .ozs-auth-art { display: flex; }
}
