/* ============================================================
   SNVS Honduras – Login v6.0  |  Paleta institucional aprobada
   Scoped under .login-page
   ============================================================ */

/* == 1. Tokens ============================================== */
:root {
    --snvs-navy:        #06245A;
    --snvs-navy-soft:   #153B6F;
    --snvs-teal:        #00A7B8;
    --snvs-teal-dark:   #008C9A;
    --snvs-teal-light:  #DDF7FA;
    --snvs-page-bg:     #F7FCFD;
    --snvs-white:       #FFFFFF;
    --snvs-gray-300:    #D5E1E7;
    --snvs-gray-500:    #6B7C8F;
    --snvs-gray-700:    #334155;
    --snvs-footer:      #008D9A;
    --snvs-shadow:      rgba(6,36,90,0.12);
    --snvs-radius-card: 24px;
    --snvs-radius-inp:  10px;
    --snvs-radius-btn:  12px;
}

/* == 2. Reset html/body ===================================== */
html,
body.login-page {
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
}

body.login-page {
    /* Gradiente CSS que replica el fondo del mockup aprobado.
       Si se agrega ~/Content/images/login/bg-login-abstract.png
       reemplaza el gradiente con:
         background-image: url("../images/login/bg-login-abstract.png");
         background-size: cover; background-position: center center;        */
    background-color: var(--snvs-page-bg) !important;
    background-image: url("../images/bg-login-abstract.png") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
    color: var(--snvs-gray-700) !important;
}

/* == 3. Stretching: .login-page ? form ? UpdatePanel ======= */
.login-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.login-page #form1 {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Div wrapper del UpdatePanel */
.login-page #form1 > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* == 4. .login-bg: fondo transparente (hereda del body) ===== */
.login-bg {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* == 5. Wrapper central ===================================== */
.login-wrapper {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    display: flex;
    align-items: center !important;
    justify-content: center;
    padding: 12px 32px !important;
    min-height: 0;
}

/* == 6. Grid dos columnas =================================== */
.login-grid {
    display: grid;
    grid-template-columns: 1fr 452px;
    gap: 52px;
    width: 100%;
    max-width: 1200px;
    align-items: center;
}

/* ============================================================
   7. PANEL IZQUIERDO
   ============================================================ */
.login-brand-panel {
    color: var(--snvs-navy);
    display: flex;
    flex-direction: column;
    position: relative;          /* scope para el mapa absoluto */
    overflow: visible;
    min-height: 480px;
}

.login-brand-header {
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.login-brand-logo {
    height: 115px;
    width: auto;
    object-fit: contain;
    background: none;
    border: none;
    box-shadow: none;
    filter: drop-shadow(0 2px 8px rgba(6,36,90,0.14));
    display: block;
}

.login-brand-headline {
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
}

.login-brand-title {
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1.13;
    color: var(--snvs-navy);
    letter-spacing: -0.4px;
    text-shadow: none;
    margin: 0 0 8px;
}

.login-brand-acronym {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--snvs-teal);
    margin: 0 0 11px;
}

.login-brand-divider {
    width: 40px;
    height: 3px;
    background: var(--snvs-teal);
    border-radius: 2px;
    margin-bottom: 12px;
}

.login-brand-description {
    font-size: 0.91rem;
    color: var(--snvs-gray-700);
    line-height: 1.6;
    margin: 0;
}

/* Mapa – capa visual decorativa, fuera del flujo normal.
   NOTA ASSET: si el PNG tiene espacio transparente excesivo alrededor
   del mapa real, recortar el asset aumentará el tamaño percibido sin
   necesidad de más escala CSS.                                       */
.login-map-wrapper {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -44%);
    width: 110%;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-map-illustration {
    width: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    display: block;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    outline: none !important;
    filter: drop-shadow(0 2px 14px rgba(0,167,184,0.18));
    opacity: 0.82;
    transform: scale(1.25);
    transform-origin: center center;
    mix-blend-mode: multiply;
    -webkit-mix-blend-mode: multiply;
}

/* Tarjetas de características — z-index:2 para quedar sobre el mapa */
.login-feature-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    position: relative;
    z-index: 2;
}

