/* 滑动拼图验证码样式 */
.vue-puzzle-vcode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms;
}

.vue-puzzle-vcode.show_ {
    opacity: 1;
    pointer-events: auto;
}

.vue-auth-box_ {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 16px;
    background: #fff;
    user-select: none;
    border-radius: 6px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    width: 342px;
    max-width: 92vw;
}

.vue-auth-box_ .auth-body_ {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #f0f0f0;
}

.vue-auth-box_ .auth-body_ canvas:first-child {
    display: block;
    width: 100%;
    height: auto;
}

.vue-auth-box_ .auth-body_ .loading-box_ {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 20;
    opacity: 1;
    transition: opacity 200ms;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vue-auth-box_ .auth-body_ .loading-box_.hide_ {
    opacity: 0;
    pointer-events: none;
}

.vue-auth-box_ .auth-body_ .loading-box_.hide_ .loading-gif_ span {
    animation-play-state: paused;
}

.vue-auth-box_ .auth-body_ .loading-gif_ {
    flex: none;
    height: 10px;
    line-height: 0;
}

@keyframes vp-load {
    0% { opacity: 1; transform: scale(1.3); }
    100% { opacity: 0.2; transform: scale(0.3); }
}

.vue-auth-box_ .auth-body_ .loading-gif_ span {
    display: inline-block;
    width: 6px;
    height: 100%;
    margin-left: 3px;
    border-radius: 50%;
    background-color: #aaa;
    animation: vp-load 1.04s ease infinite;
}

.vue-auth-box_ .auth-body_ .loading-gif_ span:nth-child(1) { margin-left: 0; }
.vue-auth-box_ .auth-body_ .loading-gif_ span:nth-child(2) { animation-delay: 0.13s; }
.vue-auth-box_ .auth-body_ .loading-gif_ span:nth-child(3) { animation-delay: 0.26s; }
.vue-auth-box_ .auth-body_ .loading-gif_ span:nth-child(4) { animation-delay: 0.39s; }
.vue-auth-box_ .auth-body_ .loading-gif_ span:nth-child(5) { animation-delay: 0.52s; }

.vue-auth-box_ .auth-body_ .info-box_ {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 28px;
    line-height: 28px;
    text-align: center;
    overflow: hidden;
    font-size: 13px;
    background-color: #67c23a;
    color: #fff;
    opacity: 0;
    transform: translateY(28px);
    transition: all 200ms;
    z-index: 10;
}

.vue-auth-box_ .auth-body_ .info-box_.show {
    opacity: 0.95;
    transform: translateY(0);
}

.vue-auth-box_ .auth-body_ .info-box_.fail {
    background-color: #f56c6c;
}

.vue-auth-box_ .auth-body_ .auth-canvas2_ {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    cursor: grab;
}

.vue-auth-box_ .auth-body_ .auth-canvas2_.dragging {
    cursor: grabbing;
}

.vue-auth-box_ .auth-body_ .auth-canvas3_ {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 600ms;
    z-index: 3;
}

.vue-auth-box_ .auth-body_ .auth-canvas3_.show {
    opacity: 1;
}

.vue-auth-box_ .auth-body_ .reset_ {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 12;
    cursor: pointer;
    transition: transform 200ms, background-color 200ms;
    transform: rotate(0deg);
}

.vue-auth-box_ .auth-body_ .reset_ svg {
    width: 16px;
    height: 16px;
}

.vue-auth-box_ .auth-body_ .reset_:hover {
    transform: rotate(-90deg);
    background: rgba(0, 0, 0, 0.65);
}

/* =============================================
   滑块区域 — 经典按钮+进度条风格
   ============================================= */
.vue-auth-box_ .auth-control_ {
    margin-top: 14px;
}

.vue-auth-box_ .auth-control_ .range-box {
    position: relative;
    width: 100%;
    height: 44px;
    background-color: #eef1f8;
    border-radius: 4px;
    box-shadow: inset 0 0 8px rgba(220, 224, 230, 0.6);
    user-select: none;
    touch-action: none;
    overflow: hidden;
}

/* 提示文字 — 居中灰色文字 */
.vue-auth-box_ .auth-control_ .range-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 13px;
    color: #9ba3c2;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 150ms;
    letter-spacing: 0.5px;
}

.vue-auth-box_ .auth-control_ .range-text.hidden {
    opacity: 0;
}

/* 蓝色进度条 — 从左侧开始，随拖动变宽 */
.vue-auth-box_ .auth-control_ .range-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #4a9eff 0%, #207aff 100%);
    border-radius: 4px 0 0 4px;
    transition: width 0ms;
    z-index: 1;
}

/* 滑块按钮 — 固定在左侧，可拖动 */
.vue-auth-box_ .auth-control_ .range-btn {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 40px;
    height: calc(100% - 4px);
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 1px 6px rgba(64, 120, 200, 0.3), 0 0 1px rgba(64, 120, 200, 0.5);
    cursor: grab;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 150ms;
}

.vue-auth-box_ .auth-control_ .range-btn:active,
.vue-auth-box_ .auth-control_ .range-btn.dragging {
    cursor: grabbing;
    box-shadow: 0 2px 10px rgba(64, 120, 200, 0.45), 0 0 2px rgba(64, 120, 200, 0.6);
}

/* 滑块箭头图标 */
.vue-auth-box_ .auth-control_ .range-btn .arrow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #409eff;
    transition: transform 150ms;
}

.vue-auth-box_ .auth-control_ .range-btn .arrow-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #409eff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 拖动中箭头右移 */
.vue-auth-box_ .auth-control_ .range-btn.dragging .arrow-icon svg {
    transform: translateX(2px);
}

/* 右侧完成标记 */
.vue-auth-box_ .auth-control_ .range-btn .check-icon {
    display: none;
    color: #67c23a;
}

.vue-auth-box_ .auth-control_ .range-btn .check-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #67c23a;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vue-puzzle-overflow {
    overflow: hidden !important;
}
