h1{
    margin-top: 7px;
    font-size: 26px;
}

form{
    position: relative;
    display: inline-block;
}

#form-block{
    font-family:  'Nunito Sans';
    margin: auto;
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: left;
    display: flex;
    justify-content: center;
    background-color: rgb(245, 245, 245);
    width: 30%;
    height: 30%;
    padding: 15px;
    padding-bottom: 22px;
    flex-direction: column;
  
}

#separation-line{
    border: 1px solid #ccc;
    width: 100%;
    margin-top: 9px;
    margin-bottom: 10px;
}

#register-form{
    display: flex;
    flex-direction: column;
    gap: 3px;  
}

#register-form input[type=text], select {
    width: 100%;
    padding: 11px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

#id_password{
    width: 100%;
    padding: 11px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

#id_password1{
    width: 100%;
    padding: 11px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

#id_password2{
    width: 100%;
    padding: 11px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

#submit-button{
    background-color: rgb(130, 130, 195);
    border: none;
    width: 40%;
    height: 55px;
    margin: 0 auto;
    display: block;
    border-radius: 3px;
    color: white;
    font-size: 18px;
    transition-duration: 0.4s;
    margin-top: 22px;
}

#register_path{
    margin-top: 17px;
    text-align: center;
    color: rgb(51, 102, 187);
}

#submit-button:hover{
    background-color: rgb(165, 165, 227);
    color: white;
}

.text-danger{
    color: rgb(236, 10, 10);
    font-weight: 400;

}

#login-error {
    color:  rgb(145, 13, 13);
    margin: 0 auto;
    display: block;
    background-color: rgb(249, 161, 161);
    padding: 9px;
    border-style: solid;
    border-color: rgb(237, 128, 128);
    border-radius: 3px;
    border-width: 1px;
    margin-top: 20px;
}

#password_recover{
    margin-top: 17px;
    text-align: center;
    color: rgb(51, 102, 187);
}
  /*--------------------TOOLTIP---------------------*/


/* Estilos para el tooltip */
.tooltiptext {
    visibility: hidden;
    width: 370px;
    background-color: #f9f9f9;
    color: #333;
    text-align: left;
    border-radius: 5px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    top: 80%;
    left: 105%; /* Posiciona a la derecha del input */
    transform: translateY(-50%); /* Centra verticalmente */
    opacity: 0;
    transition: opacity 0.3s;
    line-height: 1.6;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    font-weight: 400;
}

/* Mostrar el tooltip cuando el input con id "password" tenga el foco o sea hover */
#id_password1:focus + .tooltiptext,
#id_password1:hover + .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Estilos para el tooltip */
.tooltiptext_username {
    visibility: hidden;
    width: 370px;
    background-color: #f9f9f9;
    color: #333;
    text-align: left;
    border-radius: 5px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    top: 5%;
    left: 105%; /* Posiciona a la derecha del input */
    transform: translateY(-50%); /* Centra verticalmente */
    opacity: 0;
    transition: opacity 0.3s;
    line-height: 1.6;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* Mostrar el tooltip cuando el input con id "password" tenga el foco o sea hover */
#id_username:focus + .tooltiptext_username,
#id_username:hover + .tooltiptext_username {
    visibility: visible;
    opacity: 1;
}

.tooltiptext-phone{
    visibility: hidden;
    width: 370px;
    background-color: #f9f9f9;
    color: #333;
    text-align: left;
    border-radius: 5px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    top: 63%;
    left: 105%; /* Posiciona a la derecha del input */
    transform: translateY(-50%); /* Centra verticalmente */
    opacity: 0;
    transition: opacity 0.3s;
    line-height: 1.6;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    font-weight: 400;
}

#id_phone:focus + .tooltiptext-phone,
#id_phone:hover + .tooltiptext-phone {
    visibility: visible;
    opacity: 1;
}