.login-feature-card {
    background: rgba(255,255,255,0.80);
    border: 1px solid rgba(0,167,184,0.13);
    border-radius: 14px;
    padding: 14px 8px 12px;
    text-align: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px var(--snvs-shadow);
    transition: background 0.2s, transform 0.18s, box-shadow 0.18s;
}

.login-feature-card:hover {
    background: rgba(255,255,255,0.96);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px var(--snvs-shadow);
}

.fc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(221,247,250,0.90);
    border: 1.5px solid rgba(0,167,184,0.22);
    margin: 0 auto 8px;
    flex-shrink: 0;
}

.fc-icon svg {
    stroke: var(--snvs-teal);
    display: block;
    stroke-width: 1.8;
    width: 22px;
    height: 22px;
}

.fc-label {
    font-size: 0.71rem;
    color: var(--snvs-navy);
    line-height: 1.35;
    font-weight: 600;
    display: block;
    margin-top: 0;
}

/* ============================================================
   8. PANEL DERECHO – tarjeta de login
   ============================================================ */
.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form-card {
    background: var(--snvs-white);
    border-radius: var(--snvs-radius-card);
    box-shadow: 0 20px 48px rgba(6,36,90,0.11),
                0 2px 10px rgba(0,167,184,0.06);
    padding: 34px 38px 28px;
    width: 100%;
    max-width: 452px;
    text-align: center;
    border: 1px solid rgba(0,167,184,0.10);
}

/* Icono candado */
.login-form-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--snvs-teal-light);
    border: 2px solid var(--snvs-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.login-form-icon-wrap svg { stroke: var(--snvs-teal); }

.login-form-welcome {
    font-size: 0.72rem;
    color: var(--snvs-gray-500);
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    font-weight: 500;
}

.login-form-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--snvs-navy);
    line-height: 1.18;
    margin: 0 0 5px;
    letter-spacing: -0.2px;
}

.login-form-acronym {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--snvs-teal);
    margin: 0 0 5px;
}

.login-form-subtitle {
    font-size: 0.78rem;
    color: var(--snvs-gray-500);
    margin: 0 0 20px;
    line-height: 1.5;
}

/* Campos */
.login-field-group {
    margin-bottom: 14px;
    text-align: left;
}

.login-field-label {
    font-size: 0.77rem;
    font-weight: 600;
    color: var(--snvs-gray-700);
    display: block;
    margin-bottom: 5px;
}

.login-field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.login-input-wrap {
    position: relative;
}

.login-input-icon {
    position: absolute;
    left: 13px;
    top: 0;
    bottom: 0;
    height: 44px;
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 20;   /* above dxeEmptyTextValue (z-index:1) */
}

.login-input-icon svg {
    stroke: var(--snvs-gray-500);
    display: block;
    flex-shrink: 0;
}

/* ???????????????????????????????????????????????????????????????
   DevExpress ASPxTextBox – Native="true"  – TODOS LOS CASOS

   CASO A – DX renderiza tabla contenedora (tema clásico):
     <span class="login-input dxeTextBoxSys">
       <table class="dxeTextBox dxeBase dxeTextBox_THEME">
         <tr><td class="dxeTextBoxArea dxeTextBoxArea_THEME">
           <input class="dxeEditArea dxeEditArea_THEME" />
         </td></tr></table>
     </span>

   CASO B – DX aplica CssClass directamente al input (tema Native/Bootstrap):
     <input type="text" class="login-input dxeEditArea dxeEditArea_THEME" />

   CASO C – DX renderiza span sin tabla:
     <span class="login-input dxeTextBoxSys">
       <input class="dxeEditArea dxeEditArea_THEME" />
     </span>

   Selectores [class*="..."] cubren cualquier sufijo de tema DX.
   ??????????????????????????????????????????????????????????????? */

