/* ============================================================
   ENERGIZE EMS
   Login Scriptcase / Monkey Framework
   Archivo: login/css/ems_login.css
   ============================================================ */


/* ============================================================
   1. RESET / BASE
   ============================================================ */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body.ems-login-page {
    min-height: 100vh;

    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: #f7fbfd;

    background-color: #06141c;

    /*
     * El CSS está en:
     * login/css/ems_login.css
     *
     * La imagen está en:
     * login/img/ems_login_bg.png
     */
    background-image:
        linear-gradient(
            rgba(2, 15, 22, 0.32),
            rgba(2, 15, 22, 0.48)
        ),
        url("../img/ems_login_bg.png");

    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;

    padding: 30px 30px 64px;

    position: relative;
}


/* Capa general sobre el fondo */

body.ems-login-page::before {
    content: "";

    position: fixed;
    inset: 0;

    background:
        radial-gradient(
            circle at 18% 30%,
            rgba(43, 208, 107, 0.08),
            transparent 32%
        ),
        radial-gradient(
            circle at 82% 25%,
            rgba(67, 202, 235, 0.07),
            transparent 30%
        );

    pointer-events: none;
}


/* ============================================================
   2. CONTENEDOR PRINCIPAL
   ============================================================ */

.ems-login-shell {
    position: relative;
    z-index: 1;

    width: min(1120px, 95vw);
    min-height: 650px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(0, 0.92fr);

    overflow: hidden;

    border: 1px solid rgba(112, 224, 240, 0.45);

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            rgba(7, 35, 47, 0.88),
            rgba(5, 25, 35, 0.82)
        );

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.48);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}


/* ============================================================
   3. PANEL IZQUIERDO
   ============================================================ */

.ems-brand-panel {
    position: relative;

    padding: 46px;

    border-right:
        1px solid rgba(255, 255, 255, 0.10);

    overflow: hidden;
}


/* Decoración interna */

.ems-brand-overlay {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 20% 30%,
            rgba(43, 208, 107, 0.10),
            transparent 38%
        );

    pointer-events: none;
}


.ems-brand-content {
    position: relative;
    z-index: 1;

    height: 100%;

    display: flex;
    flex-direction: column;
}


/* ============================================================
   4. LOGO EMS
   ============================================================ */

.ems-brand-header {
    width: 100%;
}


.ems-brand-logo {
    display: block;

    width: min(430px, 95%);
    height: auto;

    object-fit: contain;
}


/* ============================================================
   5. MENSAJE PRINCIPAL
   ============================================================ */

.ems-brand-message {
    margin-top: 38px;
}


.ems-brand-message h1 {
    margin: 0;

    font-size: 42px;
    font-weight: 800;

    line-height: 1.10;

    letter-spacing: -1px;

    color: #ffffff;
}


.ems-brand-message h1 span {
    color: #2bd06b;
}


.ems-accent-line {
    width: 96px;
    height: 3px;

    margin: 22px 0;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            #2bd06b,
            #54e58c
        );
}


.ems-brand-message p {
    max-width: 500px;

    margin: 0;

    color: #d5e1e6;

    font-size: 18px;
    font-weight: 400;

    line-height: 1.5;
}


/* ============================================================
   6. BENEFICIOS
   ============================================================ */

.ems-benefits {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 10px;

    margin-top: 30px;
}


.ems-benefits article {
    min-height: 154px;

    padding: 16px 8px;

    text-align: center;

    border:
        1px solid rgba(255, 255, 255, 0.16);

    border-radius: 11px;

    background:
        rgba(2, 20, 29, 0.34);

    transition:
        transform 0.20s ease,
        border-color 0.20s ease,
        background 0.20s ease;
}


.ems-benefits article:hover {
    transform: translateY(-2px);

    border-color:
        rgba(43, 208, 107, 0.55);

    background:
        rgba(5, 35, 42, 0.55);
}


.ems-benefits b {
    display: block;

    margin-bottom: 12px;

    color: #3fe27d;

    font-size: 29px;
    font-weight: 500;

    line-height: 1;
}


