.auth-page { height: auto; min-height: 100dvh; overflow-y: auto; }
.auth-page .auth-right { min-width: 0; height: auto; }
.auth-compact-brand, .auth-compact-copy { display: none; }
.auth-form-surface { display: contents; }
.auth-page #signInFormEl .forgot-password { display: flex; align-items: center; width: fit-content; max-width: 100%; margin-left: auto; text-align: right; }
/* The existing desktop design stays in auth.blade.php; this composition is mobile/tablet only. */
@media (max-width: 1024px) {
    body.auth-page { display: flex; flex-direction: column; min-height: 100dvh; height: auto; padding: 24px 20px; background: #f7f9f7; overflow-y: auto; }
    .auth-page > header, .auth-page > .home-mobile-menu, .auth-page .auth-left { display: none; }
    .auth-page .auth-container { display: block; flex: 0 0 auto; width: 100%; max-width: 460px; min-height: 0; height: auto; margin: auto; padding: 0; overflow: visible; }
    .auth-page .auth-right { display: block; width: 100%; padding: 0; flex: none; }
    .auth-page .auth-compact-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 20px; color: #1e3b2b; text-decoration: none; }
    .auth-compact-brand img { object-fit: contain; }
    .auth-compact-brand span { font: 700 24px 'Lora', serif; }
    .auth-compact-brand small { display: block; font: 800 12px 'Nunito', sans-serif; letter-spacing: 2px; margin-top: 6px; }
    .auth-page .auth-desktop-copy, .auth-page .form-header h2, .auth-page #phone-help, .auth-page .auth-password-help { display: none !important; }
    .auth-page .auth-compact-copy { display: block; }
    .auth-page .compact-error { color: #a52222; font-size: 13px; line-height: 1.5; margin-top: 6px; }
    .auth-page .compact-error:empty { display: none; }
    .auth-page .compact-form-title { font-size: 22px; text-align: center; margin-bottom: 18px; }
    .auth-page .form-card, .auth-page .form-card.wide-card { width: 100%; max-width: none; padding: 0; background: transparent; border: 0 !important; border-radius: 0; box-shadow: none !important; transform: none !important; animation: none; }
    .auth-page .form-header { text-align: center; margin-bottom: 20px; }
    .auth-page .form-header p { font-size: 16px; line-height: 1.5; margin: 0; color: #526158; }
    .auth-page .auth-form-surface { display: block; padding: 24px; border: 1px solid #dfe6df; border-radius: 16px; background: #fff; box-shadow: 0 8px 26px rgb(30 59 43 / 6%); }
    .auth-page .auth-form-surface > form { margin: 0; padding: 0; }
    .auth-page .form-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .auth-page .form-grid .full-width { grid-column: 1 / -1; }
    .auth-page .input-group { min-width: 0; }
    .auth-page .input-group label { font-size: 14px; margin-bottom: 6px; }
    .auth-page .input-wrapper input { font-size: 16px; min-height: 48px; width: 100%; }
    .auth-page .form-card .btn { min-height: 48px; width: 100%; }
    .auth-page .checkbox-group { align-items: flex-start; gap: 10px; }
    .auth-page .checkbox-group label { font-size: 14px; line-height: 1.5; }
    .auth-page .form-footer { margin-top: 14px; font-size: 14px; text-align: center; }
    .auth-page .form-footer a, .auth-page .forgot-password { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 480px) {
    body.auth-page { padding: 20px 16px; }
    .auth-page .auth-form-surface { padding: 20px; }
}
