* {
    box-sizing: border-box
}

html,
body {
    min-height: 100%
}

body {
    margin: 0;
    background: #f6f7f9;
    color: #333;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif
}

.auth-header {
    height: 100px;
    background: #fff;
    box-shadow: 0 0 4px #d5d5d5;
    display: flex;
    align-items: center
}

.auth-header__inner {
    width: 100%;
    max-width: 1266px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center
}

.auth-logo {
    display: block;
    width: 270px;
    max-height: 64px;
    object-fit: contain;
    object-position: left center
}

.auth-product {
    position: relative;
    margin-left: 24px;
    padding-left: 26px;
    font-size: 28px;
    font-weight: 500;
    color: #222
}

.auth-product:before {
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 32px;
    background: #222;
    content: "";
    transform: translateY(-50%)
}

.auth-main {
    width: 100%;
    padding: 80px 24px
}

.box {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 6px rgba(0, 0, 0, .16);
    border-radius: 5px;
    padding: 50px
}

.auth-form {
    width: 100%;
    max-width: 360px;
    margin: 0 auto
}

.auth-form--wide {
    max-width: 800px
}

.box h1 {
    margin: 0 0 24px;
    text-align: center;
    font-size: 25px;
    font-weight: 400;
    color: #5f5f5f;
    letter-spacing: 0
}

.box input {
    width: 100%;
    height: 46px;
    margin-top: 14px;
    padding: 0 16px;
    border: 1px solid #dcdfe6;
    border-radius: 10px;
    background: #fff;
    color: #333;
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s
}

.box input:focus {
    border-color: #48d20e;
    box-shadow: 0 0 0 3px rgba(72, 210, 14, .12)
}

.box button {
    width: 100%;
    height: 46px;
    margin-top: 18px;
    border: 0;
    border-radius: 8px;
    background: #48d20e;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background .2s, transform .1s
}

.box button:hover {
    background: #3fbd0c
}

.box button:active {
    transform: translateY(1px)
}

.box button.secondary {
    margin-top: 12px;
    border: 1px solid #48d20e;
    background: #fff;
    color: #3bb20b
}

.box button.secondary:hover {
    background: #f1fbea
}

.message,
.error {
    margin-bottom: 14px;
    padding: 11px 13px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-all
}

.message {
    border: 1px solid #bfe8ad;
    background: #f1faed;
    color: #2e8610
}

.error {
    border: 1px solid #f2b8b5;
    background: #fff2f1;
    color: #b42318
}

.links {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px
}
a {
    color: #0486e9;
    text-decoration: none
}

.links a:hover {
    text-decoration: underline
}

.auth-note {
    margin: 18px 0 0;
    color: #999;
    text-align: center;
    font-size: 12px;
    line-height: 1.6
}

.login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    gap: 54px;
    align-items: stretch
}

.login-divider {
    border-left: 1px dashed #c5c5c5
}

.login-panel {
    width: 100%;
    max-width: 310px;
    margin: 0 auto
}

.login-panel h2 {
    margin: 0 0 20px;
    color: #5f5f5f;
    text-align: center;
    font-size: 25px;
    font-weight: 400
}

.remember-row {
    min-height: 22px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px
}

.remember-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666
}

.remember-row input {
    width: 14px;
    height: 14px;
    margin: 0;
    border-radius: 0
}

.login-submit {
    background: linear-gradient(90deg, #ff8a00, #ffc515) !important
}

.login-submit:hover {
    background: linear-gradient(90deg, #f58200, #f4b900) !important
}

.login-sub-links {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px
}

.social-button {
    height: 46px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px
}

.social-button--wechat {
    background: #00c005
}

.social-button--wechat:hover {
    background: #00ad05
}

.social-button--qq {
    background: #19a9df
}

.social-button--qq:hover {
    background: #1299ce
}

.provider-icon{display:block;width:24px;height:24px;object-fit:contain;flex:0 0 24px}

.wechat-placeholder {
    width: 158px;
    height: 158px;
    margin: 12px auto 10px;
    border: 8px solid #111;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    color: #555;
    text-align: center;
    font-size: 13px;
    line-height: 1.6
}
.wechat-login-container {
    position: relative;
    width: 220px;
    height: 172px;
    margin: 8px auto 8px;
    overflow: hidden
}

.wechat-login-container iframe {
    position: absolute;
    top: 0;
    left: 50%;
    width: 300px !important;
    height: 300px !important;
    margin-left: -150px;
    border: 0;
    transform: scale(.9);
    transform-origin: top center
}

.scan-tip {
    margin: 0;
    text-align: center;
    color: #555;
    font-size: 13px
}

.social-or {
    margin: 17px 0;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #aaa;
    font-size: 13px
}

.social-or:before,
.social-or:after {
    height: 1px;
    background: #ccc;
    content: "";
    flex: 1
}

.provider-notice {
    text-align: center;
    line-height: 1.8;
    color: #666
}

.auth-tabs {
    margin-bottom: 22px;
    display: flex;
    border-bottom: 1px solid #e5e5e5
}

.auth-tab {
    flex: 1;
    padding: 12px 8px;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #777 !important;
    font-size: 16px !important;
    margin: 0 !important;
    border-bottom: 3px solid transparent !important
}

.auth-tab.is-active {
    color: #ff8a00 !important;
    border-bottom-color: #ff9800 !important
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 10px;
    align-items: end
}

.field-row button {
    font-size: 14px
}

.field-status {
    min-height: 20px;
    padding: 5px 2px 0;
    font-size: 13px;
    line-height: 1.4
}

.field-status.is-checking {
    color: #777
}

.field-status.is-available {
    color: #2e8610
}

.field-status.is-invalid,
.field-status.is-unavailable {
    color: #b42318
}

.agreement {
    margin-top: 16px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #666;
    font-size: 13px;
    line-height: 1.6
}

.agreement input {
    width: 14px;
    height: 14px;
    margin: 3px 0 0;
    border-radius: 0;
    flex: 0 0 auto
}

.occupation-list {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px
}

.occupation-list label {
    padding: 12px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    color: #666;
    cursor: pointer
}

.occupation-list input {
    width: auto;
    height: auto;
    margin: 0 7px 0 0
}

.step-title {
    margin: 0 0 8px;
    text-align: center;
    color: #666;
    font-size: 20px;
    font-weight: 400
}

.step-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.step-actions .secondary {
    margin-top: 18px
}

.success-state {
    text-align: center;
    color: #666;
    line-height: 1.8
}

.success-mark {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #48d20e;
    color: #fff;
    font-size: 38px;
    line-height: 64px
}

@media(max-width:768px) {
    .auth-header {
        height: 76px
    }

    .auth-header__inner {
        padding: 0 18px
    }

    .auth-logo {
        width: 180px
    }

    .auth-product {
        margin-left: 14px;
        padding-left: 16px;
        font-size: 18px
    }

    .auth-product:before {
        height: 24px
    }

    .auth-main {
        padding: 36px 16px
    }

    .box {
        padding: 32px 22px
    }

    .links {
        flex-wrap: wrap
    }

    .box h1 {
        font-size: 23px
    }

    .login-layout {
        grid-template-columns: 1fr;
        gap: 34px
    }

    .login-divider {
        height: 1px;
        border-top: 1px dashed #c5c5c5;
        border-left: 0
    }

    .login-panel {
        max-width: 360px
    }
}
