/* 滑动验证码样式 */

.slide-captcha-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.slide-captcha-overlay.active {
    display: flex;
}

.slide-captcha-box {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    width: 320px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.slide-captcha-title {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.slide-captcha-tip {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.slide-captcha-track {
    position: relative;
    width: 100%;
    height: 40px;
    background: #e8e8e8;
    border-radius: 20px;
    overflow: hidden;
    user-select: none;
}

.slide-captcha-track-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: #999;
    pointer-events: none;
}

.slide-captcha-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
    border-radius: 20px;
    width: 0;
    transition: none;
}

.slide-captcha-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 40px;
    background: #fff;
    border: 2px solid #4CAF50;
    border-radius: 4px;
    cursor: grab;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #4CAF50;
    transition: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
}

.slide-captcha-slider:active {
    cursor: grabbing;
    background: #f5f5f5;
}

.slide-captcha-slider.success {
    border-color: #4CAF50;
    background: #4CAF50;
    color: #fff;
    box-shadow: 0 2px 6px rgba(76,175,80,0.4);
}

.slide-captcha-slider.fail {
    border-color: #f44336;
    background: #f44336;
    color: #fff;
    animation: shake 0.3s ease-in-out;
    box-shadow: 0 2px 6px rgba(244,67,54,0.4);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.slide-captcha-result {
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    min-height: 20px;
}

.slide-captcha-result.success {
    color: #4CAF50;
}

.slide-captcha-result.fail {
    color: #f44336;
}

.slide-captcha-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    border: none;
    background: none;
    line-height: 1;
}

.slide-captcha-close:hover {
    color: #333;
}