.login-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(80, 104, 140, 0.18);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
    box-sizing: border-box;
}

.login-modal-mask.is-open {
    display: flex;
}

.login-modal {
    width: min(760px, 92vw);
    min-height: 520px;
    background: linear-gradient(180deg, #eef5ff 0%, #e7f0ff 48%, #edf4ff 100%);
    border: 1px solid #c8d9f0;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(73, 97, 130, 0.16);
    padding: 18px 20px 22px;
    color: #1f2d3d;
    position: relative;
    box-sizing: border-box;
}

.login-modal-close {
    position: absolute;
    right: 14px;
    top: 10px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #5d6f86;
}

.login-modal-close:hover {
    color: #2f4768;
}

.login-tabs {
    display: flex;
    justify-content: center;
    gap: 56px;
    margin-bottom: 18px;
    font-size: 22px;
    font-weight: 800;
    color: #1f2d3d;
}

.login-tab-btn {
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
    color: #27496d;
    text-decoration: underline;
    text-underline-offset: 4px;
    padding: 0;
}

.login-tab-btn.is-active {
    color: #163b66;
    text-decoration-thickness: 3px;
}

.login-tab-panel {
    display: none;
    min-height: 430px;
}

.login-tab-panel.is-active {
    display: block;
}

.login-qrcode-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.login-qrcode {
    width: 330px;
    height: 330px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #d2deee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #5f6f85;
    font-size: 22px;
}

.login-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.login-qrcode-text {
    width: 340px;
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.55;
    color: #30465f;
}

.login-code-box {
    max-width: 540px;
    margin: 40px auto 0;
}

.login-code-input {
    width: 100%;
    height: 60px;
    border: 1px solid #c7d7eb;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    text-align: center;
    font-size: 22px;
    outline: none;
    color: #1f2d3d;
    box-sizing: border-box;
}

.login-code-input::placeholder {
    color: #5b6f88;
    opacity: 1;
}

.login-code-input:focus {
    border-color: #90aed6;
    box-shadow: 0 0 0 3px rgba(144, 174, 214, 0.18);
}

.login-code-help {
    margin: 36px 0 0;
    font-size: 16px;
    line-height: 1.7;
    color: #30465f;
}

.login-submit-btn {
    width: 100%;
    height: 60px;
    border: 0;
    border-radius: 12px;
    background: #8dcf6f;
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    margin-top: 42px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(111, 172, 79, 0.18);
}

.login-submit-btn:hover {
    background: #7fc462;
}

.login-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-mock-wechat-btn {
    width: 340px;
    height: 48px;
    margin-top: 14px;
    font-size: 18px;
}

.login-bottom-tip {
    margin-top: 22px;
    font-size: 14px;
    line-height: 1.6;
    color: #425a74;
}

.sidebar-user-upgrade-btn {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

@media (max-width: 768px) {
    .login-modal {
        width: min(94vw, 640px);
        min-height: auto;
        padding: 16px 14px 18px;
    }

    .login-tabs {
        gap: 26px;
        font-size: 18px;
        margin-bottom: 14px;
    }

    .login-tab-panel {
        min-height: auto;
    }

    .login-qrcode-box {
        min-height: auto;
    }

    .login-qrcode {
        width: 240px;
        height: 240px;
    }

    .login-qrcode-text,
    .login-mock-wechat-btn {
        width: 240px;
        font-size: 14px;
    }

    .login-code-box {
        margin-top: 20px;
    }

    .login-code-input {
        height: 52px;
        font-size: 18px;
    }

    .login-submit-btn {
        height: 52px;
        font-size: 20px;
        margin-top: 28px;
    }
}