.field-valid {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

.field-error-highlight {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Стили для disabled option (плейсхолдера) */
select option[value=""] {
    color: #6c757d !important;
    font-style: italic;
    display: none;
    /* Скрываем из выпадающего списка */
}

select:invalid {
    color: #6c757d;
}

select:valid {
    color: #000;
}


.password-field-wrapper {
    position: relative;
    width: 100%;
}

.password-toggle:hover {
    opacity: 1 !important;
}

#id_password1,
#id_password2 {
    padding-right: 40px !important;
}

#password-requirements {
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    border-left: 3px solid #007bff;
    margin-top: 5px;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Показываем звездочки для обязательных полей */
.input-label sup {
    color: #dc3545;
    font-weight: bold;
}

/* Стили для валидных/невалидных чекбоксов */
.checkbox-valid {
    border: 2px solid #28a745 !important;
    border-radius: 4px;
    padding: 5px;
}

.checkbox-invalid {
    border: 2px solid #dc3545 !important;
    border-radius: 4px;
    padding: 5px;
}

.input-checkbox {
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.input-checkbox ::before {
    border: 1px solid #B90066 !important;
}

/* Стили для кнопки с ошибкой */
.button-error {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.button-error:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
}

/* Обычная зеленая кнопка */
/*.button-green {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}*/

.button-green:hover {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
}

.button-disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    background-color: #6c757d !important;
}

.button-disabled:hover {
    background-color: #6c757d !important;
    transform: none !important;
}

.input-group.login-box-row {
    flex-wrap: wrap !important;
}

/* Заставляем ошибку занимать всю ширину, чтобы она упала на новую строку */
.input-control-message {
    flex-basis: 100%;
    width: 100%;
    order: 10;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.2;
}

.login-box-row .input-control-message {
    /* margin-left: 30%; */
    text-align: left;
}

/* если хочется чтобы инпуты не скакали */
/* .input-group,
.login-box-input,
.filter-item {
    position: relative;
   
    // margin-bottom: 20px !important;
}

.input-control-message {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-top: 2px;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

.login-box-row {
    align-items: center;
} */