/* Inicio de sesión y recuperación: misma escala visual que el resto de la aplicación. */
.auth-page {
    box-sizing: border-box;
    margin: 0;
    padding: 16px;
    min-height: 100dvh;
    background: #f2f5f8;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    color: #203448;
}
.auth-page *, .auth-page *::before, .auth-page *::after { box-sizing: border-box; }
.auth-page #form1 { width: min(100%, 400px); margin: 0 auto; }
.auth-page #container { display: flex; align-items: center; min-height: calc(100dvh - 32px); padding: 0; }
.auth-page #content { width: 100%; max-width: 400px; }
.auth-page #formcontent,
.auth-page .card {
    max-width: 100%;
    background: #fff;
    border: 1px solid #dce5ec;
    border-color: #dce5ec;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(21, 47, 67, .09);
}
.auth-page #formcontent h1,
.auth-page .card h1 { color: #203448; font-size: clamp(24px, 5vw, 30px); }
.auth-page :is(#formcontent, .card) :where(:is(.az-textbox,.az-numerictextbox,.az-datepicker), .riSingle, :is(.az-textbox,.owc-input)) { max-width: 100%; }
.auth-page :is(#formcontent, .card) :is(.az-textbox,.owc-input) {
    min-height: 44px !important;
    padding: 8px 12px !important;
    border: 1px solid #c5d3df;
    border-radius: 8px !important;
    background: #fff;
    font: inherit;
}
.auth-page :is(#formcontent, .card) .az-button { min-height: 42px; border-radius: 8px !important; }
.auth-page :is(#buttonLogOn, #btnEnviar, #btnGuardar) {
    background: #286b9b !important;
    border-color: #286b9b !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(40, 107, 155, .15);
}
.auth-page :is(#buttonLogOn, #btnEnviar, #btnGuardar):hover { background: #20577f !important; }
.auth-page :where(a, button, input, .az-button):focus-visible {
    outline: 2px solid #286b9b;
    outline-offset: 2px;
}
/* Acceso compacto: marca y título integrados, sin filas de relleno. */
.auth-login #form1 { max-width: 380px; }
.auth-login #formcontent { padding: 28px; }
.auth-login .auth-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.auth-login .auth-logo { display: block; width: 56px; height: 56px; object-fit: contain; }
.auth-login #formcontent h1 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 650; }
.auth-login .auth-field { margin-bottom: 16px; }
.auth-login .auth-field label { display: block; margin-bottom: 6px; color: #51687a; font-size: 13px; font-weight: 600; }
.auth-login .auth-field :is(.az-textbox,.az-numerictextbox,.az-datepicker) { width: 100% !important; }
.auth-login .auth-field :is(.az-textbox,.owc-input) { width: 100% !important; height: 42px !important; min-height: 42px !important; font-size: 14px !important; }
.auth-login .auth-options { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 18px 0 20px; font-size: 12px; }
.auth-login .remember-wrap { display: flex; align-items: center; gap: 7px; }
.auth-login .remember-wrap input { width: 16px; height: 16px; margin: 0; accent-color: #286b9b; }
.auth-login .remember-label { margin: 0; color: #5d7183; cursor: pointer; }
.auth-login .login-link { color: #286b9b; text-decoration: none; font-weight: 600; }
.auth-login .login-link:hover { text-decoration: underline; }
.auth-login .auth-message:has(#lblMensaje) { margin: 0 0 16px; color: #b13d3d; font-size: 13px; }
.auth-login #buttonLogOn { width: 100% !important; min-height: 42px; padding: 10px 14px; }
.auth-login #buttonLogOn .rbText { font-size: 14px; font-weight: 600; }
@media (max-width: 480px) {
    .auth-page { padding: 12px; }
    .auth-page #container { min-height: calc(100dvh - 24px); }
    .auth-page #formcontent, .auth-page .card { padding: 24px 18px; border-radius: 14px; }
    .auth-page .card { margin: 0; }
    .auth-login #formcontent { padding: 24px 20px; }
    .auth-login .auth-field :is(.az-textbox,.owc-input) { font-size: 16px !important; }
}
