/* ===== 登录/注册表单错误提示 ===== */
.form-error {
    background: var(--danger-bg);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 18px;
    color: var(--danger);
    font-size: 14px;
    text-align: center;
    animation: fadeInUp 0.3s ease;
    font-weight: 600;
}

.form-success {
    background: var(--success-light);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 18px;
    color: var(--success);
    font-size: 14px;
    text-align: center;
    animation: fadeInUp 0.3s ease;
    font-weight: 600;
}

/* ===== 记住密码 ===== */
.remember-me {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 12px;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-strong);
    border-radius: 6px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--gradient-accent);
    border-color: var(--accent);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-text {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

#page-login, #page-register {
    background: linear-gradient(180deg, #f5f7fa 0%, #edf2f7 100%);
}
