/* ─── Login Abydos ─────────────────────────────────────────────────────────── */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    min-height: 100vh;
    margin: 0;
    line-height: 1.6;
}
.brand-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 19px;
}
    .brand-wrapper .logo {
        width: auto;
        height: auto;
        max-width: 300px;
        max-height: 135px;
    }

    /* Espacio reservado mientras se consulta el logo de la empresa.
       INVISIBLE a propósito: se probó con un recuadro gris y se veía como un hueco
       roto. Aquí solo se reserva el alto para que la tarjeta no dé un salto brusco
       al llegar la imagen; el aviso de que está cargando lo da el texto
       "Conectando…" que aparece justo debajo. */
    .brand-wrapper .logo-cargando {
        width: 1px;
        height: 96px;
        background: none;
    }
.login-card {
    border: 0;
    border-radius: 27.5px;
    box-shadow: 0 10px 30px 0 rgba(172,168,168,.43);
    overflow: hidden;
}
.login-card-img {
    border-radius: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.login-card .card-body {
    padding: 65px 60px 60px;
    max-width: 476px;
}
@media (max-width: 422px) {
    .login-card .card-body { padding: 35px 24px; }
}
.login-card-description {
    font-size: 25px;
    color: #15528e;
    font-weight: normal;
    margin-bottom: 23px;
}
.login-card-footer-nav a {
    font-size: 14px;
    color: #919aa3;
    margin-right: 8px;
    text-decoration: none;
}
.forgot-password-link {
    font-size: 14px;
    color: #919aa3;
    text-decoration: none;
}

/* Aviso del equipo compartido, bajo el botón de ingreso (hueco del 20-nov-2026). */
.aby-login-aviso-compartido {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: #6d7b8a;
    text-align: left;
}

/* ─── Wrapper de inputs con icono ───────────────────────────────────────── */
.login-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

/* ─── Iconos flotantes sobre los inputs ─────────────────────────────────── */
.login-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #b0b0b0;
    z-index: 10;
    width: 20px;
    text-align: center;
    transition: color .3s ease;
    pointer-events: none;
}
.login-icon.icon-clickable {
    pointer-events: auto;
    cursor: pointer;
}
.icon-left  { left: 14px; }
.icon-right { right: 14px; }
.icon-right:hover, .active-eye { color: #355F89; }

/* ─── Input nativo — campos de login ────────────────────────────────────── */
.aby-login-input {
    display: block;
    width: 100%;
    height: 30px;
    padding: 0 14px 0 45px;
    font-size: 12px;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
    outline: none;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.aby-login-input::placeholder { color: #b0b0b0; }
.aby-login-input:focus {
    border-color: #355F89;
    box-shadow: 0 0 0 0.18rem rgba(53,95,137,.22);
}

/* ─── Botón principal (azul corporativo) — sombras idénticas al tema DevExAby ── */
.btn-abydos {
    background-color: #15528e;
    border: 1px solid #15528e;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 20px;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    /* sombra normal: 0 2px 5px + 0 2px 10px — igual que .dxbButton_DevExAby */
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);
    transition: box-shadow .3s ease-out, background-color .3s ease-out, color .3s ease-out, border-color .3s ease-out;
}
    .btn-abydos:hover {
        /* hover: fondo blanco, texto azul, sombra elevada — igual que .dxbButtonHover_DevExAby */
        background-color: #fff;
        border-color: #15528e;
        color: #15528e;
        box-shadow: 0 5px 6px 0 rgba(0,0,0,0.2);
    }
    .btn-abydos:focus {
        background-color: #15528e;
        border-color: #15528e;
        color: #fff;
        box-shadow: 0 5px 6px 0 rgba(0,0,0,0.2);
        outline: none;
    }
/* Inactivo: el mismo de site.css (gris claro, sin sombra). Se deja aquí igual porque esta
   hoja también la leen las pantallas previas al ingreso. */
.btn-abydos:disabled,
.btn-abydos:disabled:hover {
    background-color: #f1f3f6;
    border-color: #dde3ea;
    color: #aab3bd;
    box-shadow: none;
    cursor: not-allowed;
}

/* ─── Modal overlay CSS (igual que el legado) ────────────────────────────── */
.aby-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.aby-modal-box {
    background: #fff;
    border-radius: 8px;
    padding: 28px 32px 24px;
    width: 440px;
    max-width: 94vw;
    box-shadow: 0 6px 32px rgba(0,0,0,.2);
    position: relative;
}
.aby-modal-box.modal-lg {
    width: 720px;
    max-height: 82vh;
    overflow-y: auto;
    padding-right: 24px;
}
.aby-modal-title {
    font-size: 22px;
    color: #15528e;
    font-weight: normal;
    margin: 0 0 12px;
}
.aby-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 20px;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.aby-modal-close:hover { color: #333; }

/* ─── Botones de modales ─────────────────────────────────────────────────── */
.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}
.btn-modal { min-width: 110px; }
/* Cancelar = SECUNDARIO (Opción A, 2026-09-26): contorno azul sobre blanco, como
   .btn-outline-secondary en site.css. Antes era relleno gris #6c757d, el mismo gris del
   botón principal INACTIVO: junto a un «Guardar» deshabilitado parecían los dos apagados. */
.btn-cancel-modal {
    min-width: 110px;
    background-color: #fff;
    border: 1px solid #355F89;
    color: #15528e;
    font-size: 14px;
    padding: 7px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.btn-cancel-modal:hover {
    background-color: #EBF2FA;
    color: #15528e;
}

/* ─── Popup DevExpress (empresa/sucursal): cabecera azul corporativo ──────── */
.dxbl-popup-header,
.dxbl-modal-header {
    background-color: #355F89 !important;
    color: #fff !important;
}
    .dxbl-popup-header .dxbl-popup-header-text,
    .dxbl-modal-header .dxbl-popup-header-text {
        color: #fff !important;
        font-size: 16px;
        font-weight: 600;
    }
    .dxbl-popup-header .dxbl-btn,
    .dxbl-modal-header .dxbl-btn { color: #fff !important; }

/* ─── Errores de validación ──────────────────────────────────────────────── */
.field-error {
    display: block;
    margin-top: -14px;
    margin-bottom: 8px;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer {
    text-align: center;
    padding: 5px 0;
    color: #555;
    font-size: 12px;
    height: 24px;
    position: relative;
    bottom: 4px;
    width: 100%;
}

/* ─── Selector de idioma ─────────────────────────────────────────────────── */
.language-selector { text-align: right; margin-bottom: 10px; }

/* ─── Página de mantenimiento (diseño EXACTO del legado Mantenimiento.aspx) ───
   Fondo tipo parallax (mini-profile-bg-01.jpg) + caja negra translúcida alineada
   a la derecha (ml-auto/mr-0), texto blanco centrado, footer fijo abajo.
   Réplica de #tmWelcome / .tm-bg-black-transparent / .tm-brand-container-inner /
   .tm-brand-container / .tm-welcome-title / .tm-brand-description de templatemo-style.css. */
.mant-hero {                                   /* #tmWelcome */
    min-height: 100vh;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background-image: url('../images/mini-profile-bg-01.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.mant-container {                              /* .container-fluid */
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}
.mant-card {                                   /* ml-auto mr-0 tm-bg-black-transparent tm-brand-container-inner + tm-brand-container */
    margin-left: auto;                         /* ml-auto → caja pegada a la derecha */
    margin-right: 0;
    max-width: 580px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: center;
    padding: 75px 110px;
}
.mant-title {                                  /* .tm-welcome-title (h1) */
    margin: 0 0 40px;
    font-weight: 600;
    border: none;                              /* sin borde/línea heredada de estilos globales */
    outline: none;
}
.mant-desc {                                   /* .tm-brand-description */
    font-size: 1.4rem;
    margin-bottom: .5rem;
}
/* "Intentar ahora": píldora ámbar — llamativa pero discreta sobre la caja oscura. */
.mant-link {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 24px;
    color: #12314e;
    background-color: #ffc857;
    border: none;
    border-radius: 22px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
    transition: all .25s ease;
}
.mant-link:hover {
    color: #12314e;
    background-color: #ffd885;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .32);
}
.mant-link:disabled { opacity: .7; cursor: default; transform: none; box-shadow: none; }
.mant-link i { margin-right: 6px; }
/* «Ingreso de administración» (H#45): candado tenue en la esquina derecha del pie, sin texto
   (el nombre va en title/aria-label). A la vista del que lo sabe, no del que espera. */
.mant-admin {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, .35);
    font-size: .75rem;
    text-decoration: none;
}
.mant-admin:hover { color: rgba(255, 255, 255, .8); }
.mant-footer {                                 /* footer legado */
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 100%;
    padding: 5px 0;
    color: #fff;
    text-align: center;
    font-size: 12px;
    z-index: 1000;
}
@media (max-width: 767px) {
    .mant-card { padding: 50px 28px; margin: 0 auto; max-width: 92%; }
}

/* ─── Popup empresa/sucursal ─────────────────────────────────────────────── */
.emp-popup-body {
    padding: 8px 4px 4px;
}
.emp-popup-admin-note {
    background: #eef4fb;
    border: 1px solid #cfe0f2;
    border-left: 4px solid #355F89;
    color: #15528e;
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.4;
}
.emp-popup-field {
    margin-bottom: 18px;
}
.emp-popup-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #15528e;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
}
.emp-popup-icon {
    margin-right: 5px;
    opacity: .75;
}
.emp-popup-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid #eee;
}
.emp-popup-btn-ok     { min-width: 110px; }
.emp-popup-btn-cancel { min-width: 110px; }

/* Marca de campo requerido (homólogo del RequiredMark "*" del legado) */
.aby-required {
    color: #d9534f;
    font-weight: 700;
}

/* ── Patrón de campos (numéricos / fechas / solo lectura) ──────────────────── */
/* Campo numérico: el valor siempre alineado a la derecha. */
.aby-num input {
    text-align: right;
}
/* Campo de solo lectura / deshabilitado: color silver (homólogo del
   ReadOnlyStyle BackColor="#DEDEDE" ForeColor="#A6A6A6" del legado). */
.aby-ro input,
.aby-ro textarea {
    color: #a6a6a6 !important;
    background-color: #ededed !important;
}

/* Memo deshabilitado: fondo gris (homólogo del DisabledStyle BackColor="#f8f8f8") */
.aby-memo-disabled .dxbl-textarea,
.aby-memo-disabled textarea {
    background-color: #f8f8f8;
    color: #999;
}

/* ── Popup "Avisos Importantes" (homólogo de AlertasPopup.ascx del legado) ── */
.aby-popup-alertas .dxbl-popup-header {
    background-color: #355F89;
    color: #fff;
    font-weight: bold;
    height: 45px;
}
.aby-alertas-body {
    max-height: 300px;
    overflow-y: auto;
}
.alerta-item-container {
    display: flex;
    align-items: flex-start;
    padding: 10px 5px;
    transition: background-color 0.3s;
}
.alerta-icon-circle {
    min-width: 38px;
    height: 38px;
    background-color: #f0f4f8;
    color: #355F89;
    border: 2px solid #355F89;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
    font-size: 18px;
}
.alerta-content-text { flex: 1; }
.alerta-titulo-text {
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 3px;
    display: block;
}
.alerta-mensaje-text {
    color: #666;
    font-size: 0.95em;
    line-height: 1.1;
    margin: 0;
}
.salto-corto {
    display: block;
    height: 2px;
    content: "";
}


/* ─── Contenido de términos/política ─────────────────────────────────────── */
.terms-content h1 { font-size: 1.4em; color: #333; margin-bottom: 8px; }
.terms-content h2 { font-size: 1.1em; color: #333; margin-top: 18px; }
.terms-content p, .terms-content li { color: #555; font-size: 13px; }
.terms-content ul { list-style: disc; padding-left: 20px; }

/* ─── Verificacion 2FA — modal ──────────────────────────────────────────── */
.twofa-box {
    background: #fff;
    border-radius: 10px;
    padding: 32px 36px 28px;
    width: 420px;
    max-width: 94vw;
    box-shadow: 0 6px 32px rgba(0,0,0,.22);
    position: relative;
    text-align: center;
}
.twofa-title {
    font-size: 20px;
    color: #15528e;
    font-weight: 600;
    margin: 0 0 10px;
}
.twofa-title i { margin-right: 8px; }
.twofa-desc {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}
.twofa-desc.small { font-size: 12px; color: #888; }
.twofa-input-wrapper { margin-bottom: 16px; }
.twofa-code-input {
    text-align: center;
    font-size: 20px;
    letter-spacing: 6px;
    font-weight: 700;
    padding-left: 14px !important;
}
/* Casilla «Registrar este equipo» (equipo registrado, 3-dic-2026): una línea bajo el código. */
.twofa-equipo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: -4px 0 12px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
}
.twofa-equipo input { margin: 0; accent-color: #355F89; }
.twofa-equipo-nombre { margin-bottom: 12px; font-size: 13px; padding-left: 14px !important; }
.twofa-link-row { margin-top: 10px; }
.twofa-split-row {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}
.twofa-link {
    font-size: 13px;
    color: #15528e;
    text-decoration: none;
    cursor: pointer;
}
.twofa-link:hover { text-decoration: underline; }
.twofa-link-cancel { color: #999; }
.twofa-cancel-row { border-top: 1px solid #f0f0f0; padding-top: 12px; margin-top: 12px; }

/* ─── RecuperarClave — indicador de fortaleza de contraseña ─────────────── */
.rc-strength-wrapper { margin-bottom: 12px; }
.rc-strength-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}
.rc-strength-bar span {
    flex: 1;
    height: 7px;
    border-radius: 4px;
    background: #e0e0e0;
    transition: background .25s ease;
}
/* Nivel 1 — rojo */
.strength-1 span:nth-child(-n+1) { background: #f44336; }
/* Nivel 2 — naranja */
.strength-2 span:nth-child(-n+2) { background: #ff9800; }
/* Nivel 3 — amarillo */
.strength-3 span:nth-child(-n+3) { background: #ffc107; }
/* Nivel 4 — verde claro */
.strength-4 span:nth-child(-n+4) { background: #8bc34a; }
/* Nivel 5 — verde */
.strength-5 span:nth-child(-n+5) { background: #4caf50; }

.rc-strength-label { font-size: 12px; color: #888; }
.rc-strength-1 { color: #f44336; }
.rc-strength-2 { color: #ff9800; }
.rc-strength-3 { color: #ffc107; }
.rc-strength-4 { color: #8bc34a; }
.rc-strength-5 { color: #4caf50; font-weight: 600; }
.rc-policy-text { font-size: 12px; color: #888; display: block; margin-bottom: 8px; }

/* ─── Configurar 2FA ───────────────────────────────────────────────────────── */
/* Compactar el contenedor del QR (homólogo de los estilos inline de Configurar2FA.aspx) */
.qr-container {
    text-align: center;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px dashed #ced4da;
    border-radius: 5px;
    margin-bottom: 15px;
}
.manual-key-text {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    color: #495057;
    font-size: 0.85rem;
    letter-spacing: -0.5px;
    word-break: break-all;
}
.step-instruction {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 15px;
}
/* Icono dentro del input del código (queda sobre el control) */
.input-icon { position: relative; }
.input-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 10;
}
.input-icon .aby-login-input { padding-left: 34px; }

/* ── Medidor de contraseña: ESTRELLAS + requisitos en vivo ────────────────────
   Reemplaza la barra segmentada (.rc-strength-bar) por 5 estrellas, que comunican
   mejor porque tienen una escala reconocible — es lo que hacía el legado y lo que
   el usuario eligió (opción A, 2026-07-28).

   Lo usan las DOS pantallas que fijan contraseña: el popup Cambio de contraseña y
   Recuperar clave. Si se ajusta el estándar, se ajusta AQUÍ y aplica a ambas. */
.rc-stars           { text-align: right; margin: 2px 0 12px; }
.rc-stars i         { font-size: 19px; color: #d8e0e8; margin-left: 3px; }
.rc-stars i.on      { color: #355F89; }
.rc-stars-label     { font-size: 12.5px; color: #4a5a6e; margin-top: 5px; }

/* Requisitos de la política: se marcan solos mientras se escribe. El legado los
   mostraba como texto fijo; marcarlos en vivo dice además QUÉ falta. */
.rc-req             { list-style: none; margin: 0 0 14px; padding: 0;
                      display: flex; flex-direction: column; gap: 5px; }
.rc-req li          { font-size: 12.5px; color: #7b8ca3;
                      display: flex; align-items: center; gap: 7px; }
.rc-req li i        { font-size: 11px; color: #c3d1e0; }
.rc-req li.ok       { color: #1a6340; }
.rc-req li.ok i     { color: #1a6340; }

/* Recuperar clave: la tarjeta debe presentarse ENTERA en la ventana, igual que el login.
   Lleva medidor + reglas + 3 campos, y con el espaciado del login quedaba ~110 px más
   alta que una ventana de portátil: se cortaban el botón y el pie. Se compacta SOLO esta
   página (clase en su card-body); el popup Cambio de contraseña usa el mismo medidor y
   no se toca. Mismo logo, mismos campos y mismo botón que el login. */
.login-card .card-body.rc-compacta { padding-top: 35px; padding-bottom: 35px; }
.rc-compacta .language-selector         { margin-bottom: 0; }
.rc-compacta .login-card-description    { margin-bottom: 10px; }
.rc-compacta .rc-stars                  { display: flex; align-items: center; gap: 3px; margin: 0 0 10px; }
.rc-compacta .rc-stars-label            { order: -1; margin: 0 auto 0 0; min-width: 0; text-align: left; line-height: 1.3; }
.rc-compacta .rc-req                    { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin-bottom: 12px; }
.rc-compacta .login-input-wrapper       { margin-bottom: 14px; }
.rc-compacta .form-group.mb-4           { margin-bottom: 18px !important; }


/* ── Centrado vertical que NO recorta cuando la pantalla es baja ─────────────
   Las pantallas pre-login (login, recuperar clave, configurar 2FA) centran su
   contenido con `d-flex align-items-center min-vh-100`. Eso se ve bien mientras
   el contenido quepa, pero si NO cabe —monitor bajo, zoom alto, ventana a media
   altura— `align-items:center` desborda por ARRIBA tanto como por abajo, y la
   parte de arriba queda INALCANZABLE: el scroll no llega a espacio negativo, así
   que el logo y el título simplemente no se pueden ver.

   Se centra con margen automático en lugar de con align-items. En flexbox un
   margen `auto` en el eje transversal absorbe el espacio libre ANTES de aplicar
   la alineación, así que:
     · si SOBRA espacio  → los márgenes se reparten → queda centrado, idéntico a hoy.
     · si NO cabe        → los márgenes valen 0 → arranca arriba y la página scrollea
                           normalmente, sin recortar nada.
   La barra de scroll aparece SOLO cuando hace falta; no se fuerza `overflow` ni
   se fija ninguna altura. No hace falta !important: por especificación, el margen
   `auto` manda sobre `align-items`. */
main.min-vh-100.d-flex > .container {
    margin-block: auto;
}

/* Sesión ya abierta en este navegador (opción C, 17-nov): aviso + Continuar / Cerrar y entrar con otra cuenta. */
.aby-login-sesion-abierta { margin-top: 6px; }
.aby-login-sesion-abierta p { font-size: .9rem; color: #15528e; margin-bottom: 14px; }
