/* Form Loading States and Animations */

/* Spinner for loading buttons */
.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.15em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
    width: 0.875rem;
    height: 0.875rem;
    border-width: 0.125em;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* Form message styles */
.form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Button loading state */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Form input focus enhancement */
.me-form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    transition: box-shadow 0.2s ease;
}

/* Input validation states */
.me-form-control.is-invalid {
    border-color: #dc3545;
}

.me-form-control.is-valid {
    border-color: #28a745;
}

/* Smooth transitions for all form elements */
.me-form-control,
.me-btn-primary {
    transition: all 0.2s ease;
}
