* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    overflow: hidden;
    touch-action: manipulation;
}

.login-container {
    position: relative;
    width: 100%;
    max-width: 10rem;
    height: 100%;
    margin: 0 auto;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: url('../mj/img/bg.f7e3c90a.jpg') no-repeat center bottom;
    background-image: url('../mj/img/bg.f7e3c90a.jpg');
    background-image: -webkit-image-set(
        url('../mj/img/bg.f7e3c90a.webp') 1x,
        url('../mj/img/bg.f7e3c90a.jpg') 1x
    );
    background-image: image-set(
        url('../mj/img/bg.f7e3c90a.webp') 1x,
        url('../mj/img/bg.f7e3c90a.jpg') 1x
    );
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% 100%;
    font-size: .32rem;
}

.content {
    margin: 0 .4rem;
    padding-bottom: 1.6rem;
}

.logo-box {
    width: 6.346667rem;
    min-height: 1.6rem;
    padding-top: 12%;
    text-align: center;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-box img {
    width: 90%;
    display: block;
}

.logo-box.toll img {
    width: auto;
    height: 1.6rem;
    display: block;
}

/* 登录面板：仅包裹输入区+登录按钮 */
.form {
    position: relative;
    margin-top: .65rem;
    padding-bottom: .45rem;
    background: url('../mj/img/login_bg.4f362ed5.png') no-repeat top center;
    background-image: url('../mj/img/login_bg.4f362ed5.png');
    background-image: -webkit-image-set(
        url('../mj/img/login_bg.4f362ed5.webp') 1x,
        url('../mj/img/login_bg.4f362ed5.png') 1x
    );
    background-image: image-set(
        url('../mj/img/login_bg.4f362ed5.webp') 1x,
        url('../mj/img/login_bg.4f362ed5.png') 1x
    );
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;
}

.form::before {
    content: "";
    position: absolute;
    left: .04rem;
    right: .04rem;
    top: 1.02rem;
    bottom: .1rem;
    background: rgba(168, 212, 228, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-top: none;
    border-radius: 0 0 .3rem .3rem;
    z-index: 0;
}

.form > * {
    position: relative;
    z-index: 1;
}

.input-box-wrap {
    padding-top: 1.12rem;
    display: flex;
    flex-direction: column;
}

.input-bg {
    margin: .24rem auto 0;
    width: 8.426667rem;
    height: 1.12rem;
    min-height: 1.12rem;
    flex-shrink: 0;
    background: url('../mj/img/input-bg.png') no-repeat center;
    background-size: 100% 100%;
    overflow: hidden;
    position: relative;
    border-radius: .56rem;
    isolation: isolate;
}

.input-bg.password {
    margin-top: .32rem;
}

.field-icon {
    position: absolute;
    top: 50%;
    left: .22rem;
    transform: translateY(-50%);
    width: .72rem;
    height: .72rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.96);
    background-repeat: no-repeat;
    background-position: center;
    z-index: 4;
    pointer-events: none;
}

.field-icon-user {
    background-image: url('../mj/img/icon-user.png');
    background-size: .38rem auto;
}

.field-icon-pass {
    background-image: url('../mj/img/icon-pass.png');
    background-size: .36rem auto;
}

.input-bg input,
.input-bg select {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 1.12rem;
    line-height: 1.12rem;
    background: transparent !important;
    border: none;
    outline: none;
    padding-left: 1.42rem;
    padding-right: .85rem;
    font-size: .373333rem;
    color: #333;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    box-shadow: none;
}

.input-bg input:-webkit-autofill,
.input-bg input:-webkit-autofill:hover,
.input-bg input:-webkit-autofill:focus,
.input-bg input:-webkit-autofill:active {
    -webkit-text-fill-color: #333 !important;
    caret-color: #333;
    transition: background-color 99999s ease-out 0s;
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    box-shadow: 0 0 0 1000px transparent inset !important;
}

.input-bg input::placeholder {
    color: #b0bec8;
}

.input-bg .eys-icon {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: .28rem;
    transform: translateY(-50%);
    width: .48rem;
    height: .48rem;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: #8fa3b0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-bg .eys-icon svg {
    width: .44rem;
    height: .44rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.check-box-wrap {
    text-align: right;
    padding-right: .55rem;
}

.check-box {
    position: relative;
    padding-left: .58rem;
    display: inline-block;
    margin-top: .32rem;
    font-size: .373333rem;
    line-height: .44rem;
    color: #4a6675;
    cursor: pointer;
}

.check-box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: .426667rem;
    height: .426667rem;
    background: url('../mj/img/checkbox.png') no-repeat;
    background-size: 100% 100%;
}

.check-box.checked::before {
    background-image: url('../mj/img/checkbox-checked.png');
}

.check-box input {
    position: absolute;
    opacity: 0;
    width: .426667rem;
    height: .426667rem;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

.submit-btn {
    padding: 0 .38rem;
    margin-top: .34rem;
}

.submit-btn button {
    display: block;
    width: 100%;
    height: 1.173333rem;
    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.submit-btn button .login-btn-img {
    display: block;
    width: 100%;
    height: 1.173333rem;
    object-fit: contain;
    pointer-events: none;
}

/* 底部社交按钮：在面板外、背景图上 */
.content-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: .55rem;
    padding: 0 .47rem;
}

.content-bottom picture {
    display: block;
    width: 1.813333rem;
    flex-shrink: 0;
}

.content-bottom img {
    width: 1.813333rem;
    height: auto;
    cursor: pointer;
    display: block;
}

.content-bottom img.hidden {
    display: none;
}

.btn-refresh {
    position: fixed;
    right: max(0px, calc(50% - 5rem));
    bottom: 14%;
    width: 1.6rem;
    height: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    z-index: 10050;
    -webkit-tap-highlight-color: transparent;
}

.btn-refresh img {
    width: 100%;
    height: auto;
    display: block;
}

.btn-refresh:active {
    opacity: .85;
}

/* 授权提示弹窗 */
.mj-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 600;
    display: none;
    align-items: center;
    justify-content: center;
    padding: .746667rem;
}

.mj-modal-mask.show {
    display: flex;
}

.mj-modal {
    background: #fff;
    border-radius: .426667rem;
    width: 100%;
    max-width: 7.733333rem;
    overflow: hidden;
}

.mj-modal-text {
    padding: .64rem .533333rem;
    font-size: .373333rem;
    line-height: 1.6;
    color: #323233;
    text-align: center;
}

.mj-modal-btn {
    width: 100%;
    border: none;
    border-top: 1px solid #ebedf0;
    background: #fff;
    color: #ee0a24;
    font-size: .426667rem;
    padding: .346667rem;
    cursor: pointer;
}

.mj-modal-btn:active {
    background: #f2f3f5;
}

.mj-toast {
    position: fixed;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%) scale(0.92);
    z-index: 700;
    max-width: 80%;
    padding: .4rem .64rem;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-size: .373333rem;
    line-height: 1.5;
    border-radius: .213333rem;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
}

.mj-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.mj-loading-mask {
    display: none;
    position: fixed;
    z-index: 500;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

.mj-loading-box {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    padding: .48rem .746667rem;
    border-radius: .213333rem;
    font-size: .373333rem;
}

@media (min-width: 476px) {
    body {
        background: #4eb5cc;
    }
}
