.form-error-message {
    display: none;
    color: #f44336;
    font-size: 0.8rem;
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 400;
    animation: slideDown 0.3s ease-out;
}

.form-error-message:empty {
    display: none !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-control.is-invalid {
    border-color: #f44336 !important;
    background-image: none;
}

.form-control.is-invalid:focus {
    border-color: #f44336 !important;
    box-shadow: 0 0 0 0.2rem rgba(244, 67, 54, 0.25) !important;
}

.form-control.is-valid {
    border-color: #4caf50 !important;
    background-image: none;
}

.form-control.is-valid:focus {
    border-color: #4caf50 !important;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25) !important;
}

.input-group .form-control.is-invalid,
.input-group .form-control.is-valid {
    z-index: 3;
}

.bmd-form-group .form-control.is-invalid ~ .bmd-label-floating,
.bmd-form-group .form-control.is-invalid ~ .bmd-label-placeholder {
    color: #f44336;
}

.bmd-form-group .form-control.is-valid ~ .bmd-label-floating,
.bmd-form-group .form-control.is-valid ~ .bmd-label-placeholder {
    color: #4caf50;
}

.form-pristine .form-control {
    border-color: #d2d2d2;
}

.form-invalid button[type="submit"]:disabled,
.form-invalid [data-submit-button]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

button[type="submit"]:disabled,
[data-submit-button]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.input-group .form-error-message {
    width: 100%;
    margin-left: 24px;
    padding: 0 24px;
}

/* .bmd-form-group .form-error-message {
    padding-left: 0;
} */

/* .form-error-message::before {
    content: "⚠ ";
    font-weight: bold;
} */

@media (max-width: 576px) {
    .form-error-message {
        font-size: 0.8rem;
    }
}
