/* 仅调整 PC 弹窗登录框；内嵌登录页和管理员专用登录保持宿主原样。 */
.ls-login-overlay .ls-login-panel.ying-split {
    width: 860px;
    max-width: calc(100vw - 48px);
    max-height: 90vh;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow: hidden;
    border-radius: var(--ying-radius, 12px);
    position: relative;
    z-index: 1;
}

.ying-split-wrap { position: relative; }

img.ying-split-topper {
    position: absolute;
    bottom: 100%;
    margin-bottom: -48px;
    left: 215px;
    transform: translateX(-50%);
    height: 160px;
    width: auto;
    max-width: 60vw;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.ying-split-wrap.ying-mirror > img.ying-split-topper { left: calc(100% - 215px); }
.ls-login-overlay .ls-login-panel.ying-split.ying-mirror { flex-direction: row-reverse; }

.ying-split-cover {
    flex: 0 0 430px;
    width: 430px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    min-height: 560px;
}

.ying-split-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.32) 100%);
    pointer-events: none;
}

.ying-split-slogan {
    position: relative;
    z-index: 1;
    padding: 0 48px;
}

.ying-split-slogan h2 {
    margin: 0 0 14px;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: 0;
    color: #fff;
}

.ying-split-slogan p {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.92);
    white-space: pre-line;
}

.ying-split-form {
    flex: 1 1 auto;
    width: 430px;
    min-width: 0;
    position: relative;
    padding: 36px;
    box-sizing: border-box;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none;
    background: #fff;
}

.ying-split-form::-webkit-scrollbar { width: 0; display: none; }
.ying-split-form .ls-login-close { position: absolute; top: 16px; right: 16px; }
.ying-split-form .ls-login-back-btn { position: absolute; top: 16px; left: 16px; }
.ying-split-form .ls-login-header { margin-bottom: 22px; }

@media (max-width: 900px) {
    .ls-login-overlay .ls-login-panel.ying-split { width: 400px; display: block; }
    .ying-split-cover { display: none; }
    .ying-split-form { width: 100%; max-height: 90vh; }
    .ying-split-wrap > img.ying-split-topper,
    .ying-split-wrap.ying-mirror > img.ying-split-topper {
        left: 50%;
        height: 120px;
        margin-bottom: -30px;
    }
}

@media (max-width: 520px) {
    .ls-login-overlay .ls-login-panel.ying-split { max-width: calc(100vw - 24px); }
    .ying-split-form { padding: 32px 24px 28px; }
}

@media (max-height: 720px) {
    img.ying-split-topper { height: 110px; margin-bottom: -28px; }
    .ying-split-cover { min-height: 520px; }
}