.tooltiptext_rut{
    visibility: hidden;
    width: 370px;
    background-color: #f9f9f9;
    color: #333;
    text-align: left;
    border-radius: 5px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 105%; /* Posiciona a la derecha del input */
    transform: translateY(-50%); /* Centra verticalmente */
    opacity: 0;
    transition: opacity 0.3s;
    line-height: 1.6;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

#id_rut:focus + .tooltiptext_rut,
#id_rut:hover + .tooltiptext_rut {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 1024px) {
    
    #form-block{
        font-family:  'Nunito Sans';
        margin: auto;
        margin-top: 30px;
        margin-bottom: 30px;
        text-align: left;
        display: flex;
        justify-content: center;
        background-color: rgb(245, 245, 245);
        width: 50%;
        height: 30%;
        padding: 15px;
        padding-bottom: 22px;
        flex-direction: column;
    
    }

    /* Estilos para el tooltip */
    .tooltiptext {
        top: 90%;
        left: 30%; /* Posiciona a la derecha del input */
    }

    /* Estilos para el tooltip */
    .tooltiptext_username {
        top: 15%;
        left: 30%; /* Posiciona a la derecha del input */

    }

    .tooltiptext-phone{
        top: 70%;
        left: 30%; /* Posiciona a la derecha del input */
    }

    .tooltiptext_rut{
        top: 58%;
        left: 30%; /* Posiciona a la derecha del input */
    }
}
@media (max-width: 630px) {
    /* Estilos para el tooltip */
    .tooltiptext {
        top: 59%;
        left: 0%; /* Posiciona a la derecha del input */
    }

    /* Estilos para el tooltip */
    .tooltiptext_username {
        top: 13%;
        left: 0%; /* Posiciona a la derecha del input */
        width: 420px;

    }

    .tooltiptext-phone{
        top: 69%;
        left: 0%; /* Posiciona a la derecha del input */
    }

    .tooltiptext_rut{
        top: 58%;
        left: 0%; /* Posiciona a la derecha del input */
    }
}
@media (max-width: 585px) {
    /* Estilos para el tooltip */
    .tooltiptext {
        top: 59%;
        left: -25%; /* Posiciona a la derecha del input */
    }

    /* Estilos para el tooltip */
    .tooltiptext_username {
        top: 13%;
        left: -25%; /* Posiciona a la derecha del input */
        width: 420px;

    }

    .tooltiptext-phone{
        top: 69%;
        left: -25%; /* Posiciona a la derecha del input */
    }

    .tooltiptext_rut{
        top: 58%;
        left: -25%; /* Posiciona a la derecha del input */
    }
}
@media (max-width: 510px) {
    #form-block{
        width: 75%;
    }
    .tooltiptext {
        top: 57%;
        left: -5%; /* Posiciona a la derecha del input */
        font-size: 14px;
        width: 300px;
    }

    /* Estilos para el tooltip */
    .tooltiptext_username {
        top: -1%;
        left: 5%; /* Posiciona a la derecha del input */
        width: 300px;
        font-size: 14px;
    }

    .tooltiptext-phone{
        top: 69%;
        left: 5%; /* Posiciona a la derecha del input */
        font-size: 14px;
        width: 290px;

    }

    .tooltiptext_rut{
        top: 58%;
        left: 5%; /* Posiciona a la derecha del input */
        font-size: 14px;
        width: 290px;
    }
    #submit-button{
        width: 60%;
    }
}
@media (max-width: 460px) {
    #form-block{
        width: 75%;
    }
    .tooltiptext {
        top: 57%;
        left: -20%; /* Posiciona a la derecha del input */
        font-size: 14px;
        width: 300px;
    }

    /* Estilos para el tooltip */
    .tooltiptext_username {
        top: -1%;
        left: -18%; /* Posiciona a la derecha del input */
        width: 300px;
        font-size: 14px;
    }

    .tooltiptext-phone{
        top: 69%;
        left: -20%; /* Posiciona a la derecha del input */
        font-size: 14px;
        width: 290px;
    }

    .tooltiptext_rut{
        top: 58%;
        left: -15%; /* Posiciona a la derecha del input */
        font-size: 14px;
        width: 290px;
    }
    #submit-button{
        width: 60%;
    }
}
