/* 滑块验证组件 v2.1（register / reset_password 共用）
   美化版：浅蓝渐变画布 + 内凹缺口 + 白色拼图块 + 渐变拇指（拖动跟手，不带 left 过渡） */

.slider-captcha-v2-container {
    padding: 0;
    margin-bottom: 4px;
    background: transparent;
    border: none;
}

.slider-captcha-v2-canvas {
    position: relative;
    width: 100%;
    height: 100px;
    background: linear-gradient(180deg, #f7faff 0%, #edf2fa 100%);
    border: 1px solid #dde6f3;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: inset 0 1px 3px rgba(13, 60, 120, 0.06);
}

.slider-captcha-v2-canvas canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* 刷新按钮：画布右上角小圆钮 */
.slider-captcha-v2-refresh {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #5b6b84;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.35s ease;
    box-shadow: 0 1px 4px rgba(13, 60, 120, 0.18);
}

.slider-captcha-v2-refresh:hover {
    background: #fff;
    color: #0d6efd;
    transform: rotate(90deg);
}

.slider-captcha-v2-refresh svg {
    width: 15px;
    height: 15px;
    pointer-events: none;
}

.slider-captcha-v2-track {
    height: 40px;
    background: linear-gradient(180deg, #eef1f6 0%, #e4e9f2 100%);
    border: 1px solid #d8dfeb;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(13, 60, 120, 0.08);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.slider-captcha-v2-track.slider-captcha-v2-track-success {
    background: linear-gradient(180deg, #e6f7ee 0%, #d4f0e2 100%);
    border-color: #b7e4cc;
}

.slider-captcha-v2-thumb {
    width: 50px;
    height: 40px;
    background: linear-gradient(180deg, #3b8bfd 0%, #0d6efd 100%);
    border-radius: 20px;
    position: absolute;
    left: 0;
    top: 0;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    transition: box-shadow 0.25s ease, background 0.25s ease, transform 0.15s ease;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.slider-captcha-v2-thumb:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.slider-captcha-v2-thumb.dragging {
    cursor: grabbing;
    transform: scale(1.06);
    box-shadow: 0 6px 14px rgba(13, 110, 253, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.slider-captcha-v2-thumb svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.slider-captcha-v2-success {
    background: linear-gradient(180deg, #28b26e 0%, #198754 100%) !important;
    box-shadow: 0 2px 6px rgba(25, 135, 84, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

.slider-captcha-v2-fail {
    background: linear-gradient(180deg, #e7606f 0%, #dc3545 100%) !important;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.slider-captcha-v2-text {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a97ab;
    font-size: 13.5px;
    letter-spacing: 1px;
    user-select: none;
    pointer-events: none;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.slider-captcha-v2-text.ok {
    color: #198754;
    font-weight: 600;
    letter-spacing: 0;
}
