/* 登录拼图滑块验证 — 参考常见拼图弹层 */
.sc-mask {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.55);
    box-sizing: border-box;
}

.sc-mask.is-open {
    display: flex;
}

.sc-panel {
    width: min(340px, 100%);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
    padding: 14px 14px 10px;
    box-sizing: border-box;
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #334155;
    user-select: none;
    -webkit-user-select: none;
}

.sc-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    text-align: left;
}

.sc-stage {
    position: relative;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    background: #e2e8f0;
    line-height: 0;
}

.sc-bg {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
}

.sc-slice {
    position: absolute;
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
    will-change: left;
}

.sc-track {
    position: relative;
    margin-top: 12px;
    height: 40px;
    border-radius: 4px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.sc-track-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: rgba(59, 130, 246, 0.18);
    pointer-events: none;
}

.sc-track-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #94a3b8;
    pointer-events: none;
}

.sc-knob {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    background: #fff;
    color: #64748b;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
    z-index: 2;
    touch-action: none;
}

.sc-knob:active {
    cursor: grabbing;
}

.sc-knob.is-ok {
    border-color: #22c55e;
    color: #16a34a;
}

.sc-knob.is-fail {
    border-color: #ef4444;
    color: #dc2626;
}

.sc-knob svg {
    width: 16px;
    height: 16px;
    display: block;
}

.sc-footer {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 8px;
}

.sc-icon-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #94a3b8;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sc-icon-btn:hover {
    color: #475569;
    background: #f1f5f9;
}

.sc-icon-btn svg {
    width: 16px;
    height: 16px;
}

.sc-msg {
    min-height: 18px;
    margin-top: 4px;
    font-size: 12px;
    color: #ef4444;
    text-align: center;
}

.sc-msg.is-ok {
    color: #16a34a;
}

.sc-loading .sc-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
}