/* ?? Shared mixin (variables locales para claridad) ??????????? */
/* Valores clave: h=44px, pad-left=42px (espacio para ícono 13px+16px+gap) */

/* ?? CASO A y C: outer span contenedor ????????????????????????? */
span.login-input,
.login-input-wrap > span.login-input {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    background-image: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    line-height: normal !important;
}

/* ?? Tabla interna DX – reset completo contra cualquier tema ??? */
.login-input table,
.login-input table[class] {
    width: 100% !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    border: none !important;
    border-image: none !important;
    background: transparent !important;
    background-image: none !important;
    table-layout: fixed !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    outline: none !important;
}

/* ?? TD interna DX – reset completo ???????????????????????????? */
.login-input td,
.login-input td[class] {
    padding: 0 !important;
    border: none !important;
    border-image: none !important;
    background: transparent !important;
    background-image: none !important;
    vertical-align: middle !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    outline: none !important;
}

/* ?? INPUT VISUAL — Aplica al input hijo (Caso A y C) ?????????? */
.login-input input,
.login-input input[class] {
    display: block !important;
    width: 100% !important;
    height: 44px !important;
    line-height: 44px !important;
    padding: 0 14px 0 42px !important;
    border: 1.5px solid #D5E1E7 !important;
    border-radius: 10px !important;
    border-image: none !important;
    font-size: 0.875rem !important;
    color: #334155 !important;
    background: #ffffff !important;
    background-image: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
    font-family: 'Segoe UI', system-ui, sans-serif !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

/* ?? INPUT VISUAL — CASO B: CssClass en el input directamente ?? */
input.login-input,
input[class*="dxeEditArea"].login-input,
.login-input-wrap > input {
    display: block !important;
    width: 100% !important;
    height: 44px !important;
    line-height: 44px !important;
    padding: 0 14px 0 42px !important;
    border: 1.5px solid #D5E1E7 !important;
    border-radius: 10px !important;
    border-image: none !important;
    font-size: 0.875rem !important;
    color: #334155 !important;
    background: #ffffff !important;
    background-image: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
    font-family: 'Segoe UI', system-ui, sans-serif !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

/* ?? Focus ?????????????????????????????????????????????????????? */
.login-input input:focus,
.login-input input[class]:focus,
input.login-input:focus,
.login-input-wrap > input:focus {
    border-color: #00A7B8 !important;
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: 0 0 0 3px rgba(0,167,184,0.14) !important;
    outline: none !important;
}

/* ?? Placeholder nativo ???????????????????????????????????????? */
.login-input input::placeholder,
input.login-input::placeholder {
    color: #6B7C8F !important;
    font-style: normal !important;
    opacity: 1 !important;
}

/* ?? NullText DevExpress (.dxeEmptyTextValue) ????????????????????
      DX renderiza el NullText como un span absolutamente posicionado
      dentro del outer span. Debe quedar visualmente dentro del campo,
      desplazado para no montarse con el ícono.                    */
.login-input [class*="dxeEmptyText"] {
    position: absolute !important;
    top: 0 !important;
    left: 42px !important;    /* = izquierda del ícono (13px) + ancho ícono (16px) + gap (13px) */
    right: 4px !important;
    height: 44px !important;
    line-height: 44px !important;
    color: #6B7C8F !important;
    font-style: normal !important;
    font-size: 0.875rem !important;
    font-family: 'Segoe UI', system-ui, sans-serif !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    pointer-events: none !important;
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 1 !important;
    display: block !important;
}

/* ?? Anulación por clase de tema (cualquier sufijo _THEME) ?????? */
.login-input [class*="dxeTextBox"],
.login-input [class*="dxeBase"] {
    border: none !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border-image: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    outline: none !important;
}

.login-input td[class*="dxeTextBoxArea"] {
    border: none !important;
    background: transparent !important;
    background-image: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-image: none !important;
    outline: none !important;
}

.login-input input[class*="dxeEditArea"],
.login-input-wrap input[class*="dxeEditArea"] {
    height: 44px !important;
    padding: 0 14px 0 42px !important;
    border: 1.5px solid #D5E1E7 !important;
    border-radius: 10px !important;
    border-image: none !important;
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #334155 !important;
    font-size: 0.875rem !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.login-input input[class*="dxeEditArea"]:focus,
.login-input-wrap input[class*="dxeEditArea"]:focus {
    border-color: #00A7B8 !important;
    box-shadow: 0 0 0 3px rgba(0,167,184,0.14) !important;
    background: #ffffff !important;
    background-image: none !important;
    outline: none !important;
}

/* Olvidó contraseña */
.login-forgot-link {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--snvs-teal);
    text-decoration: none;
    white-space: nowrap;
}
.login-forgot-link:hover { color: var(--snvs-navy); text-decoration: underline; }

/* Recordarme */
.login-options-row {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    text-align: left;
}
.login-options-row .custom-control-label {
    font-size: 0.80rem;
    color: var(--snvs-gray-700);
    cursor: pointer;
}

/* Botón */
.login-btn-wrap { width: 100%; margin-bottom: 0; display: block; }

/* ?? DevExpress ASPxButton ??????????????????????????????????
   Rendered HTML:
   <table id="..." class="login-button dxb dxbSystemButton">
     <tbody><tr>
       <td class="dxb_grayStyle dxbButtonSystemStyle">
         <a class="dxbButton dxbButtonSys">
           <span class="dxbButtonText dx-vam">INICIAR SESIÓN</span>
         </a>
       </td>
     </tr></tbody>
   </table>
   ??????????????????????????????????????????????????????????? */

table.login-button,
table.login-button.dxb,
table.login-button.dxbSystemButton {
    width: 100% !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

table.login-button td,
table.login-button td.dxb_grayStyle,
table.login-button td.dxbButtonSystemStyle {
    padding: 0 !important;
    border: none !important;
    background: none !important;
    height: 46px !important;
    vertical-align: middle !important;
    box-shadow: none !important;
    border-radius: var(--snvs-radius-btn) !important;
}

table.login-button a,
table.login-button a.dxbButton,
table.login-button a.dxbButtonSys {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 46px !important;
    padding: 0 24px !important;
    background: var(--snvs-teal) !important;
    color: var(--snvs-white) !important;
    border: none !important;
    border-radius: var(--snvs-radius-btn) !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 16px rgba(0,167,184,0.35), 0 1px 4px rgba(0,167,184,0.18) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: background 0.18s ease, transform 0.14s ease, box-shadow 0.18s ease !important;
    font-family: 'Segoe UI', system-ui, sans-serif !important;
    line-height: 46px !important;
    box-sizing: border-box !important;
    outline: none !important;
}

table.login-button a:hover,
table.login-button a.dxbButton:hover,
table.login-button a.dxbButtonSys:hover {
    background: var(--snvs-teal-dark) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 22px rgba(0,167,184,0.42) !important;
    color: var(--snvs-white) !important;
    text-decoration: none !important;
}

table.login-button a:active,
table.login-button a.dxbButton:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(0,167,184,0.30) !important;
}

table.login-button a span,
table.login-button a .dx-vam,
table.login-button a .dxbButtonText,
table.login-button a .dxbButtonTextHighlightColor {
    color: var(--snvs-white) !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    letter-spacing: inherit !important;
    text-transform: inherit !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

/* Errores de validación */
.login-form-card .dxvErrorText,
.login-form-card .dxv_ErrorText,
.login-form-card .dxeErrorCell {
    font-size: 0.73rem !important;
    color: #c0392b !important;
    margin-top: 3px !important;
    display: block !important;
    text-align: left !important;
    padding: 0 !important;
}

/* Nota institucional (reemplaza "Regístrese aquí") */
.login-access-note {
    font-size: 0.73rem;
    color: var(--snvs-gray-500);
    margin: 10px 0 0;
    line-height: 1.5;
    text-align: center;
}

/* Nota de seguridad */
.login-security-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--snvs-teal-light);
    border: 1px solid rgba(0,167,184,0.18);
    border-radius: 10px;
    padding: 10px 13px;
    font-size: 0.75rem;
    color: var(--snvs-navy-soft);
    line-height: 1.5;
    text-align: left;
    margin-top: 12px;
}

.security-icon { flex-shrink: 0; display: flex; align-items: center; margin-top: 1px; }
.security-icon svg { stroke: var(--snvs-teal); }

/* Suprimir NullText/EmptyText duplicado en el campo password */
body.login-page .login-password-wrap [class*="dxeEmptyText"],
body.login-page .login-password-wrap .dxeEmptyTextValue {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* ============================================================
   9. FOOTER
   ============================================================ */
.login-footer {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    background: linear-gradient(90deg, #008C9A 0%, #007C89 50%, #008C9A 100%);
    border-top: 1px solid rgba(255,255,255,0.20);
    padding: 12px 32px;
    margin: 0;
    min-height: 56px;
    box-sizing: border-box;
}

.login-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 16px;
    height: 100%;
}

.login-footer-logos {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.login-footer-logo-item img {
    height: 34px;
    width: auto;
    object-fit: contain;
    background: none;
    border: none;
    padding: 0;
    filter: brightness(0) invert(1) opacity(0.90);
    display: block;
}

.login-footer-divider-v {
    width: 1px;
    height: 26px;
    background: rgba(255,255,255,0.28);
    flex-shrink: 0;
}

.login-footer-copy {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
    line-height: 1.45;
}

.footer-copy-icon { display: flex; align-items: center; opacity: 0.50; }
.footer-copy-icon svg { stroke: rgba(255,255,255,0.78); }

.footer-links {
    display: flex;
    align-items: center;
    gap: 4px;
}
.footer-links a {
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    transition: color 0.15s, text-decoration-color 0.15s;
    text-underline-offset: 2px;
}
.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.55);
}
.footer-sep { color: rgba(255,255,255,0.28); }
        /* ============================================================
           10. Responsive (desktop)
   Los overrides móviles de alta especificidad están al final del archivo.
   ============================================================ */

/* Pantalla mediana – ajuste de columnas */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .login-grid        { grid-template-columns: 1fr 420px; gap: 36px; }
    .login-brand-title { font-size: 1.85rem; }
}

