/* Error Message Styling */
.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.input-error {
    border-color: #dc3545 !important;
    background-color: #fff5f5;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.error-border {
    border: 2px solid #dc3545;
    padding: 10px;
    border-radius: 4px;
    background-color: #fff5f5;
    margin-bottom: 10px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optional: Success state styling */
.input-success {
    border-color: #28a745 !important;
    background-color: #f5fff5;
}

/* Form control general styling */
.form-control {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
