/* ============================================
   表单验证专用样式
   ============================================ */

/* 错误输入框 */
.input-error {
    border-color: #dc3545 !important;
    background-color: #fff9fa !important;
}

/* 字段错误提示 */
.field-error {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #dc3545;
    font-size: 0.73rem;
    margin-top: 6px;
    padding: 6px 8px;
    background: #fff9fa;
    border-radius: 6px;
    border-left: 3px solid #dc3545;
    animation: slideIn 0.3s ease;
}

.field-error i {
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* 全局验证错误 */
.validation-error {
    background: #fff9fa;
    border: 1px solid #ffe3e6;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #dc3545;
    font-size: 0.85rem;
    animation: slideIn 0.3s ease;
}

.validation-error i {
    margin-right: 8px;
    color: #dc3545;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}