.slider-captcha {
    margin-bottom: 16px;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.slider-captcha .sc-card {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}

.slider-captcha.success .sc-card {
    border-color: #30a46c;
}

.slider-captcha.fail .sc-card {
    border-color: #e5484d;
}

.slider-captcha .sc-image-wrap {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    touch-action: none;
}

.slider-captcha .sc-bg {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    border: 0;
    visibility: hidden;
}

.slider-captcha .sc-piece {
    position: absolute;
    left: 0;
    top: 0;
    max-width: none;
    border: 0;
    visibility: hidden;
    -webkit-filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
    pointer-events: none;
}

.slider-captcha img {
    -webkit-user-drag: none;
}

.slider-captcha.ready .sc-bg,
.slider-captcha.ready .sc-piece {
    visibility: visible;
}

.slider-captcha .sc-mask {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.slider-captcha.success.ready .sc-mask-success {
    display: flex;
    background: rgba(48, 164, 108, 0.78);
}

.slider-captcha.fail.ready .sc-mask-fail {
    display: flex;
    background: rgba(229, 72, 77, 0.78);
}

.slider-captcha .sc-refresh {
    position: absolute;
    top: 6px;
    right: 6px;
    height: 26px;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    color: #4b5563;
    font-size: 12px;
    line-height: 26px;
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
}

.slider-captcha .sc-refresh:disabled {
    opacity: 0.5;
    cursor: default;
}

.slider-captcha .sc-track {
    position: relative;
    height: 40px;
    margin: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f5f6f8;
}

.slider-captcha.success .sc-track {
    border-color: #86efac;
    background: #ecfdf3;
}

.slider-captcha.fail .sc-track {
    border-color: #fecaca;
    background: #fef2f2;
}

.slider-captcha .sc-track-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0;
    border-radius: 7px 0 0 7px;
    background: linear-gradient(90deg, #d7f3f3, #7dcecf);
}

.slider-captcha .sc-track-text {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 13px;
    pointer-events: none;
}

.slider-captcha.success .sc-track-text {
    color: #15803d;
}

.slider-captcha.fail .sc-track-text {
    color: #b91c1c;
}

.slider-captcha .sc-thumb {
    position: absolute;
    top: -1px;
    left: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    color: #3ab1b3;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: grab;
    touch-action: none;
    -ms-touch-action: none;
}

.slider-captcha .sc-thumb:active {
    cursor: grabbing;
}

.slider-captcha.success .sc-thumb {
    border-color: #30a46c;
    color: #15803d;
    background: #ecfdf3;
    cursor: default;
}

.slider-captcha.fail .sc-thumb {
    border-color: #e5484d;
    color: #b91c1c;
    background: #fef2f2;
}

.slider-captcha .sc-thumb-mark {
    font-size: 18px;
    line-height: 1;
}

.login-slider-dialog {
    padding: 8px 16px 18px;
}

.login-slider-tip {
    margin: 4px 0 14px;
    color: #333;
    font-size: 20px;
    line-height: 1.6;
}

.slider-captcha-lg .sc-track {
    height: 64px;
    margin: 14px 10px;
}

.slider-captcha-lg .sc-track-text {
    font-size: 20px;
}

.slider-captcha-lg .sc-thumb {
    width: 76px;
    height: 64px;
}

.slider-captcha-lg .sc-thumb-mark {
    font-size: 32px;
}

.slider-captcha-lg .sc-refresh {
    height: 36px;
    padding: 0 12px;
    font-size: 16px;
    line-height: 36px;
}

.slider-captcha-lg .sc-mask {
    font-size: 24px;
}

.login-slider-layer .layui-layer-title,
.login-fail-layer .layui-layer-title {
    height: 52px;
    font-size: 20px;
    line-height: 52px;
}

.login-slider-layer .layui-layer-setwin {
    top: 18px;
}

.login-fail-layer .layui-layer-btn a {
    height: 42px;
    padding: 0 28px;
    font-size: 18px;
    line-height: 42px;
}
