@media (max-width: 900px) {
    html body .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .form-panel { padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
    html body .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .form-panel .form-wrap { display: flex; flex-direction: column; justify-content: space-between; width: 100%; max-width: none; min-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom)); margin: 0; padding: 18px; border: 0; border-radius: 0; }
    .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .auth-mobile-hero { flex-shrink: 0; min-height: clamp(90px, 22dvh, 210px); margin: -18px -18px 12px; padding: 14px 18px; border-radius: 0; }
    .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .auth-mobile-hero::after { right: 18px; bottom: 18px; }
    .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .auth-mobile-hero p { margin-bottom: 3px; font-size: 8px; letter-spacing: 1.5px; }
    .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .auth-mobile-hero strong { font-size: 18px; }
    .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .brand-return { top: 10px; left: 18px; margin: 0; }
    .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .brand-return img { width: 120px; }
    .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .form-wrap h2 { font-size: clamp(24px, 3.5dvh, 30px); line-height: 1.2; }
    .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .form-intro { margin: 5px 0 12px; font-size: 12px; line-height: 1.4; }
    .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .field { margin-bottom: 10px; }
    .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .field label { margin-bottom: 5px; font-size: 11px; }
    .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .field input { height: clamp(44px, 6dvh, 54px); min-height: 44px; padding: 10px 12px; font-size: 16px; }
    .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .form-row { margin: 0 0 8px; }
    .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .remember { min-height: 28px; font-size: 12px; }
    .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .remember input { width: 17px; height: 17px; }
    .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .primary-button { min-height: clamp(44px, 6dvh, 54px); padding: 11px 14px; font-size: 14px; }
    .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .recovery-row { margin: 6px 0; }
    .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .recovery-link { display: inline-flex; align-items: center; min-height: 28px; }
    .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .guest-divider { margin: 7px 0; font-size: 11px; line-height: 1.3; }
    .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .guest-continue { min-height: clamp(44px, 6dvh, 54px); padding: 10px 14px; font-size: 14px; }
    .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .switch-copy { margin-top: 10px; padding-top: 10px; font-size: 11px; line-height: 1.5; }
    .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .switch-copy a { min-height: 28px; }
    .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .auth-mobile-footer { margin-top: 8px; font-size: 9px; }
    .auth-shell.register-shell.compact-register .auth-mobile-hero { min-height: clamp(90px, 16dvh, 160px); }
}
@media (max-width: 900px) and (max-height: 740px) {
    .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .auth-mobile-hero { min-height: 76px; margin-bottom: 10px; padding-bottom: 10px; }
    .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .auth-mobile-hero > div,
    .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .auth-mobile-footer,
    .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .form-intro { display: none; }
    .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .form-wrap h2 { margin-bottom: 12px; font-size: 22px; }
    .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .field { margin-bottom: 8px; }
    .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .guest-divider { margin: 5px 0; }
    .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .switch-copy { margin-top: 8px; padding-top: 8px; }
    .auth-shell.register-shell.compact-register .auth-mobile-hero { min-height: 76px; }
    .auth-shell.register-shell.compact-register .field { margin-bottom: 6px; }
    .auth-shell.register-shell.compact-register .field label { margin-bottom: 3px; }
}
@media (max-width: 900px) and (max-height: 650px) {
    html body .auth-shell.register-shell.compact-register .form-panel .form-wrap { padding: 14px; }
    .auth-shell.register-shell.compact-register .auth-mobile-hero { min-height: 52px; margin: -14px -14px 8px; }
    .auth-shell.register-shell.compact-register .brand-return { top: 8px; left: 14px; }
    .auth-shell.register-shell.compact-register .auth-mobile-hero::after { display: none; }
}
@media (max-width: 900px) and (max-height: 580px) {
    .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .auth-mobile-hero { min-height: 52px; }
    .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .auth-mobile-hero > div,
    .auth-shell:is(.login-shell.compact-login, .register-shell.compact-register) .auth-mobile-hero::after { display: none; }
}
