/* Alibaba enterprise login page layout (from official template) */

#page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    flex-shrink: 0;
    height: 60px;
    background: #fff;
}

.content {
    position: relative;
    flex: 1;
    min-height: 560px;
    background-color: rgb(239, 239, 239);
    background-image: url("https://gw.alicdn.com/imgextra/i1/O1CN01nDcsyI1Rx7IaP6lCr_!!6000000002177-2-tps-1280-500.png");
    background-size: cover;
    background-position: center;
}

.content-inner {
    position: relative;
    width: 1000px;
    max-width: 100%;
    min-height: 560px;
    height: 100%;
    margin: 0 auto;
}

.login-welcome {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 580px;
    max-width: calc(100% - 420px);
    height: 448px;
    background-image: url("../img/login-welcome.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
}

.login-section {
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 380px;
}

.footer {
    flex-shrink: 0;
}

/* Login button — loaded last to beat any overrides */
.login-panel button.signin-button {
    background: #1677ff !important;
    background-color: #1677ff !important;
    color: #fff !important;
}

@media (max-width: 1040px) {
    .content-inner {
        min-height: auto;
        padding: 32px 16px 40px;
    }

    .login-welcome,
    .login-section {
        position: static;
        transform: none;
        margin: 0 auto 24px;
        max-width: 100%;
    }

    .login-welcome {
        width: 100%;
        max-width: 520px;
        height: 400px;
        background-position: center center;
    }

    .login-section {
        width: 100%;
        max-width: 380px;
    }
}
