/* AJ-Captcha styles scoped for LightSNS. Based on the upstream MIT frontend. */
@font-face {
    font-family: "jinsom-aj-captcha-iconfont";
    src: url('../fonts/iconfont.eot');
    src: url('../fonts/iconfont.eot?#iefix') format('embedded-opentype'),
        url('../fonts/iconfont.woff') format('woff'),
        url('../fonts/iconfont.ttf') format('truetype'),
        url('../fonts/iconfont.svg#iconfont') format('svg');
}

.jinsom-aj-captcha,
.jinsom-aj-captcha * {
    box-sizing: border-box;
}

.jinsom-aj-captcha .mask {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    z-index: 2147483000;
    display: none;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, .38);
}

.jinsom-aj-captcha .verifybox {
    position: relative;
    top: 50%;
    left: 50%;
    max-width: calc(100vw - 10px);
    overflow: hidden;
    color: #45494c;
    background: #fff;
    border: 1px solid #e4e7eb;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .28);
    transform: translate(-50%, -50%);
}

.jinsom-aj-captcha .verifybox-top {
    height: 48px;
    padding: 0 15px;
    color: #45494c;
    font-size: 16px;
    line-height: 48px;
    text-align: left;
    border-bottom: 1px solid #e4e7eb;
}

.jinsom-aj-captcha .verifybox-bottom {
    padding: 15px;
}

.jinsom-aj-captcha .verifybox-close {
    position: absolute;
    top: 12px;
    right: 9px;
    width: 24px;
    height: 24px;
    color: #7a7f87;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
}

.jinsom-aj-captcha .verify-img-out {
    position: relative;
    overflow: hidden;
}

.jinsom-aj-captcha .verify-img-panel {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: #f5f7fa;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.jinsom-aj-captcha .verify-img-panel .verify-refresh {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    width: 34px;
    height: 34px;
    padding: 5px;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    background: rgba(0, 0, 0, .25);
    border-radius: 0 0 0 4px;
}

.jinsom-aj-captcha .verify-img-panel .icon-refresh {
    color: #fff;
    font-size: 20px;
}

.jinsom-aj-captcha .verify-tips {
    position: absolute;
    bottom: -35px;
    left: 0;
    z-index: 4;
    width: 100%;
    height: 30px;
    color: #fff;
    line-height: 30px;
    text-indent: 10px;
}

.jinsom-aj-captcha .suc-bg {
    background: rgba(92, 184, 92, .72);
}

.jinsom-aj-captcha .err-bg {
    background: rgba(217, 83, 79, .72);
}

.jinsom-aj-captcha .verify-bar-area {
    position: relative;
    color: #606266;
    text-align: center;
    background: #f7f9fc;
    border: 1px solid #ddd;
    border-radius: 4px;
    user-select: none;
    touch-action: none;
}

.jinsom-aj-captcha .verify-bar-area .verify-move-block {
    position: absolute;
    top: -1px;
    left: -1px;
    z-index: 5;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 0 3px rgba(0, 0, 0, .25);
    cursor: grab;
}

.jinsom-aj-captcha .verify-bar-area .verify-move-block:active {
    cursor: grabbing;
}

.jinsom-aj-captcha .verify-bar-area .verify-left-bar {
    position: absolute;
    top: -1px;
    left: -1px;
    background: #f0fff0;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.jinsom-aj-captcha .verify-bar-area .verify-move-block .verify-sub-block {
    position: absolute;
    z-index: 3;
    overflow: hidden;
    text-align: center;
}

.jinsom-aj-captcha .verify-bar-area .verify-move-block .verify-icon {
    font-size: 18px;
}

.jinsom-aj-captcha .verify-bar-area .verify-msg {
    position: relative;
    z-index: 3;
}

.jinsom-aj-captcha .iconfont {
    font-family: "jinsom-aj-captcha-iconfont" !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.jinsom-aj-captcha .icon-check::before { content: "\e645"; }
.jinsom-aj-captcha .icon-close::before { content: "\e646"; }
.jinsom-aj-captcha .icon-right::before { content: "\e6a3"; }
.jinsom-aj-captcha .icon-refresh::before { content: "\e6a4"; }

@media (max-width: 480px) {
    .jinsom-aj-captcha .verifybox-top {
        height: 44px;
        line-height: 44px;
    }

    .jinsom-aj-captcha .verifybox-close {
        top: 10px;
    }
}

