
/* ==========================================
   COMBOS EKSEL
   LOGIN PROFESIONAL
   AZUL - BLANCO - ROJO
========================================== */

.login-pagina {
    padding-top: 55px;
    padding-bottom: 85px;
}

/* ==========================================
   DISTRIBUCION PRINCIPAL
========================================== */

.login-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1050px;
    min-height: 580px;
    margin: 0 auto;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(7, 59, 131, 0.10);
}

/* ==========================================
   PANEL IZQUIERDO
========================================== */

.login-presentacion {
    display: flex;
    align-items: center;
    background: linear-gradient(
        145deg,
        #073b83 0%,
        #1259aa 65%,
        #0a3670 100%
    );
    color: #ffffff;
    padding: 55px 45px;
    position: relative;
    overflow: hidden;
}

.login-presentacion::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    top: -130px;
    right: -140px;
    border: 45px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.login-presentacion::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    bottom: -130px;
    left: -90px;
    background: rgba(229, 43, 57, 0.17);
    border-radius: 50%;
    pointer-events: none;
}

.login-presentacion-contenido {
    position: relative;
    z-index: 1;
    width: 100%;
}

.login-marca {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 30px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.login-icono-principal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin: 40px 0 25px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 24px;
    font-size: 50px;
}

.login-presentacion h1 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(28px, 3vw, 37px);
    font-weight: 900;
    line-height: 1.25;
}

.login-presentacion-contenido > p {
    margin: 0;
    color: #e0ecff;
    font-size: 14px;
    line-height: 1.9;
}

.login-beneficios {
    display: grid;
    gap: 16px;
    margin-top: 35px;
}

.login-beneficio {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.login-beneficio > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 50%;
    color: #073b83;
    font-size: 13px;
    font-weight: 900;
}

.login-beneficio p {
    margin: 0;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.7;
}

/* ==========================================
   PANEL DERECHO
========================================== */

.login-formulario-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 48px 48px;
}

.login-formulario-encabezado {
    margin-bottom: 30px;
}

.login-formulario-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    background: #eaf2ff;
    border-radius: 15px;
    font-size: 29px;
}

.login-formulario-etiqueta {
    display: block;
    margin-bottom: 9px;
    color: #e52b39;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.4px;
}

.login-formulario-encabezado h2 {
    margin: 0 0 12px;
    color: #073b83;
    font-size: 29px;
    font-weight: 900;
}

.login-formulario-encabezado p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.8;
}

/* ==========================================
   FORMULARIO
========================================== */

.login-formulario {
    display: grid;
    gap: 21px;
}

.login-campo {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
}

.login-campo label {
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.login-campo input,
.login-campo select,
.login-campo textarea {
    width: 100%;
    min-height: 49px;
    padding: 12px 15px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    color: #0f172a;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.login-campo input:focus,
.login-campo select:focus,
.login-campo textarea:focus {
    border-color: #1259aa;
    box-shadow: 0 0 0 4px rgba(18, 89, 170, 0.12);
}

.login-campo input::placeholder {
    color: #94a3b8;
}

.login-ayuda {
    color: #64748b;
    font-size: 11px;
    line-height: 1.6;
}

/* ==========================================
   ERRORES
========================================== */

.login-error-general {
    padding: 13px 15px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #b91c1c;
    font-size: 12px;
    line-height: 1.7;
}

.login-error-general p {
    margin: 0;
}

.login-error-general p + p {
    margin-top: 7px;
}

.login-error {
    margin: 0;
    color: #b91c1c;
    font-size: 12px;
    line-height: 1.6;
}

/* ==========================================
   BOTON INICIAR SESION
========================================== */

.login-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin-top: 5px;
    padding: 13px 20px;
    background: #073b83;
    border: 1px solid #073b83;
    border-radius: 10px;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.2s ease,
                transform 0.2s ease;
}

.login-boton:hover {
    background: #e52b39;
    border-color: #e52b39;
    transform: translateY(-2px);
}

/* ==========================================
   REGISTRO Y VOLVER
========================================== */

.login-registro {
    margin-top: 28px;
    padding: 23px 0 0;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.login-registro p {
    margin: 0 0 10px;
    color: #64748b;
    font-size: 13px;
}

.login-registro a {
    color: #073b83;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.login-registro a:hover {
    color: #e52b39;
    text-decoration: underline;
}

.login-volver {
    margin-top: 24px;
    text-align: center;
}

.login-volver a {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.login-volver a:hover {
    color: #073b83;
}

/* ==========================================
   TABLETS
========================================== */

@media (max-width: 900px) {

    .login-layout {
        grid-template-columns: 1fr 1fr;
    }

    .login-presentacion {
        padding: 35px 28px;
    }

    .login-formulario-panel {
        padding: 35px 28px;
    }

    .login-presentacion h1 {
        font-size: 28px;
    }
}

/* ==========================================
   CELULARES
========================================== */

@media (max-width: 650px) {

    .login-pagina {
        padding-top: 25px;
        padding-bottom: 50px;
    }

    .login-layout {
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 15px;
    }

    .login-presentacion {
        padding: 30px 24px;
    }

    .login-icono-principal {
        width: 65px;
        height: 65px;
        margin: 20px 0 17px;
        border-radius: 16px;
        font-size: 34px;
    }

    .login-presentacion h1 {
        font-size: 27px;
    }

    .login-presentacion-contenido > p {
        font-size: 13px;
    }

    .login-beneficios {
        gap: 10px;
        margin-top: 22px;
    }

    .login-beneficio p {
        font-size: 12px;
    }

    .login-formulario-panel {
        padding: 32px 23px;
    }

    .login-formulario-encabezado h2 {
        font-size: 26px;
    }
}

/* ==========================================
   ACCESIBILIDAD
========================================== */

.login-boton:focus-visible,
.login-registro a:focus-visible,
.login-volver a:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    .login-boton,
    .login-campo input,
    .login-campo select,
    .login-campo textarea {
        transition: none;
    }
}
