/* Auth layout only: retain desktop branding, stack the form on small screens. */
@media (max-width: 900px) {
  #achaeu-auth-layout {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    height: auto !important;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
    background: #fafafa !important;
  }
  #achaeu-auth-layout > div:first-child {
    flex: 0 0 auto;
    width: 100% !important;
    min-width: 0;
    padding: 24px 16px !important;
    box-sizing: border-box;
  }
  #achaeu-auth-layout > div:first-child > img {
    width: 120px !important;
    max-width: 70%;
    height: auto !important;
    max-height: 110px;
    margin-bottom: 8px !important;
  }
  #achaeu-auth-layout > div:first-child > p { margin: 8px 0 0 !important; }
  #achaeu-auth-layout > div:nth-child(2) {
    flex: 0 0 auto !important;
    width: 100%;
    min-width: 0;
    align-items: flex-start !important;
    box-sizing: border-box;
  }
  #achaeu-auth-layout > div:nth-child(2) > div {
    width: 100% !important;
    max-width: 420px !important;
    min-width: 0;
    margin: 0 auto;
    padding: 24px 20px !important;
    box-sizing: border-box;
  }
  #achaeu-auth-layout .MuiFormControl-root,
  #achaeu-auth-layout .MuiInputBase-root { width: 100%; min-width: 0; }
  #achaeu-auth-layout input { min-width: 0; font-size: 16px !important; }
  #achaeu-auth-layout .MuiButton-root { min-height: 44px; }
}
@media (max-width: 900px) and (max-height: 600px) {
  #achaeu-auth-layout > div:first-child { padding: 12px 16px !important; }
  #achaeu-auth-layout > div:first-child > img { width: 64px !important; max-height: 64px; margin-bottom: 4px !important; }
  #achaeu-auth-layout > div:first-child > p { font-size: 14px !important; }
  #achaeu-auth-layout > div:nth-child(2) > div { padding-top: 16px !important; padding-bottom: 16px !important; }
}
