@import url('https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400..700;1,400..700&family=Chakra+Petch:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

body {
    background-image: url(../img/fondologin.png) !important;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
    overflow-x: hidden;
}

.container {
    background-color: rgba(255, 255, 255, 0.7);
    width: 30%;
    height: auto;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

div.text-center{
    display: flex;
    flex-direction: row;
}
h1.h4{
    width: 80%;
    height: auto;
    font-family: "Chakra Petch", sans-serif;
    font-size: 40px;
    text-align: left;
    color: rgb(87, 87, 87);
}

#logo{
    width: 20%;
    height: auto;
}

form{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

form input{
    width: 300px;
    height: 40px;
    border: 2px solid rgb(131, 131, 131);
    border-radius: 30px;
    color: rgb(105, 105, 105);
    text-align: center;
    font-size: 15px;
    margin-top: 10%;
}

form input::placeholder {
    text-align: center;
    color: gray; /* Puedes cambiar el color si es necesario */
}

form input:focus {
    border-color: rgb(167, 35, 35); /* Cambia el color del borde cuando el input está enfocado */
    outline: none; /* Elimina el borde del enfoque por defecto en algunos navegadores */
}

form button {
    background-color: gray;
    color: white;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 15px;
    width: 150px;
    font-weight: 700;
    height: 30px;
    border-radius: 30px;
    border: 0;
    transition: background-color 0.3s ease-in-out; /* Animación suave */
    animation: backgroundAnimation 3s infinite alternate ease-in-out; /* Animación suave y continua */
}

form button:hover {
    background-color: rgb(255, 0, 0); /* Cambia el color cuando el cursor esté encima */
    cursor: pointer; /* Cambia el cursor a una mano */
}

@keyframes backgroundAnimation {
    0% {
        background-color: gray;
    }
    50% {
        background-color: rgb(255, 0, 0); /* Cambia el color de fondo a rojo */
    }
    100% {
        background-color: gray;
    }
}



form .check {
    display: inline-block; /* Cambié de flex a inline-block */
    align-items: center; /* Alinea el checkbox y el label verticalmente */
    color: rgb(70, 70, 70);
    font-size: 15px;
    font-family: "Chakra Petch", sans-serif;
    margin-top: -50px;
}

form .check input {
    width: 15px;
    height: auto;
    vertical-align: middle; /* Alinea el checkbox verticalmente */
    margin-bottom: 8%;
}

form .check label {
    text-align: center;
    display: inline-block; /* El label ya está en línea con el checkbox */
    vertical-align: middle; /* Alinea el texto del label con el checkbox */
}


@media (max-width: 700px){
    .container{
        width: 80%;
        height: auto;
        margin-bottom: 25%;
   
    }

    div.text-center{
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    h1.h4{
        width: 100%;
        height: auto;
        text-align: center;
    }

    #logo{
        width: 10%;
        height: auto;
        margin-top: -15px;
        margin-bottom: 10px;
    }

    form{
        align-items: center;
    }

    form input{
        width: 300px;
        height: 50px;
    }
}