.slider-captcha {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    margin: 0;
    width: 340px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.captcha-title {
    font-size: 16px;
    color: #333333;
    margin-bottom: 15px;
    font-weight: 500;
    text-align: left;
}

.captcha-image-container {
    position: relative;
    width: 300px;
    height: 150px;
    background: #f5f7fa;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto 15px;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.1);
}

.bg-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.slider-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 150px;
    overflow: hidden;
    z-index: 10;
}

.slider-target {
    /* No longer needed as we use the image directly, but kept for structure */
    width: 100%;
    height: 100%;
}

.slider-image {
    position: absolute;
    top: 6px;
    left: 0;
    width: 50px;
    height: 138px;
    cursor: grab;
    z-index: 20;
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.3));
}

.slider-image:active {
    cursor: grabbing;
}

.slider-track {
    position: relative;
    width: 300px;
    height: 44px;
    background: #f0f2f5;
    border-radius: 22px;
    margin: 0 auto;
    border: 1px solid #e4e7eb;
    box-sizing: border-box;
}

.slider-track-active {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: #d6e8e2; /* Light green tint matching theme */
    border-radius: 22px 0 0 22px;
    border: 1px solid #b8d4cb;
    border-right: none;
    box-sizing: border-box;
}

.slider-tip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: #909399;
    white-space: nowrap;
    transition: opacity 0.3s;
    pointer-events: none;
    user-select: none;
}

.slider-btn {
    position: absolute;
    top: -1px;
    left: -1px;
    width: 44px;
    height: 44px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #2c4a42;
    user-select: none;
    transition: background-color 0.2s;
    z-index: 30;
    border: 1px solid #e4e7eb;
    box-sizing: border-box;
}

.slider-btn:active {
    cursor: grabbing;
    background: #f9fafc;
}

.slider-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Success/Error States */
.slider-track.success .slider-btn {
    background: #52c41a;
    border-color: #52c41a;
    color: #ffffff;
}
.slider-track.success .slider-track-active {
    background: #d9f7be;
    border-color: #b7eb8f;
}

.slider-track.error .slider-btn {
    background: #ff4d4f;
    border-color: #ff4d4f;
    color: #ffffff;
    transition: left 0.3s ease;
}
.slider-track.error .slider-track-active {
    background: #fff1f0;
    border-color: #ffa39e;
    transition: width 0.3s ease;
}
