@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

.login-container{
    height: 100%;

    display: grid;
    place-content: center;

    background-image: url(../imgs/huerta.svg);
    background-size: cover;

    font-family: "Inter", serif;

.back-to-login {
    position: absolute;
    top: 70px; /* Ajusta este valor para bajar el botón */
    left: 20px;
    font-size: 16px;
    font-weight: bold;
}

.back-to-login a {
    display: inline-block;
    padding: 10px 15px;
    background-color: #007bff;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}

.back-to-login a:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.back-to-login a:active {
    background-color: #004494;
    transform: scale(1);
}


    .login-box{
        width: 457px;
        height: 462px;

        padding: 2rem;

        border: 1px solid gray;
        border-radius: 8px;

        background-color: #EEEEEE;

        @media (width < 410px) {
            width: 360px;
        }

        @media (width < 470px) {
            width: 400px;
        }

        .login-header{

            h2{
                margin-bottom: 41px;

                color: #666666;
                font-size: 16px;
                font-weight: 500;
            }

            h1{
                margin-bottom: 78px;
            }

        }

        hr{
            margin-bottom: 8px;
        }

        #error_container{
            width: 80%;
            height: 2rem;

            margin: auto;

            background-color: var(--bg-color);

            display: none;
            place-content: center;
        }

        #error_container.visible{
            display: grid;
        }

        .login-fields{

            .login-form{

                display: flex;
                flex-wrap: wrap;

                justify-content: center;

                label{
                    margin: 10px 0 8px 0;
                    width: 100%;

                    font-weight: bold;
                    font-size: 18px;
                }

                input{
                    width: 100%;
                    height: 47px;

                    padding: 1rem;

                    border: 1px solid gray;
                    border-radius: 3rem;

                    font-size: 1rem;
                }

                #submit_button{
                    margin: auto 0;

                    width: 141px;
                    height: 47px;

                    border: 1px solid gray;
                    border-radius: 16px;

                    background-color: var(--color4);

                    cursor: pointer;

                    font-size: 18px;
                    font-weight: bold;
                }

                #submit_button:hover{
                    background-color: #cdff97;;
                }

                .login-options{
                    width: 100%;

                    p{
                        margin: 1rem 0;
                        font-size: 14px;
                        font-weight: 500;

                        a{
                            text-decoration: none;
                            color: #508484;
                        }

                    }

                }

            }

        }

    }

}

