.legacy-login-page {
    min-height: 100%;
    background: url("../images/legacy-login-background.png") no-repeat center center;
    background-size: cover;
}

.legacy-login-header {
    height: 80px;
    background: url("../images/legacy-login-header-bg.png") repeat-x 0 0;
    box-shadow: 0 0 10px rgba(196, 196, 196, 0.8);
}

.legacy-login-header-inner {
    width: min(1024px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
}

.legacy-login-body {
    min-height: calc(100vh - 80px);
    padding: 49px 16px 40px;
}

.legacy-login-card {
    width: min(900px, 100%);
    min-height: 400px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 10px rgba(196, 196, 196, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 24px 50px 24px 50px;
}

.legacy-login-computer {
    width: min(402px, 100%);
    height: auto;
    flex: 0 1 402px;
}

.legacy-login-panel {
    width: 280px;
    flex: 0 0 280px;
}

.legacy-login-payment-title {
    position: relative;
    height: 69px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #2c916c;
    font-size: 40px;
    line-height: 1;
}

.legacy-login-title-dot {
    width: 6px;
    height: 6px;
    background: url("../images/legacy-login-icon.png") no-repeat 0 0;
    flex: 0 0 6px;
}

.legacy-login-welcome {
    height: 57px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.legacy-login-line {
    width: 69px;
    height: 1px;
    background: #000;
}

.legacy-login-welcome-text {
    width: 112px;
    text-align: center;
    font-size: 20px;
    color: #000;
    line-height: 57px;
}

.legacy-login-error {
    min-height: 24px;
    margin-bottom: 8px;
    color: #f27318;
    font-size: 12px;
    line-height: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.legacy-login-error-empty {
    visibility: hidden;
}

.legacy-login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legacy-login-field {
    display: flex;
    align-items: center;
    width: 100%;
}

.legacy-login-input-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-right: 9px;
    margin-left: -12px;
    background-image: url("../images/legacy-login-icon.png");
    background-repeat: no-repeat;
}

.legacy-login-user-icon {
    background-position: 0 -10px;
}

.legacy-login-password-icon {
    background-position: 0 -35px;
}

.legacy-login-field input {
    width: 100%;
    height: 34px;
    border: 1px solid #ccc;
    padding: 0 15px;
    font-size: 14px;
    color: #333;
    line-height: 34px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.legacy-login-field input::placeholder {
    color: #999;
}

.legacy-login-button {
    width: 250px;
    height: 39px;
    margin: 14px auto 0;
    border: 0;
    border-bottom: 3px solid #006a2f;
    background: #009944;
    color: #fff;
    font-size: 18px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
}

.legacy-login-button:focus {
    outline: none;
}

@media (max-width: 960px) {
    .legacy-login-body {
        padding-top: 24px;
    }

    .legacy-login-card {
        padding: 24px;
        flex-direction: column;
        min-height: auto;
    }

    .legacy-login-panel {
        width: min(280px, 100%);
        flex-basis: auto;
    }

    .legacy-login-payment-title {
        font-size: 32px;
    }
}

@media (max-width: 520px) {
    .legacy-login-card {
        padding: 20px 16px;
    }

    .legacy-login-payment-title {
        font-size: 26px;
        gap: 8px;
    }

    .legacy-login-welcome {
        padding: 0;
    }

    .legacy-login-line {
        width: 48px;
    }

    .legacy-login-button {
        width: 100%;
    }
}
