:root {
    --login-primary: #2563eb;
    --login-text: #172033;
    --login-muted: #64748b;
    --login-border: #dbe3ee;
}

html,
body {
    width: 100%;
    min-height: 100%;
    min-width: 320px;
    margin: 0;
    background: #f3f6fb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important;
}

body {
    position: relative;
    min-height: 680px;
    overflow-x: hidden;
}

.login_back {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 54% !important;
    background-image: linear-gradient(115deg, rgba(8, 20, 40, 0.88), rgba(17, 45, 86, 0.52)), url(/images/Background.png) !important;
    background-position: center;
    background-size: cover;
}

.login_warp {
    position: relative !important;
    top: auto !important;
    z-index: 1;
    display: flex;
    width: 100%;
    min-height: 680px;
    height: auto !important;
    margin-top: 0 !important;
    padding: 32px 0;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: center;
    transform: none;
}

.login_dom {
    width: min(1040px, calc(100% - 48px)) !important;
    height: 560px !important;
    display: flex;
    margin: 0 auto;
    overflow: hidden;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid rgba(219, 227, 238, 0.88);
    border-radius: 16px !important;
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.2) !important;
}

.login_left {
    float: none;
    flex: 0 0 48%;
    width: 48% !important;
    height: 100%;
    display: flex;
    align-items: center;
}

.login_left form {
    width: 100%;
}

.login_left ul {
    width: min(360px, calc(100% - 64px));
    margin: 0 auto !important;
}

.login_left ul li {
    position: relative;
}

.login_left ul li.login-title {
    margin: 0 0 8px !important;
    color: var(--login-text) !important;
    font-size: 30px !important;
    font-weight: 750;
    letter-spacing: -0.5px !important;
}

.login-title > span {
    display: block;
    margin-bottom: 8px;
    color: var(--login-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.login_left ul li.login-subtitle {
    margin: 0 0 28px !important;
    color: var(--login-muted) !important;
    font-size: 13px !important;
    line-height: 1.6;
}

.login-field {
    margin: 0 0 18px !important;
}

.login-field label {
    display: block;
    margin: 0 0 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 650;
}

.login_left ul li.login-field input {
    width: 100% !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 13px !important;
    box-sizing: border-box;
    color: var(--login-text);
    background: #fff !important;
    border: 1px solid var(--login-border) !important;
    border-radius: 8px !important;
    box-shadow: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.login_left ul li.login-field input:focus {
    border: 1px solid #60a5fa !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}

.login-password-field input {
    padding-right: 54px !important;
}

.password-toggle {
    position: absolute;
    right: 8px;
    bottom: 7px;
    height: 30px;
    padding: 0 8px;
    color: var(--login-primary);
    background: transparent;
    border: 0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
}

.password-toggle:hover {
    background: #eff6ff;
}

.login_left ul li.login-action button {
    width: 100% !important;
    height: 44px !important;
    margin: 4px 0 0 !important;
    padding: 0 18px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #4f46e5) !important;
    border: 0;
    border-radius: 8px !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22) !important;
    font-size: 14px !important;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.login_left ul li.login-action button span {
    display: inline;
    float: none;
    width: auto;
    height: auto;
    margin: 0;
    line-height: 1;
}

.login_left ul li.login-action button:hover {
    transform: translateY(-1px);
    box-shadow: 0 11px 22px rgba(37, 99, 235, 0.28) !important;
}

.login_left ul li.login-action button:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.login_right {
    float: none;
    flex: 0 0 52%;
    width: 52% !important;
    height: 100%;
    position: relative;
}

.login_right:after {
    content: "安全、清晰、高效地管理平台数据";
    position: absolute;
    right: 24px;
    bottom: 24px;
    left: 24px;
    padding: 18px 20px;
    color: #fff;
    background: rgba(15, 23, 42, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    backdrop-filter: blur(8px);
    font-size: 15px;
    font-weight: 650;
}

.login_right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login_warp > p {
    margin: 24px 16px 0 !important;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0;
    color: #64748b !important;
    opacity: 0.72 !important;
}

#errorMsg {
    position: fixed;
    top: 20px;
    left: 50%;
    z-index: 10;
    width: min(480px, calc(100% - 32px));
    transform: translateX(-50%);
    border-radius: 8px;
}

@media (max-width: 820px) {
    body,
    .login_warp {
        min-height: 640px;
    }

    .login_dom {
        width: min(500px, calc(100% - 28px)) !important;
        height: auto !important;
        min-height: 550px;
    }

    .login_left {
        flex-basis: 100%;
        width: 100% !important;
        min-height: 550px;
    }

    .login_right {
        display: none;
    }
}

@media (max-width: 480px) {
    body,
    .login_warp {
        min-height: 600px;
    }

    .login_warp {
        padding: 20px 0;
    }

    .login_dom {
        min-height: 520px;
        border-radius: 12px !important;
    }

    .login_left {
        min-height: 520px;
    }

    .login_left ul {
        width: calc(100% - 40px);
    }

    .login_left ul li.login-title {
        font-size: 25px !important;
    }

}
