body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.logo-container img {
    width: 120px;
}

.logo-container h1 {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
}


.caixa {
    border-radius: 15px;
    background-color: #fff;
    padding: 30px;
    box-shadow: 0 6px 12px var(--shadow-medium);
}

.card-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
}


.form-label {
    display: inline-block;
    color: rgb(0, 0, 0);
    padding: 6px 12px;
    border-radius: 10px;
    font-weight: 500;
    margin-bottom: 6px;
    font-weight: bold;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    background-color: #fdfdfd;
    transition: border-color 0.3s, box-shadow 0.3s;
}

form input:focus,
form select:focus,
form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}


.invalid-feedback,
.field-errors p {
    color: red;
    font-size: 14px;
    margin-top: 4px;
}

button[type="submit"] {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 30px;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: var(--secondary-color);
}


.messages {
    list-style: none;
    padding: 0;
}

.messages li {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    font-weight: 500;
}

.messages li.success {
    background-color: #d4edda;
    color: #155724;
}

.messages li.error {
    background-color: #f8d7da;
    color: #721c24;
}

.text-center small a {
    color: var(--primary-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .logo-container h1 {
        font-size: 24px;
    }

    .card-title {
        font-size: 20px;
    }
}

#password-strength-feedback small {
    color: #dc3545; /* Vermelho (inválido) por padrão */
    transition: color 0.3s;
}
#password-strength-feedback small.valid {
    color: #198754; /* Verde (válido) */
    text-decoration: line-through;
}


.password-wrapper {
    position: relative;
    width: 100%; /* Garante que o wrapper ocupe a largura total */
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    padding-right: 2.5rem; /* Espaço para o ícone */
}

.password-toggle {
    position: absolute;
    right: 10px; /* Ajuste a posição horizontal */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d; /* Cor do ícone */
    font-size: 1.2em; /* Tamanho do ícone */
    line-height: 1; /* Alinha o ícone verticalmente */
}

.password-toggle:hover {
    color: #007bff; /* Cor ao passar o mouse */
}

@media (max-width: 480px) {
    .form-label {
        font-size: 14px;
        padding: 5px 10px;
    }

    .card-title {
        font-size: 18px;
    }

    button[type="submit"] {
        font-size: 15px;
        padding: 10px;
    }
}