/* ============================================================
   11. OVERRIDES DE MÁXIMA ESPECIFICIDAD
   Prefijo: body.login-page garantiza que nunca afecte otros forms.
   Estas reglas son el último recurso contra temas DX o Bootstrap
   que tengan especificidad mayor que los bloques anteriores.
   ============================================================ */

/* Mapa: reset visual (sin tarjeta, sin borde, sin fondo) */
body.login-page .login-map-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}
body.login-page .login-map-wrapper * {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
body.login-page .login-map-illustration {
    display: block !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    outline: none !important;
    mix-blend-mode: multiply;
    -webkit-mix-blend-mode: multiply;
}

/* ?? Textbox: máxima especificidad (3 clases + body) ????????????
   Cubre CASO A (span > table > td > input) y
   CASO B (input.login-input directamente)                        */
body.login-page .login-input-wrap .login-input table,
body.login-page .login-input-wrap .login-input table[class] {
    border: none !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border-image: none !important;
    border-radius: 0 !important;
}

body.login-page .login-input-wrap .login-input td,
body.login-page .login-input-wrap .login-input td[class] {
    border: none !important;
    background: transparent !important;
    background-image: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-image: none !important;
    border-radius: 0 !important;
}

body.login-page .login-input-wrap .login-input input,
body.login-page .login-input-wrap .login-input input[class],
body.login-page .login-input-wrap > input {
    height: 44px !important;
    line-height: 44px !important;
    padding: 0 14px 0 42px !important;
    border: 1.5px solid #D5E1E7 !important;
    border-radius: 10px !important;
    border-image: none !important;
    background: #ffffff !important;
    background-image: none !important;
    color: #334155 !important;
    font-size: 0.875rem !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
    font-family: 'Segoe UI', system-ui, sans-serif !important;
}

body.login-page .login-input-wrap .login-input input:focus,
body.login-page .login-input-wrap .login-input input[class]:focus,
body.login-page .login-input-wrap > input:focus {
    border-color: #00A7B8 !important;
    box-shadow: 0 0 0 3px rgba(0,167,184,0.14) !important;
    background: #ffffff !important;
    background-image: none !important;
    outline: none !important;
}

/* CASO B: input con CssClass="login-input" directamente */
body.login-page .login-input-wrap > input.login-input,
body.login-page .login-input-wrap input[class*="dxeEditArea"] {
    height: 44px !important;
    padding: 0 14px 0 42px !important;
    border: 1.5px solid #D5E1E7 !important;
    border-radius: 10px !important;
    border-image: none !important;
    background: #ffffff !important;
    background-image: none !important;
    color: #334155 !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

body.login-page .login-input-wrap > input.login-input:focus,
body.login-page .login-input-wrap input[class*="dxeEditArea"]:focus {
    border-color: #00A7B8 !important;
    box-shadow: 0 0 0 3px rgba(0,167,184,0.14) !important;
    background: #ffffff !important;
    background-image: none !important;
    outline: none !important;
}

/* ?? Botón: máxima especificidad, cubre <a>, <input> y <button> ?? */
body.login-page .login-btn-wrap table.login-button td,
body.login-page .login-btn-wrap table.login-button td[class] {
    border: none !important;
    background: transparent !important;
    background-image: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-image: none !important;
    border-radius: 12px !important;
}

body.login-page .login-btn-wrap table.login-button a,
body.login-page .login-btn-wrap table.login-button a[class],
body.login-page .login-btn-wrap table.login-button [class*="dxbButton"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 46px !important;
    background: #00A7B8 !important;
    background-image: none !important;
    color: #ffffff !important;
    border: none !important;
    border-image: none !important;
    border-radius: 12px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(0,167,184,0.35) !important;
    cursor: pointer !important;
    font-family: 'Segoe UI', system-ui, sans-serif !important;
    box-sizing: border-box !important;
    outline: none !important;
    line-height: 46px !important;
    padding: 0 24px !important;
}

body.login-page .login-btn-wrap table.login-button a:hover,
body.login-page .login-btn-wrap table.login-button [class*="dxbButton"]:hover {
    background: #008C9A !important;
    background-image: none !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

body.login-page .login-btn-wrap table.login-button a span,
body.login-page .login-btn-wrap table.login-button a [class],
body.login-page .login-btn-wrap table.login-button [class*="dxbButton"] span {
    color: #ffffff !important;
    background: none !important;
    background-image: none !important;
    border: none !important;
    padding: 0 !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    text-transform: inherit !important;
    letter-spacing: inherit !important;
}

/* CASO B del botón: input[type=button] con clase login-button */
body.login-page .login-btn-wrap input[type="button"].login-button,
body.login-page .login-btn-wrap input[type="submit"].login-button,
body.login-page .login-btn-wrap table.login-button input[type="button"],
body.login-page .login-btn-wrap table.login-button input[type="submit"] {
    display: block !important;
    width: 100% !important;
    height: 46px !important;
    background: #00A7B8 !important;
    background-image: none !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 16px rgba(0,167,184,0.35) !important;
    cursor: pointer !important;
    font-family: 'Segoe UI', system-ui, sans-serif !important;
    box-sizing: border-box !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}


/* ============================================================
   FINAL PATCH — Login vertical alignment + map size
   ============================================================ */

body.login-page,
body.login-page #form1 {
    height: 100vh !important;
    min-height: 100vh !important;
    overflow: hidden !important;
}

    body.login-page .login-bg {
        height: 100vh !important;
        min-height: 100vh !important;
        display: grid !important;
        grid-template-rows: minmax(0, 1fr) auto !important;
        overflow: hidden !important;
    }

    body.login-page .login-wrapper {
        min-height: 0 !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 32px !important;
        overflow: hidden !important;
    }

    body.login-page .login-grid {
        width: 100% !important;
        max-width: 1260px !important;
        grid-template-columns: minmax(0, 1fr) 452px !important;
        gap: 56px !important;
        align-items: center !important;
        transform: translateY(-16px);
    }

    body.login-page .login-map-wrapper {
        position: absolute !important;
        z-index: 0 !important;
        pointer-events: none !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -44%) !important;
        width: 115% !important;
        margin: 0 !important;
        min-height: auto !important;
    }

    body.login-page .login-map-illustration {
        width: 100% !important;
        max-width: none !important;
        max-height: none !important;
        transform: scale(1.25) !important;
        transform-origin: center center !important;
    }

/* Ajuste para pantallas medianas */
@media (min-width: 992px) and (max-width: 1199.98px) {
    body.login-page .login-wrapper {
        padding: 0 24px !important;
    }

    body.login-page .login-grid {
        grid-template-columns: minmax(0, 1fr) 420px !important;
        gap: 36px !important;
        transform: translateY(-10px);
    }

    body.login-page .login-map-wrapper {
        position: absolute !important;
        z-index: 0 !important;
        pointer-events: none !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -44%) !important;
        width: 108% !important;
        margin: 0 !important;
        min-height: auto !important;
    }

    body.login-page .login-map-illustration {
        width: 100% !important;
        max-width: none !important;
        max-height: none !important;
        transform: scale(1.18) !important;
        transform-origin: center center !important;
    }
}

