/* Selected direction: Essential, using the existing desktop login components.
   Load after login-redesign.css. No markup or JavaScript changes required.
   The breakpoint matches the existing single-column login layout. */
@media (max-width: 900px) {
  html, body, .auth-page { background: #fff; }
  .auth-page {
    min-height: 100vh;
    min-height: 100svh;
    padding: 0;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .login-shell {
    display: block;
    width: 100%;
    max-width: 420px;
    min-height: 0;
    margin: 0 auto;
    padding: 0;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
  }
  /* The form already contains a mobile logo; reuse it in place of the hero. */
  .login-hero { display: none; }
  .auth-right {
    display: block;
    padding: 124px 24px 36px;
  }
  .auth-right .auth-form-box { max-width: none; }
  .auth-right .auth-mobile-logo {
    display: flex;
    align-items: center;
    position: absolute;
    top: 24px;
    left: 24px;
    width: clamp(140px, 44vw, 176px);
    height: 44px;
    margin: 0;
  }
  .auth-mobile-logo a, .auth-mobile-logo img {
    display: block;
    width: 100%;
    height: auto;
  }
  .auth-right .auth-lang-switcher { top: 24px; right: 24px; }
  .lang-trigger { height: 44px; padding: 0 10px; font-size: 12px; }
  .lang-option { min-height: 44px; }
  .auth-right .auth-form-box > h2 {
    text-align: left;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.025em;
  }
  /* Keep desktop colors, input surfaces, pill buttons and control order. */
  .auth-right .auth-oauth,
  .auth-right .auth-divider--oauth { display: none; }
  .auth-right form { margin-top: 28px; }
  .auth-right .auth-row { margin: 0 0 18px; }
  .auth-right .auth-row + .auth-row { margin-top: 0; }
  .auth-right .auth-row label {
    position: static;
    width: auto;
    height: auto;
    margin: 0 0 9px;
    padding: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    color: #40516a;
  }
  .auth-right input[type="email"],
  .auth-right input[type="password"],
  .auth-right input[type="text"] {
    height: 52px;
    font-size: 16px;
    border-radius: 16px;
  }
  .auth-right input:focus {
    border-color: #168ca4;
    box-shadow: 0 0 0 3px rgba(22, 140, 164, .12);
  }
  .password-toggle { width: 44px; height: 44px; right: 4px; }
  .auth-right .auth-remember-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 12px;
    margin-top: 0;
  }
  .auth-remember-row label, .auth-right .auth-remember-row a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 12px;
  }
  .auth-right .auth-btn { height: 52px; margin-top: 12px; }
  .auth-right .auth-footer-line {
    flex-wrap: wrap;
    align-items: center;
    gap: 0 6px;
    margin-top: 20px;
    font-size: 12px;
  }
  .auth-right .auth-footer-line .auth-link-btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    font-size: 12px;
    box-shadow: none;
  }
  .auth-message.local-notice { margin: 20px 0 0; }
}
@media (max-width: 350px) {
  .auth-right { padding: 108px 20px 28px; }
  .auth-right .auth-mobile-logo { top: 20px; left: 20px; }
  .auth-right .auth-lang-switcher { top: 20px; right: 20px; }
}
