/**
 * 滑块验证码样式
 */
.slider-captcha {
    position: relative;
    user-select: none;
    margin: 0 auto;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 40px;
    background: linear-gradient(to right, #f0f0f0, #e0e0e0);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.slider-track.success {
    background: linear-gradient(to right, #10b981, #059669);
}

.slider-track.error {
    background: linear-gradient(to right, #ef4444, #dc2626);
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, #ec4899, #db2777);
    border-radius: 20px 0 0 20px;
    transition: width 0.3s ease;
}

.slider-track.success .slider-fill {
    background: linear-gradient(to right, #10b981, #059669);
}

.slider-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
    white-space: nowrap;
    z-index: 1;
}

.slider-track.success .slider-text {
    color: white;
}

.slider-track.error .slider-text {
    color: white;
}

.slider-button {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ec4899;
    transition: left 0.3s ease, box-shadow 0.3s ease;
    z-index: 2;
}

.slider-button:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.slider-button:active {
    cursor: grabbing;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.slider-track.success .slider-button {
    color: #10b981;
}

/* 响应式设计 */
@media (max-width: 640px) {
    .slider-captcha {
        width: 100% !important;
    }
    
    .slider-text {
        font-size: 12px;
    }
    
    .slider-button {
        width: 45px;
    }
}

