/* ============================================================
   LOGIN SISFASA
   ESTILO MODERNO
   ============================================================ */


/* ============================================================
   CONFIGURACIÓN GENERAL
   ============================================================ */

* {
    box-sizing: border-box;
}


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


body {

    margin: 0;

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

    background:
        linear-gradient(
            135deg,
            #48c6ef 0%,
            #2196e0 45%,
            #087ed4 100%
        );

    min-height: 100vh;

    overflow-x: hidden;
}


/* ============================================================
   FONDO DECORATIVO
   ============================================================ */

body::before {

    content: "";

    position: fixed;

    width: 420px;
    height: 420px;

    border-radius: 50%;

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

    top: -180px;
    left: -150px;

    pointer-events: none;
}


body::after {

    content: "";

    position: fixed;

    width: 500px;
    height: 500px;

    border-radius: 50%;

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

    bottom: -250px;
    right: -180px;

    pointer-events: none;
}


/* ============================================================
   CONTENEDOR PRINCIPAL
   ============================================================ */

.login-container {

    width: 100%;
    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px 20px;

    position: relative;

    z-index: 1;
}


/* ============================================================
   TARJETA LOGIN
   ============================================================ */

.login-card {

    width: 100%;

    max-width: 400px;

    background: #ffffff;

    border-radius: 28px;

    padding: 42px 38px 30px;

    box-shadow:
        0 25px 60px rgba(0, 70, 130, 0.28),
        0 8px 20px rgba(0, 0, 0, 0.10);

    position: relative;

    animation:
        aparecerLogin
        0.6s
        ease-out;
}


/* ============================================================
   ANIMACIÓN
   ============================================================ */

@keyframes aparecerLogin {

    from {

        opacity: 0;

        transform:
            translateY(25px)
            scale(0.97);

    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);

    }

}


/* ============================================================
   ÍCONO SUPERIOR
   ============================================================ */

.login-icon {

    width: 86px;
    height: 86px;

    margin:
        -78px
        auto
        22px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #55d3f3,
            #318fe8
        );

    border: 7px solid #ffffff;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.15);

    color: #ffffff;

    font-size: 40px;

}


/* ============================================================
   TÍTULO
   ============================================================ */

.login-title {

    text-align: center;

    margin: 0;

    color: #555;

    font-size: 27px;

    font-weight: 700;

    letter-spacing: 1px;
}


/* ============================================================
   SUBTÍTULO
   ============================================================ */

.login-subtitle {

    text-align: center;

    margin:
        6px
        0
        30px;

    color: #8b8b8b;

    font-size: 13px;

    font-weight: 600;

    letter-spacing: 2px;
}


/* ============================================================
   GRUPO DE INPUT
   ============================================================ */

.input-group-custom {

    position: relative;

    width: 100%;

    margin-bottom: 20px;
}


/* ============================================================
   ÍCONO DEL INPUT
   ============================================================ */

.input-icon {

    position: absolute;

    left: 17px;

    top: 50%;

    transform:
        translateY(-50%);

    color: #9b9b9b;

    font-size: 18px;

    z-index: 3;

    pointer-events: none;
}


/* ============================================================
   CAMPOS
   ============================================================ */

.login-input {

    width: 100%;

    height: 54px;

    border: none !important;

    border-radius: 14px !important;

    background:
        #f4f6f9 !important;

    padding:
        0
        48px
        0
        48px !important;

    color: #444;

    font-size: 15px;

    box-shadow:
        inset 4px 4px 8px rgba(0, 0, 0, 0.06),
        inset -4px -4px 8px rgba(255, 255, 255, 0.9);

    transition:
        all 0.25s ease;
}


/* ============================================================
   PLACEHOLDER
   ============================================================ */

.login-input::placeholder {

    color: #a7a7a7;

    opacity: 1;
}


/* ============================================================
   INPUT ENFOCADO
   ============================================================ */

.login-input:focus {

    outline: none !important;

    background: #ffffff !important;

    box-shadow:
        0 0 0 3px rgba(50, 170, 235, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.08);

}


/* ============================================================
   BOTÓN MOSTRAR CONTRASEÑA
   ============================================================ */

.btn-mostrar-clave {

    position: absolute;

    right: 10px;

    top: 50%;

    transform:
        translateY(-50%);

    width: 36px;
    height: 36px;

    border: none;

    background: transparent;

    color: #999;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    cursor: pointer;

    z-index: 5;

    transition:
        all 0.2s ease;
}


.btn-mostrar-clave:hover {

    color: #168ed0;

    background:
        rgba(33, 150, 243, 0.08);
}


/* ============================================================
   BOTÓN INGRESAR
   ============================================================ */

.btn-login {

    width: 100%;

    height: 54px;

    border: none;

    border-radius: 14px;

    margin-top: 8px;

    background:
        linear-gradient(
            135deg,
            #36c5ef,
            #2998e5
        );

    color: #ffffff;

    font-size: 15px;

    font-weight: 700;

    letter-spacing: 1px;

    cursor: pointer;

    box-shadow:
        0 8px 18px
        rgba(41, 152, 229, 0.30);

    transition:
        all 0.25s ease;
}


.btn-login:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 12px 25px
        rgba(41, 152, 229, 0.40);
}


.btn-login:active {

    transform:
        translateY(0);

}


/* ============================================================
   MENSAJE DE ERROR
   ============================================================ */

.mensaje-error {

    margin-top: 20px;

    padding: 12px 15px;

    border-radius: 12px;

    background:
        #fff0f0;

    border:
        1px solid #ffcaca;

    color:
        #c62828;

    font-size: 14px;

    text-align: center;

    line-height: 1.4;

}


/* ============================================================
   PIE DEL LOGIN
   ============================================================ */

.login-footer {

    text-align: center;

    margin-top: 25px;

    padding-top: 18px;

    border-top:
        1px solid #eeeeee;

    color: #999;

    font-size: 12px;

}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 576px) {

    .login-container {

        padding:
            55px
            15px
            25px;

    }


    .login-card {

        max-width: 100%;

        padding:
            38px
            24px
            25px;

        border-radius: 24px;

    }


    .login-icon {

        width: 78px;
        height: 78px;

        margin:
            -70px
            auto
            20px;

        font-size: 35px;

    }


    .login-title {

        font-size: 24px;

    }


    .login-subtitle {

        margin-bottom: 25px;

    }

}


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

@media (max-height: 650px) {

    .login-container {

        align-items: flex-start;

        padding-top: 90px;

    }

}