/* ============================================================
   RESPONSIVE FINAL — Alta especificidad con body.login-page.
   Deben estar al final del archivo para ganar la cascada
   sobre cualquier parche desktop de los bloques anteriores.
   ============================================================ */

@media (max-width: 991.98px) {
    body.login-page,
    body.login-page #form1 {
        height: auto !important;
        min-height: 100vh !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    body.login-page .login-bg {
        height: auto !important;
        min-height: 100vh !important;
        display: block !important;
        overflow: visible !important;
    }

    body.login-page .login-wrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: calc(100vh - 56px) !important;
        padding: 24px 16px !important;
        overflow: visible !important;
    }

    body.login-page .login-grid {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        width: 100% !important;
        max-width: 460px !important;
        gap: 0 !important;
        transform: none !important;
    }

    body.login-page .login-brand-panel {
        display: none !important;
    }

    body.login-page .login-form-panel {
        width: 100% !important;
    }

    body.login-page .login-form-card {
        width: 100% !important;
        max-width: 460px !important;
        padding: 28px 22px 24px !important;
        border-radius: 20px !important;
    }

    body.login-page .login-footer {
        padding: 10px 16px !important;
    }

    body.login-page .login-footer-inner {
        flex-direction: column !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 6px !important;
    }

    body.login-page .login-footer-copy {
        justify-content: center !important;
        text-align: center !important;
    }

    /* Mapa: oculto en móvil — el panel izquierdo ya está oculto */
    body.login-page .login-map-wrapper {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    body.login-page .login-wrapper {
        min-height: calc(100vh - 72px) !important;
        padding: 16px 12px !important;
    }

    body.login-page .login-form-card {
        max-width: 100% !important;
        padding: 24px 16px 20px !important;
        border-radius: 18px !important;
    }

    body.login-page .login-form-title {
        font-size: 1.1rem !important;
    }

    }

    /* ============================================================
       AJUSTES FINOS v6.1 — Logo, mapa y legibilidad
       Encapsulado bajo body.login-page. Al final del archivo para
       ganar la cascada sobre cualquier bloque anterior.
       ============================================================ */

    /* ?? Logo en pantallas de poca altura ??????????????????????????? */
    @media (min-width: 992px) and (max-height: 760px) {
        body.login-page .login-brand-logo {
            height: 90px !important;
        }
    }

    /* ?? Mapa e integración visual en escritorio ?????????????????????? */
    @media (min-width: 992px) {
        /* Mapa: más abajo y ligeramente a la izquierda para no quedar
           debajo de la tarjeta de login, con opacidad reducida para
           que no compita con el texto ni con el formulario.          */
        body.login-page .login-map-wrapper {
            left: 47% !important;
            top: 58% !important;
            width: 920px !important;
            /* width fijo en px en lugar de % para que no dependa del
               ancho del panel y sea predecible en todas las resoluciones */
            transform: translate(-50%, -50%) !important;
        }

        body.login-page .login-map-illustration {
            transform: scale(1.22) !important;
            opacity: 0.72 !important;
        }

        /* Cards: margen superior suficiente para que queden debajo
           del mapa sin que el mapa las empuje (el mapa está fuera
           del flujo, este margen compensa la altura visual).         */
        body.login-page .login-feature-row {
            margin-top: 310px !important;
        }

        /* Texto izquierdo: z-index reforzado para garantizar
           legibilidad sobre cualquier capa del mapa.                 */
        body.login-page .login-brand-header,
        body.login-page .login-brand-headline {
            position: relative !important;
            z-index: 3 !important;
        }

        body.login-page .login-feature-row {
            position: relative !important;
            z-index: 3 !important;
        }
    }

    /* ?? Ajuste para pantallas medianas (1200–1366px) ???????????????? */
    @media (min-width: 992px) and (max-width: 1366px) {
        body.login-page .login-map-wrapper {
            width: 760px !important;
        }

        body.login-page .login-feature-row {
            margin-top: 250px !important;
        }
    }

