/**
 * Form Validation Styles
 * Styling for form validation error states
 */

/* Input field with error */
.form-input-error {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

.form-input-error:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

/* Error message below field */
.form-field-error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 4px;
    display: block;
    font-weight: 500;
}

/* Form error container (general form errors) */
.form-error {
    background: #f8d7da;
    color: #721c24;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid #f5c6cb;
    display: none;
}

.form-error.show {
    display: block;
}

/* Success message */
.form-success {
    background: #d4edda;
    color: #155724;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid #c3e6cb;
    display: none;
}

.form-success.show {
    display: block;
}

/* Validation animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.form-input-error {
    animation: shake 0.3s ease;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .form-field-error-message {
        font-size: 0.8rem;
    }
    
    .form-error,
    .form-success {
        padding: 12px;
    }
}
