/* Slider Captcha Styles */
.slider-captcha-container {
    position: relative;
    width: 300px;
    background: #1e1e24;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    margin: 1rem auto;
    user-select: none;
}

.captcha-canvas-container {
    position: relative;
    width: 280px;
    height: 155px;
    margin: 0 auto;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
}

.captcha-canvas {
    width: 280px;
    height: 155px;
    display: block;
}

.captcha-block {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 20;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: none;
    /* Hidden until loaded */
}

.captcha-slider-bar {
    position: relative;
    width: 280px;
    height: 40px;
    background: #2d2d35;
    margin: 15px auto 5px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.captcha-slider-text {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #94a3b8;
    pointer-events: none;
    transition: opacity 0.3s;
}

.captcha-slider-btn {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 40px;
    background: #fff;
    border-radius: 20px;
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background 0.2s;
}

.captcha-slider-btn:hover {
    background: #f1f5f9;
}

.captcha-slider-btn svg {
    color: #475569;
}

.captcha-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.9rem;
    z-index: 30;
}

/* States */
.captcha-success .captcha-slider-bar {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.captcha-success .captcha-slider-btn {
    background: #10b981;
    color: white;
    border-radius: 50%;
}

.captcha-success .captcha-slider-text {
    opacity: 0;
}

.captcha-fail .captcha-slider-bar {
    border-color: #f43f5e;
    animation: shake 0.4s;
}

.captcha-fail .captcha-slider-btn {
    background: #f43f5e;
    color: white;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}