/* ============================================================
   FOOTER — Alta especificidad (body.login-page)
   Al final del archivo para superar cualquier override previo.
   ============================================================ */

/* Escritorio */
@media (min-width: 992px) {
    body.login-page .login-footer {
        background: linear-gradient(90deg, #008C9A 0%, #007C89 50%, #008C9A 100%) !important;
        border-top: 1px solid rgba(255,255,255,0.20) !important;
        padding: 12px 32px !important;
        min-height: 56px !important;
    }

    body.login-page .login-footer-inner {
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    body.login-page .login-footer-logo-item img {
        height: 34px !important;
        filter: brightness(0) invert(1) opacity(0.90) !important;
    }

    body.login-page .login-footer-logos {
        gap: 18px !important;
    }

    body.login-page .login-footer-copy {
        font-size: 0.72rem !important;
        color: rgba(255,255,255,0.85) !important;
        justify-content: flex-end !important;
    }

    body.login-page .footer-links a {
        color: rgba(255,255,255,0.78) !important;
    }

    body.login-page .footer-links a:hover {
        color: #ffffff !important;
    }
}

/* Móvil — footer apilado */
@media (max-width: 991.98px) {
    body.login-page .login-footer {
        padding: 12px 16px !important;
        min-height: auto !important;
    }

    body.login-page .login-footer-inner {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
    }

    body.login-page .login-footer-logos {
        justify-content: center !important;
    }

    body.login-page .login-footer-copy {
        justify-content: center !important;
        text-align: center !important;
        font-size: 0.70rem !important;
        flex-wrap: wrap !important;
    }

    body.login-page .footer-links {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
}

