/* V4 登录页 / 登录弹窗共用 */
body.v4-login-page {
    margin: 0;
    min-height: 100vh;
    background: #e8eef5;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.v4-login-wrap {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.v4-login-panel {
    display: flex;
    width: 100%;
    max-width: 860px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(26, 38, 82, 0.12);
}

.v4-login-left {
    flex: 0 0 42%;
    width: 42%;
    max-width: 42%;
    padding: 0 24px;
    min-height: 480px;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #eaf2fb url('../../img/v4/loginBack.png') no-repeat center top;
    background-size: cover;
}
.v4-login-left > * {
    transform: translateY(-40px);
}
.v4-login-left > div {
    text-align: center;
    padding: 0;
    box-sizing: border-box;
}
.v4-login-left > div img {
    display: block;
    width: auto;
    max-width: 150px;
    max-height: 150px;
    height: auto;
    margin: 15px auto 10px;
    object-fit: contain;
}
.v4-login-left h1 {
    margin: 0 0 28px;
    padding-left: 20px;
    font-size: 40px;
    letter-spacing: 4px;
    font-weight: 700;
    color: #1e4a7a;
    text-align: center;
}

.v4-login-tag {
    display: inline-block;
    margin: 0;
    padding: 10px 18px;
    font-size: 14px;
    letter-spacing: 2px;
    line-height: 1.5;
    color: #fff;
    text-align: center;
    background: #2a5088;
    border-radius: 999px;
}

.v4-login-right {
    flex: 1;
    min-width: 0;
    padding: 30px 48px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.v4-login-right h2 {
    margin: 0 0 20px;
    font-size: 30px;
    font-weight: 700;
    color: #555;
    letter-spacing: 5px;
}

.v4-login-sub {
    margin: 0 0 28px;
    font-size: 13px;
    color: #999;
}

.v4-login-sub a {
    color: #e53935;
    text-decoration: none;
    margin-left: 2px;
}

.v4-login-sub a:hover {
    text-decoration: underline;
}

.v4-login-input-wrap {
    display: flex;
    align-items: center;
    height: 48px;
    margin-bottom: 16px;
    padding: 0 18px;
    border: 1px solid #222;
    border-radius: 999px;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}

.v4-login-input-wrap:focus-within {
    border-color: #40b3ff;
    box-shadow: 0 0 0 2px rgba(64, 179, 255, 0.15);
}

.v4-login-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    color: #666;
}

.v4-login-input-wrap input {
    flex: 1;
    width: 0;
    height: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
    background: transparent;
}

.v4-login-input-wrap input::placeholder {
    color: #bbb;
}

.v4-login-forgot {
    margin: -4px 6px 22px 0;
    text-align: right;
    font-size: 13px;
}

.v4-login-forgot a {
    color: #888;
    text-decoration: none;
}

.v4-login-forgot a:hover {
    color: #555;
    text-decoration: underline;
}

.v4-login-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 999px;
    background: #40b3ff;
    color: #fff;
    font-size: 20px;
    letter-spacing: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.v4-login-btn:hover {
    background: #2aa3f5;
}

.v4-login-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* 首页内登录弹窗壳层（不用 inset，兼容旧版国产浏览器 / IE） */
.v4-login-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2000;
}

.v4-login-modal-mask {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(15, 24, 48, 0.55);
}

.v4-login-modal-box {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 40px);
    max-width: 820px;
}

.v4-login-modal-close {
    position: absolute;
    top: -36px;
    right: 0;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #666;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.v4-login-modal .v4-login-panel {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .v4-login-panel {
        flex-direction: column;
        max-width: 420px;
    }

    .v4-login-left {
        flex: none;
        min-height: 280px;
        width: 100%;
        max-width: 100%;
    }

    .v4-login-right {
        padding: 32px 28px 36px;
    }

    .v4-login-modal-box {
        max-width: 100%;
    }
}
