html {
    height: 100%;
    background-color: #4335b8;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: linear-gradient(135deg, #4335b8 0%, #5c4dd6 46%, #8577ec 100%);
    background-attachment: fixed;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

.login-shell {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.login-shell:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 58%;
    height: 100%;
    background-image: url(../../../Upload/UserImages/login-hero.jpg);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.login-shell:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 42%;
    height: 100%;
    background-color: #f5f6fb;
}

.login-hero {
    position: absolute;
    top: 50%;
    left: 11%;
    transform: translateY(-50%);
    z-index: 2;
    font-size: 0;
    text-align: left;
}

.login-brand {
    display: inline-block;
    vertical-align: middle;
    height: 82px;
}

.login-brand .login-logo-img {
    display: block;
    height: 82px;
    width: auto;
}

.login-brand .login-logo-text {
    display: inline-block;
    vertical-align: middle;
    color: #ffffff;
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 3px;
}

.login-company-box {
    display: inline-block;
    vertical-align: middle;
    width: 470px;
    margin-left: 22px;
    text-align: left;
}

.login-company {
    font-size: 38px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.32;
    letter-spacing: 1px;
    text-align: justify;
    text-align-last: justify;
    text-shadow: 0 1px 8px rgba(28, 18, 90, 0.28);
}

.login-company-en {
    margin-top: 8px;
    font-size: 17px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.4;
    letter-spacing: 0.4px;
    text-align: justify;
    text-align-last: justify;
    text-shadow: 0 1px 6px rgba(28, 18, 90, 0.24);
}

.login-title {
    display: block;
    margin-top: 46px;
    font-size: 30px;
    font-weight: 400;
    color: #ffe6a8;
    line-height: 1.2;
    letter-spacing: 7px;
    text-indent: 7px;
    text-align: center;
    text-shadow: 0 1px 10px rgba(28, 18, 90, 0.3);
}

.login-form {
    position: absolute;
    top: 50%;
    left: 58%;
    width: 42%;
    transform: translateY(-50%);
    z-index: 2;
    padding: 0 54px;
    box-sizing: border-box;
}

.login-card {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 46px 38px 42px 38px;
    box-sizing: border-box;
    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(48, 38, 120, 0.10);
}

.login-head {
    margin-bottom: 30px;
}

.login-head-title {
    font-size: 24px;
    font-weight: 600;
    color: #2b3240;
    letter-spacing: 1px;
}

.login-head-sub {
    margin-top: 9px;
    font-size: 13px;
    color: #8d95a5;
}

.login-field {
    width: 100%;
    max-width: 380px;
    margin: 0 auto 22px auto;
    text-align: left;
}

.login-field label {
    display: block;
    margin-bottom: 9px;
    font-size: 14px;
    font-weight: 500;
    color: #5b6472;
}

.login-field .tx-wide {
    display: none;
}

.login-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #e4e8f0;
    border-radius: 8px;
    background-color: #f7f8fb;
    font-size: 15px;
    color: #2b3240;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.login-field .login-input:focus {
    border-color: #6355e0;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 85, 224, 0.13);
}

.login-actions {
    width: 100%;
    max-width: 380px;
    margin: 34px auto 0 auto;
}

.login-btn {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 20px;
    background-color: #5c4dd6;
    background-image: none;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: normal;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 6px 18px rgba(92, 77, 214, 0.28);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.login-btn:hover {
    background-color: #4b3dc4;
    border-color: transparent;
    box-shadow: 0 8px 22px rgba(92, 77, 214, 0.34);
}

.login-field span[controltovalidate] {
    color: #e5645b;
    font-size: 12px;
}

.login-footer {
    position: fixed;
    right: 0;
    bottom: 26px;
    width: 42%;
    z-index: 3;
    text-align: center;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.95;
    color: #98a0ae;
}

.login-footer a {
    color: #98a0ae;
    text-decoration: none;
}

.login-footer a:hover {
    color: #5c4dd6;
}

.login-footer .footer-prefix {
    display: none;
}

.login-footer img {
    margin-right: 5px;
    vertical-align: -2px;
}

.login-error {
    position: fixed;
    top: 50%;
    left: 50%;
    width: auto;
    max-width: 560px;
    transform: translate(-50%, -50%);
    z-index: 4;
    padding: 0 24px;
    box-sizing: border-box;
    background-color: transparent;
}

.login-error-inner {
    background-color: #ffffff;
    border: 1px solid #e8ecf3;
    border-radius: 12px;
    padding: 30px 32px 26px 32px;
}

@media (max-width: 900px) {
    .login-shell:before {
        width: 100%;
        height: 42%;
    }

    .login-shell:after {
        top: 42%;
        width: 100%;
        height: 58%;
    }

    .login-hero {
        top: 0;
        left: 0;
        width: 100%;
        height: 42%;
        padding: 0 26px;
        transform: none;
        box-sizing: border-box;
        justify-content: center;
    }

    .login-brand {
        height: 54px;
    }

    .login-company-box {
        width: auto;
        margin-left: 16px;
        text-align: left;
    }

    .login-company {
        font-size: 24px;
        text-align: left;
        text-align-last: left;
    }

    .login-company-en {
        margin-top: 5px;
        font-size: 12px;
        text-align: left;
        text-align-last: left;
    }

    .login-title {
        margin-top: 20px;
        font-size: 20px;
        letter-spacing: 4px;
        text-indent: 4px;
    }

    .login-form {
        top: 42%;
        left: 0;
        width: 100%;
        padding: 0 26px;
        transform: none;
    }

    .login-card {
        padding: 32px 26px 30px 26px;
    }

    .login-head {
        margin-bottom: 24px;
    }

    .login-footer {
        bottom: 6px;
        width: 100%;
        font-size: 11px;
        line-height: 1.7;
    }
}
