/* =========================================================
   TITO FLOREN - LOGIN
   PRIMERA PRUEBA VISUAL
   ========================================================= */

* {
    box-sizing: border-box;
}

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

body.pagina-login {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: #fff;
    background: #020814;
}


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

#login-fondo {
    position: relative;

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

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 6vh 20px 40px;

    background-image:
        linear-gradient(
            to bottom,
            rgba(0, 8, 22, 0.05),
            rgba(0, 5, 15, 0.20)
        ),
        url("/fotos-sistema/fondologin.png");

    background-position: center center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}


/* =========================================================
   LOGO
   ========================================================= */

#login-header {
    width: 100%;

    display: flex;
    justify-content: center;

    margin-bottom: 28px;
}

#login-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

#login-logo img {
    display: block;

    width: min(36vw, 560px);
    min-width: 300px;
    height: auto;

    object-fit: contain;

    filter:
        drop-shadow(0 7px 0 rgba(0, 0, 0, 0.75))
        drop-shadow(0 0 12px rgba(0, 0, 0, 0.8));
}


/* =========================================================
   CONTENEDOR CENTRAL
   ========================================================= */

#login-main {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: flex-start;
}


/* =========================================================
   PANEL LOGIN
   ========================================================= */

#login-panel {
    width: min(590px, 92vw);

    padding: 54px 58px 62px;

    background:
        linear-gradient(
            145deg,
            rgba(4, 28, 47, 0.94),
            rgba(4, 8, 20, 0.93)
        );

    border: 1px solid #00bfff;
    border-radius: 30px;

    box-shadow:
        0 0 0 1px rgba(84, 38, 255, 0.30),
        0 22px 70px rgba(0, 0, 0, 0.60),
        inset 0 0 40px rgba(0, 120, 255, 0.045);
}

#login-panel h1 {
    margin: 0 0 42px;

    text-align: center;

    font-size: 35px;
    line-height: 1.1;
    font-weight: 800;
}


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

#login-usuario,
#login-password {
    width: 100%;
    height: 64px;

    display: flex;
    align-items: center;

    margin-bottom: 21px;

    padding: 0 18px;

    background: rgba(2, 9, 22, 0.72);

    border: 1px solid rgba(120, 165, 215, 0.60);
    border-radius: 12px;

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

#login-usuario:focus-within,
#login-password:focus-within {
    border-color: #00bfff;

    box-shadow:
        0 0 0 2px rgba(0, 174, 255, 0.10),
        0 0 20px rgba(0, 174, 255, 0.12);
}

.login-icono {
    flex: 0 0 auto;

    width: 38px;

    font-size: 22px;
    line-height: 1;

    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#login-usuario input,
#login-password input {
    flex: 1;

    min-width: 0;
    height: 100%;

    padding: 0 8px;

    border: 0;
    outline: 0;

    background: transparent;
    color: white;

    font-size: 17px;
}

#login-usuario input::placeholder,
#login-password input::placeholder {
    color: #a5acbd;
    opacity: 1;
}


/* =========================================================
   MOSTRAR CONTRASEÑA
   ========================================================= */

#mostrar-password {
    flex: 0 0 42px;

    height: 42px;

    padding: 0;

    border: 0;
    outline: 0;

    cursor: pointer;

    background: transparent;
    color: #e7efff;

    font-size: 20px;
}


/* =========================================================
   OPCIONES
   ========================================================= */

#login-opciones {
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin: 28px 0 31px;
}

#login-recordarme {
    display: flex;
    align-items: center;

    gap: 10px;

    font-size: 16px;

    cursor: pointer;
}

#login-recordarme input {
    width: 23px;
    height: 23px;

    margin: 0;

    accent-color: #079cff;
}

#login-olvidaste {
    color: #00aaff;

    text-decoration: none;

    font-size: 16px;
}

#login-olvidaste:hover {
    text-decoration: underline;
}


/* =========================================================
   BOTON
   ========================================================= */

#login-boton-contenedor {
    width: 100%;
}

#boton-login {
    width: 100%;
    height: 62px;

    border: 0;
    border-radius: 32px;

    cursor: pointer;

    background:
        linear-gradient(
            90deg,
            #09b8ff 0%,
            #0578ff 100%
        );

    color: white;

    font-size: 20px;
    font-weight: 700;

    box-shadow:
        0 10px 30px rgba(0, 113, 255, 0.18);

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

#boton-login:hover {
    filter: brightness(1.08);

    box-shadow:
        0 12px 35px rgba(0, 145, 255, 0.30);

    transform: translateY(-1px);
}

#boton-login:active {
    transform: translateY(1px);
}

#boton-login:disabled {
    opacity: 0.65;
    cursor: wait;
}


/* =========================================================
   PANTALLAS MEDIAS
   ========================================================= */

@media (max-width: 900px) {

    #login-fondo {
        padding-top: 5vh;
    }

    #login-logo img {
        width: min(60vw, 480px);
    }

}


/* =========================================================
   MOVIL
   ========================================================= */

@media (max-width: 600px) {

    #login-fondo {
        justify-content: flex-start;

        padding:
            35px
            16px
            35px;

        background-position: center center;
    }

    #login-header {
        margin-bottom: 24px;
    }

    #login-logo img {
        width: 78vw;
        min-width: 0;
        max-width: 380px;
    }

    #login-panel {
        width: 100%;

        padding:
            36px
            22px
            40px;

        border-radius: 24px;
    }

    #login-panel h1 {
        margin-bottom: 32px;

        font-size: 29px;
    }

    #login-usuario,
    #login-password {
        height: 58px;
    }

    #login-opciones {
        align-items: flex-start;

        flex-direction: column;

        gap: 16px;

        margin-top: 22px;
    }

    #boton-login {
        height: 58px;
    }

}


/* =========================================================
   PANTALLAS BAJAS
   ========================================================= */

@media (max-height: 760px) and (min-width: 601px) {

    #login-fondo {
        padding-top: 22px;
    }

    #login-header {
        margin-bottom: 15px;
    }

    #login-logo img {
        max-width: 400px;
    }

    #login-panel {
        padding:
            32px
            50px
            36px;
    }

    #login-panel h1 {
        margin-bottom: 28px;
    }

    #login-opciones {
        margin:
            20px
            0
            24px;
    }

}

/* =========================================================
   AJUSTE POSICION LOGIN - BAJAR DEBAJO DEL LOGO
   ========================================================= */

#login-main {
    margin-top: 70px;
}

@media (max-width: 900px) {
    #login-main {
        margin-top: 55px;
    }
}

@media (max-width: 600px) {
    #login-main {
        margin-top: 35px;
    }
}


/* AJUSTE FINAL - BAJAR FORMULARIO 20PX MAS */
#login-main {
    margin-top: 90px;
}

@media (max-width: 900px) {
    #login-main {
        margin-top: 75px;
    }
}

@media (max-width: 600px) {
    #login-main {
        margin-top: 55px;
    }
}
