/* 滑块验证组件样式 */
.slider-captcha {
    margin: 15px 0;
    border: 1px solid #e4e7ed;
    border-radius: 4px;
    background: #f5f7fa;
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.slider-captcha-track {
    position: relative;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 14px;
    color: #666;
    background: linear-gradient(to right, #f5f7fa, #e4e7ed);
}

.slider-captcha-button {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.slider-captcha-button:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.slider-captcha-button.sliding {
    transition: none;
}

.slider-captcha-button .icon {
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.slider-captcha-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 40px;
    background: linear-gradient(to right, #667eea, #764ba2);
    width: 0;
    transition: width 0.1s ease;
    opacity: 0.3;
}

.slider-captcha.success {
    border-color: #67c23a;
    background: #f0f9ff;
}

.slider-captcha.success .slider-captcha-track {
    background: #f0f9ff;
    color: #67c23a;
}

.slider-captcha.success .slider-captcha-button {
    background: #67c23a;
    cursor: default;
}

.slider-captcha.success .slider-captcha-button .icon::before {
    content: "✓";
}

.slider-captcha.error {
    animation: shake 0.5s;
}

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

.slider-captcha-refresh {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    transition: all 0.3s ease;
}

.slider-captcha-refresh:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(180deg);
}

.slider-captcha.success .slider-captcha-refresh {
    display: none;
}