.ems-benefits strong {
    display: block;

    margin-bottom: 7px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
}


.ems-benefits small {
    display: block;

    color: #c8d6dc;

    font-size: 11.5px;

    line-height: 1.35;
}


/* ============================================================
   7. FRASE INFERIOR PANEL IZQUIERDO
   ============================================================ */

.ems-brand-content blockquote {
    margin:
        auto
        0
        0;

    padding-top: 28px;

    color: #b7c7ce;

    font-size: 14px;

    font-style: normal;

    letter-spacing: 1px;
}


/* ============================================================
   8. ZONA DERECHA / LOGIN
   ============================================================ */

.ems-form-zone {
    position: relative;

    display: flex;

    align-items: center;

    padding:
        76px
        48px
        38px;
}


/* ============================================================
   9. HERRAMIENTAS SUPERIORES
   ============================================================ */

.ems-form-tools {
    position: absolute;

    top: 22px;
    right: 24px;

    display: flex;

    align-items: center;

    gap: 10px;
}


.ems-tool-button,
.ems-language {
    height: 38px;

    border:
        1px solid rgba(255, 255, 255, 0.22);

    border-radius: 20px;

    background:
        rgba(3, 19, 27, 0.42);

    color: #eaf4f7;
}


.ems-tool-button {
    width: 38px;

    padding: 0;

    cursor: pointer;

    font-size: 18px;

    line-height: 38px;

    text-align: center;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}


.ems-tool-button:hover {
    background:
        rgba(43, 208, 107, 0.14);

    border-color:
        rgba(43, 208, 107, 0.55);
}


.ems-language {
    display: flex;

    align-items: center;

    padding: 0 13px;

    font-size: 13px;
}


/* ============================================================
   10. TARJETA LOGIN
   ============================================================ */

.ems-login-card {
    width: 100%;

    max-width: 440px;

    margin: 0 auto;
}


/* ============================================================
   11. LOGO LOGIN
   ============================================================ */

.ems-login-emblem {
    width: 100%;

    margin-bottom: 8px;

    text-align: center;
}


.ems-login-emblem img {
    display: inline-block;

    width: 240px;

    max-width: 80%;
    max-height: 75px;

    object-fit: contain;
}


/* ============================================================
   12. CABECERA FORMULARIO
   ============================================================ */

.ems-form-header {
    margin:
        10px
        0
        28px;

    text-align: center;
}


.ems-form-header h2 {
    margin:
        0
        0
        7px;

    color: #ffffff;

    font-size: 30px;

    font-weight: 700;
}


.ems-form-header p {
    margin: 0;

    color: #cedbe0;

    font-size: 14px;

    line-height: 1.4;
}


/* ============================================================
   13. FORMULARIO
   ============================================================ */

.ems-form {
    width: 100%;
}


.ems-control {
    width: 100%;

    margin-bottom: 16px;
}


.ems-control label {
    display: block;

    margin-bottom: 7px;

    color: #dfe9ed;

    font-size: 13px;

    font-weight: 600;
}


/* ============================================================
   14. INPUTS
   ============================================================ */

.ems-input-wrap {
    position: relative;

    width: 100%;
}


