/* ==========================================================
 * 滑块验证码样式（紫色主题）
 * ========================================================== */

.mjvfx-slider-captcha {
    width: 100%;
    margin-bottom: 20px;
    user-select: none;
    -webkit-user-select: none;
}

.mjvfx-slider-captcha-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 8px;
}

.mjvfx-slider-track {
    position: relative;
    width: 100%;
    height: 46px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid hsla(0, 0%, 100%, 0.08);
    border-radius: 23px;
    overflow: hidden;
    cursor: default;
}

.mjvfx-slider-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: rgba(95, 58, 252, 0.25);
    border-radius: 23px 0 0 23px;
    transition: width 0.05s linear;
}

.mjvfx-slider-target {
    position: absolute;
    top: 0;
    width: 4px;
    height: 100%;
    background: rgba(167, 139, 250, 0.85);
    border-left: 2px dashed rgba(255, 255, 255, 0.7);
    border-right: 2px dashed rgba(255, 255, 255, 0.7);
    transform: translateX(-50%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mjvfx-slider-captcha.ready .mjvfx-slider-target {
    opacity: 1;
}

.mjvfx-slider-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 38px;
    height: 38px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    cursor: grab;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mjvfx-slider-thumb::before {
    content: '\2192';
    font-size: 16px;
    color: #5f3afc;
    font-weight: 700;
}

.mjvfx-slider-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(95, 58, 252, 0.35);
}

.mjvfx-slider-thumb:active {
    cursor: grabbing;
    transform: scale(0.98);
}

.mjvfx-slider-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    z-index: 0;
    pointer-events: none;
}

.mjvfx-slider-captcha.dragging .mjvfx-slider-text {
    opacity: 0;
}

/* 成功状态 */
.mjvfx-slider-captcha.success .mjvfx-slider-fill {
    background: rgba(95, 58, 252, 0.35);
    width: 100% !important;
    border-radius: 23px;
}

.mjvfx-slider-captcha.success .mjvfx-slider-thumb {
    left: auto !important;
    right: 4px;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.mjvfx-slider-captcha.success .mjvfx-slider-thumb::before {
    content: '\2713';
    color: #a78bfa;
}

.mjvfx-slider-captcha.success .mjvfx-slider-target {
    opacity: 0;
}

.mjvfx-slider-captcha.success .mjvfx-slider-text {
    color: #a78bfa;
    opacity: 1;
}

/* 失败状态 */
.mjvfx-slider-captcha.error .mjvfx-slider-track {
    animation: mjvfx-slider-shake 0.4s ease-in-out;
}

@keyframes mjvfx-slider-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* 提示信息 */
.mjvfx-slider-message {
    margin-top: 8px;
    font-size: 13px;
    min-height: 18px;
    color: #fc8181;
}

.mjvfx-slider-message.success {
    color: #a78bfa;
}

/* 禁用状态 */
.mjvfx-slider-captcha.success .mjvfx-slider-thumb,
.mjvfx-slider-captcha.processing .mjvfx-slider-thumb {
    cursor: default;
    pointer-events: none;
}

.mjvfx-slider-captcha.processing .mjvfx-slider-text {
    opacity: 0.6;
}
