@charset "UTF8";

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'LexendDeca', sans-serif;
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 500px;
    background-color: var(--bg);
    overflow: hidden;
}

/*-------------HERO SECTION------------*/
#heroSection {
    background-color: var(--primario);
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    background-image: url('/images/login-bg.jpg');
    background-size: 130%;
    background-position: -80px bottom;
    background-repeat: no-repeat;
}

img {
    height: 124px;
}

#heroContent {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

#heroText {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: white;
    padding-bottom: 8px;
}

#heroText>h2 {
    font-size: 52px;
    font-weight: 900;
}

/*-------------FORM------------*/
#formSection {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

#loginForm {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

#loginTitle {
    color: var(--primario);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 16px;
    align-self: center;
}

.inputContainer {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inputContainer:first-child {
    padding-top: 16px;
}

.inputContainer>label {
    font-size: 16px;
    padding-left: 8px;
    font-weight: 600;
    text-transform: uppercase;
}

input[type=text],
input[type=password],
input[type=email] {
    font-family: 'LexendDeca', sans-serif;
    height: 42px;
    border-radius: 8px;
    border: solid 1px var(--primario);
    padding-left: 16px;
    background-color: #ffffff;
    font-size: 16px;
}

input:focus {
    outline: none;
}

.formSubmitButton {
    margin-top: 16px;
    height: 42px;
    border-radius: 16px;
    border: none;
    background-color: var(--primario);
    color: white;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: all ease-in-out 0.5s;
}

.formSubmitButton:hover {
    background-color: var(--primario_hover);
    transition: all ease-in-out 0.5s;
}

#formMessageContainer {
    width: 100%;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: -16px 0;
}

.formMessage {
    text-transform: uppercase;
    color: red;
    font-weight: 700;
    font-size: 12px;
    padding-bottom: 8px;
}
#powered{
    position: absolute;
    bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 32px;
}
/*VIEW PASSWORD*/
.view_password{
    position: absolute;
    bottom: 8px;
    right: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 24px;
    width: 24px;
    z-index: 2;
    cursor: pointer;
}
.view_password__icon{
    pointer-events: none;
    height: 100%;
    width: 18px;
}
.view_password .view_password__icon--action-show{
    display: block;
}
.view_password.visible .view_password__icon--action-show{
    display: none;
}
.view_password .view_password__icon--action-hide{
    display: none;
}
.view_password.visible .view_password__icon--action-hide{
    display: block;
}
#loginFormMobile{
    display: none;
}

/*RECUPERAR CONTRASEÑA*/

#blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    pointer-events: none;
    z-index: 4;
    transition: background 0.5s ease-in-out;
    overflow: hidden;
}

#blur.visible {
    pointer-events: all;
    background: rgba(0, 0, 0, 0.50);
    transition: background 0.5s ease-in-out;
    #blur_bombero{
        display: block;
        position: absolute;
        height: 60%;
        bottom: -10%;
        right: 80px;
    }
}
#recoverPopup{
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 464px;
    height: fit-content;
    z-index: 5;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
}
#recoverPopup.visible{
    display: flex;
    flex-direction: column;
    .formSubmitButton{
        width: 100%;
    }
    #title{
        font-weight: 600;
        font-size: 24px;
    }
    #subtitle{
        font-size: 14px;
    }
}
.recuperar{
    color: var(--primario);
    padding-top: 16px;
    cursor: pointer;
    text-align: center;
}
#message {
    display: none;
}

#message.show {
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    margin: auto;
    height: 48px;
    width: fit-content;
    border-radius: 8px;
    padding: 8px 32px;
    background: #FFF;
    display: flex;
    align-items: center;
    gap: 32px;
    z-index: 5;
    animation: showMessage 0.5s ease-in-out 1s forwards, hideMessage 0.5s ease-in-out 5s forwards;
}

@keyframes showMessage {
    to {
        top: 32px;
    }
}

@keyframes hideMessage {
    to {
        top: -100px;
    }
}

.message__icon {
    width: 32px;
    height: 32px;
}

.error .message__icon.message__icon--success {
    display: none;
}

.success .message__icon.message__icon--error {
    display: none;
}

.message__text {
    color: #000;
    font-size: 16px;
    font-weight: 600;
}
.remember{
    margin-top: -16px;
    margin-bottom: -16px;
}
/* Estilo del checkbox */
input[type="checkbox"] {
    width: 16px;
    min-width: 16px;
    height: 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: white;
    border: 2px solid var(--primario);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

/* Estilo del checkbox cuando está marcado */
input[type="checkbox"]:checked {
    background-color: var(--primario);
}

/* Estilo del checkmark cuando está marcado */
input[type="checkbox"]:checked::before {
    content: "";
    display: block;
    width: 10px;
    height: 5px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(312deg) scaleX(-1);
    position: absolute;
    left: 2px;
    top: 1px;
}
@media only screen and (max-width: 1000px) {
    body {
        grid-template-columns: 1fr;
    }

    #loginForm {
        display: none;
    }
    #loginFormMobile {
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex-grow: 1;
        width: 80%;
        max-width: 500px;
        gap: 32px;
        padding-bottom: 32px;
        color: #fff;
        .formSubmitButton {
            margin-top: 16px;
            height: 42px;
            border-radius: 16px;
            border: 1px solid #fff;
            background-color: var(--primario);
            color: white;
            text-transform: uppercase;
            font-weight: 700;
            cursor: pointer;
            transition: all ease-in-out 0.5s;
        }
        .formMessage{
            color: #fff;
        }
    }
    #formSection{
        height: 64px;
    }
    #heroSection{
        height: calc(100vh - 164px);
        padding-top: 100px;
        flex-direction: column;
        background-size: 130%;
        background-position: -50px bottom;
    }
    img {
        height: 80px;
    }
    
    
    #heroText>h2 {
        font-size: 32px;
        font-weight: 900;
    }
    .recuperar{
        color: #fff;
    }
}
@media only screen and (max-width: 500px) {
    #recoverPopup{
        width: 232px;
    }
    #recoverPopup.visible {
        #title {
            font-size: 20px;
        }
        #subtitle{
            font-size: 12px;
        }
    }
}