.ems-input {
    width: 100% !important;
    height: 58px !important;

    margin: 0 !important;

    padding:
        0
        50px
        0
        52px !important;

    border:
        1px solid rgba(211, 236, 244, 0.67) !important;

    border-radius: 10px !important;

    outline: none !important;

    background:
        rgba(3, 18, 27, 0.62) !important;

    color: #ffffff !important;

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif !important;

    font-size: 16px !important;

    box-shadow: none !important;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.ems-input::placeholder {
    color: #91a3ac !important;

    opacity: 1;
}


.ems-input:hover {
    border-color:
        rgba(255, 255, 255, 0.82) !important;
}


.ems-input:focus {
    border-color:
        #72e9a4 !important;

    background:
        rgba(2, 16, 23, 0.78) !important;

    box-shadow:
        0 0 0 3px
        rgba(43, 208, 107, 0.11) !important;
}


/* ============================================================
   15. ICONOS INPUT
   ============================================================ */

.ems-input-icon {
    position: absolute;

    z-index: 2;

    top: 50%;
    left: 18px;

    transform:
        translateY(-50%);

    color: #c2d3d9;

    font-size: 19px;

    line-height: 1;

    pointer-events: none;
}


/* ============================================================
   16. MOSTRAR / OCULTAR CONTRASEÑA
   ============================================================ */

.ems-password-toggle {
    position: absolute;

    z-index: 3;

    top: 50%;
    right: 15px;

    transform:
        translateY(-50%);

    width: 32px;
    height: 32px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #c2d3d9;

    cursor: pointer;

    font-size: 18px;

    line-height: 32px;

    text-align: center;
}


.ems-password-toggle:hover {
    color: #ffffff;
}


/* ============================================================
   17. RECORDAR / RECUPERAR CONTRASEÑA
   ============================================================ */

.ems-form-options {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 18px;

    margin:
        10px
        0
        25px;

    color: #dce7eb;

    font-size: 13px;
}


.ems-form-options a,
.ems-retrieve a,
.ems-new-user a {
    color: #ffffff;

    text-decoration: underline;

    text-underline-offset: 3px;
}


.ems-form-options a:hover,
.ems-retrieve a:hover,
.ems-new-user a:hover {
    color: #45df7d;
}


/* Checkbox generado por Scriptcase */

.ems-form-options input[type="checkbox"] {
    accent-color: #2bd06b;
}


/* ============================================================
   18. BOTÓN INGRESAR
   ============================================================ */

.ems-submit {
    width: 100%;
}


.ems-submit-button {
    width: 100% !important;
    height: 58px !important;

    margin: 0 !important;

    padding: 0 20px !important;

    border: 0 !important;

    border-radius: 10px !important;

    background:
        linear-gradient(
            90deg,
            #24b95a,
            #2bd66b
        ) !important;

    color: #ffffff !important;

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif !important;

    font-size: 17px !important;

    font-weight: 800 !important;

    cursor: pointer !important;

    box-shadow:
        0 14px 28px
        rgba(34, 209, 103, 0.18) !important;

    transition:
        transform 0.2s ease,
        filter 0.2s ease,
        box-shadow 0.2s ease;
}


.ems-submit-button:hover {
    transform:
        translateY(-1px);

    filter:
        brightness(1.06);

    box-shadow:
        0 18px 34px
        rgba(34, 209, 103, 0.24) !important;
}


.ems-submit-button:active {
    transform:
        translateY(0);
}


/* ============================================================
   19. NUEVO USUARIO
   ============================================================ */

.ems-new-user {
    margin-top: 15px;

    text-align: center;

    color: #c8d5da;

    font-size: 13px;
}


/* ============================================================
   20. NOTA DE SEGURIDAD
   ============================================================ */

.ems-security-note {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 12px;

    margin-top: 36px;

    padding-top: 20px;

    border-top:
        1px solid rgba(255, 255, 255, 0.13);

    color: #d9e4e8;
}


.ems-security-note > span {
    color: #41df7c;

    font-size: 24px;
}


.ems-security-note strong {
    display: block;

    color: #ffffff;

    font-size: 13px;
}


.ems-security-note small {
    display: block;

    margin-top: 3px;

    color: #aebfc6;

    font-size: 11px;
}


/* ============================================================
   21. FOOTER
   ============================================================ */

.ems-page-footer {
    position: relative;

    z-index: 1;

    width: min(1120px, 95vw);

    margin:
        16px
        auto
        0;

    display: flex;

    justify-content: space-between;

    align-items: center;

    color: #d0dbe0;

    font-size: 11px;
}


.ems-version {
    display: flex;

    align-items: center;

    gap: 7px;
}


.ems-version i {
    display: inline-block;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #2bd06b;

    box-shadow:
        0 0 8px
        rgba(43, 208, 107, 0.9);
}


/* ============================================================
   22. MENSAJES SCRIPTCASE
   ============================================================ */

.alert-message {
    position: fixed;

    z-index: 99999;
}


/* ============================================================
   23. TEMA CLARO
   ============================================================ */

body.ems-login-page.ems-light::before {
    background:
        rgba(225, 238, 242, 0.12);
}


.ems-login-page.ems-light .ems-login-shell {
    color: #102631;

    background:
        linear-gradient(
            135deg,
            rgba(235, 246, 249, 0.95),
            rgba(218, 235, 240, 0.93)
        );

    border-color:
        rgba(45, 107, 125, 0.45);
}


.ems-login-page.ems-light .ems-brand-message h1,
.ems-login-page.ems-light .ems-form-header h2,
.ems-login-page.ems-light .ems-benefits strong,
.ems-login-page.ems-light .ems-security-note strong {
    color: #102631;
}


.ems-login-page.ems-light .ems-brand-message p,
.ems-login-page.ems-light .ems-form-header p,
.ems-login-page.ems-light .ems-control label {
    color: #29434d;
}


.ems-login-page.ems-light .ems-benefits article {
    color: #102631;

    background:
        rgba(255, 255, 255, 0.40);

    border-color:
        rgba(40, 89, 104, 0.20);
}


.ems-login-page.ems-light .ems-benefits small {
    color: #3d555e;
}


.ems-login-page.ems-light .ems-input {
    color: #102631 !important;

    background:
        rgba(255, 255, 255, 0.86) !important;

    border-color:
        #7798a5 !important;
}


.ems-login-page.ems-light .ems-input::placeholder {
    color: #617982 !important;
}


.ems-login-page.ems-light .ems-form-options,
.ems-login-page.ems-light .ems-new-user {
    color: #29434d;
}


.ems-login-page.ems-light .ems-form-options a,
.ems-login-page.ems-light .ems-retrieve a,
.ems-login-page.ems-light .ems-new-user a {
    color: #145b72;
}


.ems-login-page.ems-light .ems-security-note {
    border-top-color:
        rgba(20, 65, 80, 0.20);
}


/* ============================================================
   24. RESPONSIVE - TABLET
   ============================================================ */

@media (max-width: 900px) {

    body.ems-login-page {
        padding:
            18px
            18px
            70px;
    }


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


    .ems-brand-panel {
        border-right: 0;

        border-bottom:
            1px solid rgba(255, 255, 255, 0.10);
    }


    .ems-benefits {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .ems-form-zone {
        padding-top: 82px;
    }


    .ems-login-card {
        max-width: 500px;
    }


    .ems-page-footer {
        flex-direction: column;

        gap: 7px;

        text-align: center;
    }

}


/* ============================================================
   25. RESPONSIVE - MÓVIL
   ============================================================ */

@media (max-width: 520px) {

    body.ems-login-page {
        padding:
            10px
            10px
            60px;
    }


    .ems-login-shell {
        width: 100%;

        border-radius: 16px;
    }


    .ems-brand-panel,
    .ems-form-zone {
        padding-left: 22px;
        padding-right: 22px;
    }


    .ems-brand-panel {
        padding-top: 30px;
        padding-bottom: 30px;
    }


    .ems-brand-message {
        margin-top: 28px;
    }


    .ems-brand-message h1 {
        font-size: 32px;
    }


    .ems-brand-message p {
        font-size: 16px;
    }


    .ems-brand-logo {
        width: 100%;
    }


    .ems-benefits {
        grid-template-columns:
            1fr 1fr;
    }


    .ems-benefits article {
        min-height: 140px;
    }


    .ems-form-zone {
        padding-top: 78px;
        padding-bottom: 32px;
    }


    .ems-form-options {
        flex-direction: column;

        align-items: flex-start;

        gap: 10px;
    }


    .ems-page-footer {
        width: 95%;
    }

}


/* ============================================================
   26. PANTALLAS MUY PEQUEÑAS
   ============================================================ */

@media (max-width: 380px) {

    .ems-benefits {
        grid-template-columns: 1fr;
    }


    .ems-brand-message h1 {
        font-size: 28px;
    }


    .ems-form-zone {
        padding-left: 16px;
        padding-right: 16px;
    }

}