﻿/* Customer login page. Keep all layout rules scoped to this page. */
.login-page,
.login-page * {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

.login-page {
    margin: 0;
    min-width: 0;
    color: #253650;
    background: #f5f8ff;
    font: 14px/1.5 "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.login-page input,
.login-page button {
    font: inherit;
}

.login-content {
    min-height: 100vh;
    background: #fff url(../../sjweb/images/login_bg.jpg) no-repeat left center;
    background-size: cover;
}

.login-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.login-layout {
    display: flex;
    flex: 1 0 auto;
    align-items: center;
    width: calc(100% - 96px);
    max-width: 1320px;
    margin: 0 auto;
    padding: 48px 0;
}

.login-visual {
    flex: 1 1 auto;
    min-width: 0;
}

.login-form {
    flex: 0 0 420px;
    width: 420px;
    max-width: 100%;
    margin-left: 48px;
}

.login-heading {
    margin-bottom: 28px;
}

.login-heading h1 {
    margin: 0;
    color: #3270d6;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 1px;
}

.login-heading h1 span {
    display: block;
    margin-top: 4px;
    color: #334967;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 2px;
}

.login-heading p {
    margin: 12px 0 0;
    color: #718096;
}

.login-card {
    padding: 28px 32px;
    border: 1px solid #e1e9f5;
    border-radius: 16px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 14px 44px rgba(40, 74, 129, .10);
}

.login-card h2 {
    margin: 0;
    color: #253650;
    font-size: 20px;
    font-weight: 600;
}

.login-feedback {
    min-height: 30px;
    padding: 5px 0;
    font-size: 13px;
}

.login-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-field {
    position: relative;
    min-width: 0;
}

.login-field input.txt {
    display: block;
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0 15px;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    outline: none;
    color: #253650;
    background: #f9fbfe;
    font-size: 15px;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}

.login-field input.txt::placeholder {
    color: #7a879a;
    opacity: 1;
}

.login-field input.txt:focus {
    border-color: #4c87e2;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(76, 135, 226, .12);
}

.errorMsg {
    color: #ce3848;
    overflow-wrap: anywhere;
}

.login-captcha {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-captcha input.txt {
    flex: 1 1 auto;
    min-width: 0;
    width: 0;
}

.captcha-refresh {
    display: flex;
    flex: 0 0 112px;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.captcha-refresh img {
    display: block;
    max-width: 100%;
}

.sign {
    width: 100%;
    height: 50px;
    margin-top: 22px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: #397be0;
    font-size: 17px !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: background-color .15s;
}

.sign:hover {
    background: #286aca;
}

.sign:disabled {
    opacity: .7;
    cursor: wait;
}

.sign:focus-visible,
.captcha-refresh:focus-visible,
.login-options a:focus-visible {
    outline: 3px solid #9fc2fa;
    outline-offset: 3px;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    color: #67768d;
    font-size: 13px;
}

.remember-account {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

#IsLogin {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #397be0;
}

.login-options a {
    color: #3270d6;
    text-decoration: none;
}

.login-options a:hover {
    text-decoration: underline;
}

.footerStyle {
    flex: 0 0 auto;
    width: 100%;
    padding: 18px 24px;
    color: #77849a;
    background: rgba(248, 250, 254, .95);
    font-size: 12px;
    line-height: 1.8;
    text-align: center;
}

.footerStyle span {
    display: inline-block;
    margin: 0 7px;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1100px) {
    .login-layout {
        width: calc(100% - 64px);
    }

    .login-form {
        flex-basis: 380px;
        width: 380px;
        margin-left: 24px;
    }
}

@media (max-width: 760px) {
    .login-content {
        background: linear-gradient(160deg, #eaf2ff 0%, #f8faff 55%, #fff 100%);
    }

    .login-layout {
        justify-content: center;
        width: 100%;
        padding: 36px 20px;
    }

    .login-visual {
        display: none;
    }

    .login-form {
        flex: 0 1 420px;
        width: 100%;
        margin: 0;
    }

    .login-heading {
        margin-bottom: 22px;
        text-align: center;
    }

    .login-heading h1 {
        font-size: 30px;
    }

    .login-heading h1 span {
        font-size: 20px;
    }

    .login-card {
        padding: 24px;
        border-radius: 14px;
    }

    .footerStyle {
        padding: 16px;
    }
}

@media (max-width: 360px) {
    .login-layout {
        padding-right: 14px;
        padding-left: 14px;
    }

    .login-card {
        padding: 22px 18px;
    }

    .captcha-refresh {
        flex-basis: 98px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-page input,
    .login-page button {
        transition: none;
    }
}
