.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-control {
    width: 100%;
    padding-right: 40px; /* Add space for the toggle button */
}

.password-input-wrapper-cadastro {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper-cadastro .form-control {
    width: 100%;
    padding-right: 40px; /* Add space for the toggle button */
}

.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.toggle-password img {
    width: 20px;
    height: 20px;
}

.error-message {
    color: #c00f0f;
    font-size: 12px;
    margin-top: 5px;
}

.form-control.error {
    border: 1px solid #c00f0f; /* Cor laranja/vermelha */
    position: relative;
}

/* Estilo para o contêiner com erro */
.password-input-wrapper-cadastro.error {
    border: 1px solid #c00f0f; /* Cor laranja/vermelha */
    position: relative; /* Necessário para posicionar o tooltip */
    border-radius: 4px;
}

/* Estilo para o tooltip */
.password-input-wrapper-cadastro.error:hover::after {
    content: attr(data-error);
    position: absolute;
    background-color: #fff;
    border: 1px solid #c00f0f;
    color: #333;
    padding: 5px;
    font-size: 12px;
    width: max-content;
    max-width: 200px;
    top: calc(100% + 5px); /* Posiciona abaixo do campo */
    left: 0;
    z-index: 100;
    white-space: pre-wrap;
    word-wrap: break-word;
    border-radius: 4px;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.2);
}

/* Triângulo do tooltip */
.password-input-wrapper-cadastro.error:hover::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 10px; /* Ajuste conforme necessário */
    border-width: 5px;
    border-style: solid;
    border-color: #c00f0f transparent transparent transparent;
    z-index: 101;
}

.input-wrapper.error {
    border: 1px solid #c00f0f; /* Cor laranja/vermelha */
    position: relative; /* Necessário para posicionar o tooltip */
    border-radius: 4px;
}

/* Estilo para o tooltip */
.input-wrapper.error:hover::after {
    content: attr(data-error);
    position: absolute;
    background-color: #fff;
    border: 1px solid #c00f0f;
    color: #333;
    padding: 5px;
    font-size: 12px;
    width: max-content;
    max-width: 200px;
    top: calc(100% + 5px); /* Posiciona abaixo do campo */
    left: 0;
    z-index: 100;
    white-space: pre-wrap;
    word-wrap: break-word;
    border-radius: 4px;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.2);
}

/* Triângulo do tooltip */
.input-wrapper.error:hover::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 10px; /* Ajuste conforme necessário */
    border-width: 5px;
    border-style: solid;
    border-color: #c00f0f transparent transparent transparent;
    z-index: 101;
}

#btnVoltarLogin {
    margin-top: -30px;
}