*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: #191919;
    background: #fff;
    font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.login-page {
    display: flex;
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    overflow: hidden;
}

.login-brand {
    position: absolute;
    top: 24px;
    left: 28px;
    z-index: 3;
    display: block;
    width: 200px;
    height: auto;
    opacity: 0.95;
}

.login-left {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    background-color: #d7eaf6;
}

.login-left img {
    display: block;
    height: 100%;
    width: auto;
    object-fit: contain;
}

.login-right {
    flex: 1 1 auto;
    display: grid;
    /* 上空 3、下空 4：Welcome 落在右侧白区约 3/7 处，不再垂直居中 */
    grid-template-rows: 3fr auto 4fr;
    justify-items: start;
    position: relative;
    min-width: 360px;
    min-height: 0;
    background: #fff;
}

.login-form-wrap {
    display: contents;
}

.login-form-core,
.login-form-actions {
    /* 现宽再增加一半；靠左贴设计图，不再水平居中 */
    width: 53.1%;
    min-width: min(420px, 70%);
    margin-left: 8.6%;
    padding: 0;
}

.login-form-core {
    grid-row: 2;
}

.login-form-core .form-item:last-child {
    margin-bottom: 0;
}

.login-form-actions {
    grid-row: 3;
    align-self: start;
    padding-top: 20px;
}

.login-welcome {
    margin: 0 0 4.62vh;
    color: #0a66c2;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
}

.account-login {
    position: relative;
}

#captcha-box {
    position: absolute;
    left: 50%;
    top: 56px;
    z-index: 100;
    transform: translateX(-50%);
}

.form-item {
    position: relative;
    margin-bottom: 20px;
}

.form-item .input {
    display: block;
    width: 100%;
    height: clamp(48px, 8.5vh, 80px);
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    outline: none;
    color: #191919;
    background-color: #eef3f8;
    background-image: none;
    font-size: 15px;
    line-height: 1.5;
    cursor: text;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-item .input::placeholder {
    color: #6f8eae;
}

.form-item .input:focus {
    border-color: #0a66c2;
    background-color: #fff;
    box-shadow: 0 0 0 1px #0a66c2;
}

.form-extra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 28px;
    font-size: 14px;
}

.forgot-password {
    color: #0a66c2;
    text-decoration: none;
    cursor: pointer;
}

.forgot-password:hover {
    text-decoration: underline;
}

.remember-me-container {
    display: flex;
    align-items: center;
    color: #5c6b7a;
    user-select: none;
}

.remember-me-container input {
    width: auto;
    margin: 0 6px 0 0;
    cursor: pointer;
}

.remember-me-container label {
    cursor: pointer;
}

.login-submit {
    margin-top: 4px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 6px;
    outline: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
}

.btn-primary {
    color: #fff;
    background-color: #0a66c2;
    border-color: #0a66c2;
}

.btn-primary:hover {
    background-color: #004182;
    border-color: #004182;
}

.btn-login {
    min-width: 132px;
    height: 44px;
}

.footer-container {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24px;
    padding: 0 24px;
    text-align: center;
    pointer-events: none;
}

.footer-container a {
    pointer-events: auto;
}

.footer-copyright,
.footer-copyright a,
.footer-copyright a:hover {
    color: #8aa0b8;
    font-size: 12px;
    line-height: 1.6;
    text-decoration: none;
}

a {
    background: transparent;
    outline: none;
}

.error-tip {
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 4px;
    color: #ed4014;
    font-size: 12px;
    line-height: 1;
}

@media (max-width: 768px) {
    .login-left {
        display: none;
    }

    .login-right {
        min-width: 0;
        width: 100%;
        justify-items: center;
    }

    .login-brand {
        top: 16px;
        left: 16px;
        width: 240px;
        height: auto;
    }

    .login-form-core,
    .login-form-actions {
        width: 86%;
        min-width: 0;
        margin-left: 0;
        padding: 0;
    }

    .login-welcome {
        font-size: 32px;
        margin-bottom: 28px;
    }

    .footer-container {
        padding: 0 16px 16px;
    }
}
