/* W39: one type scale for the signed-out pages (sign-in, register, forgot password), loaded last so it wins over
   site-auth.css and signin-v2.css. Body 15-16px, labels 14px, buttons 14-15px (40px tall; 44px on a phone), h1 24-28px,
   controls 16px (keeps iOS from zooming in). The language bar is small and quiet. */
body.auth-page { font-size: var(--ui-text-body, 16px); line-height: 1.5; }
body.auth-page .login-title,
body.auth-page .register-title { font-size: 28px; line-height: 1.2; }
body.auth-page .login-desc,
body.auth-page .register-desc,
body.auth-page .auth-sidebar .sidebar-desc { font-size: 15px; line-height: 1.5; }
body.auth-page .auth-sidebar .sidebar-title { font-size: 24px; }
body.auth-page .auth-sidebar .sidebar-feature-title { font-size: 15px; }
body.auth-page .auth-sidebar .sidebar-feature-desc,
body.auth-page .auth-sidebar .sidebar-footer-trust { font-size: 14px; }
body.auth-page .form-label { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
body.auth-page .form-control,
body.auth-page .form-select { font-size: 16px; min-height: 40px; }
body.auth-page .field-error,
body.auth-page .sso-divider,
body.auth-page .forgot-password-link,
body.auth-page .register-url-block,
body.auth-page .signin-url-block { font-size: 14px; }
body.auth-page .btn-primary,
body.auth-page .btn-secondary,
body.auth-page .btn-plain,
body.auth-page button.btn-primary { font-size: var(--type-body); min-height: var(--control-height); }

/* Language bar: a quiet header utility (UI-STANDARDS.md: header utility controls .875rem, 36px, 3:1 border). The button stays (no change on select, WCAG 3.2.2). */
.auth-language-bar { padding: 2px 4px; font-size: var(--type-meta); }
body:not(.signin-v2) .auth-language-bar { background: transparent; padding: 6px 16px; }
.auth-language-bar .language-switcher,
.auth-language-bar .language-switcher-fields { gap: 4px; }
.auth-language-bar .language-switcher-label { font-size: var(--type-meta); font-weight: 400; color: var(--si-muted, #475467); gap: 4px; }
.auth-language-bar .language-switcher-icon { width: 14px; height: 14px; }
.auth-language-bar .language-switcher-select,
.auth-language-bar .language-switcher-button {
    font-size: var(--type-meta); min-height: var(--control-height-sm); padding: 2px 8px; border: 1px solid var(--role-border-input); border-radius: var(--radius-control); font-weight: 400;
}
.auth-language-bar .language-switcher-button { background: transparent; }
.auth-language-bar .language-switcher-notice { font-size: var(--type-meta); }

@media (max-width: 575.98px) {
    body.auth-page .login-title,
    body.auth-page .register-title { font-size: 24px; }
    body.auth-page .form-control,
    body.auth-page .form-select,
    body.auth-page .btn-primary,
    body.auth-page .btn-secondary,
    body.auth-page .btn-plain { min-height: 44px; }
    .auth-language-bar .language-switcher-select,
    .auth-language-bar .language-switcher-button { min-height: 44px; }
}
