* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.style4-login-page {
    position: relative;
    min-height: 100vh;
    color: #223047;
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 166, 102, 0.26), transparent 24%),
        radial-gradient(circle at 88% 18%, rgba(57, 158, 255, 0.14), transparent 22%),
        linear-gradient(180deg, #fff8f2 0%, #fffdfb 38%, #f7faff 100%);
    font-family: "Segoe UI Variable", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

body.style4-login-page::before,
body.style4-login-page::after {
    content: '';
    position: fixed;
    border-radius: 999px;
    filter: blur(88px);
    pointer-events: none;
    z-index: 0;
}

body.style4-login-page::before {
    top: 10vh;
    left: -7vw;
    width: 20vw;
    height: 20vw;
    background: rgba(255, 86, 5, 0.14);
}

body.style4-login-page::after {
    right: -8vw;
    bottom: 8vh;
    width: 26vw;
    height: 26vw;
    background: rgba(57, 158, 255, 0.12);
}

.auth-main {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 94px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 38px 20px 88px;
}

.auth-panel {
    position: relative;
    width: 100%;
    display: grid;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(255, 136, 73, 0.14);
    background: rgba(255, 255, 255, 0.9);
    box-shadow:
        0 22px 70px rgba(255, 86, 5, 0.10),
        0 18px 40px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(16px);
}

.auth-panel--with-banner {
    max-width: 1240px;
    min-height: 720px;
    grid-template-columns: minmax(430px, 1.04fr) minmax(380px, 0.96fr);
}

.auth-panel--no-banner {
    max-width: 760px;
    grid-template-columns: minmax(0, 1fr);
}

.auth-panel__form {
    position: relative;
    z-index: 2;
    padding: 44px 44px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 250, 245, 0.96) 100%);
}

.auth-panel--no-banner .auth-panel__form {
    padding: 40px 42px 38px;
}

.auth-panel__topbar,
.auth-panel__title-row,
.auth-form__options,
.auth-third__item,
.auth-panel__journey-item,
.auth-panel__assist-item,
.auth-panel__stats {
    display: flex;
    align-items: center;
}

.auth-panel__topbar,
.auth-panel__title-row {
    justify-content: space-between;
    gap: 16px;
}

.auth-panel__topbar-note {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8e7d72;
}

.auth-panel__intro {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-panel__eyebrow,
.auth-panel__banner-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 86, 5, 0.16);
    background: rgba(255, 86, 5, 0.08);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.auth-panel__title {
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #223047;
    font-weight: 800;
}

.auth-panel__subtitle {
    max-width: 580px;
    color: #677589;
    font-size: 15px;
    line-height: 1.78;
}

.auth-panel__ghost-link,
.auth-form__link,
.auth-policy-link {
    color: var(--color-primary);
    text-decoration: none;
}

.auth-panel__ghost-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 86, 5, 0.18);
    background: rgba(255, 86, 5, 0.06);
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.auth-panel__ghost-link:hover,
.auth-form__link:hover,
.auth-policy-link:hover {
    color: #d94a00;
}

.auth-panel__ghost-link:hover {
    transform: translateY(-1px);
    background: rgba(255, 86, 5, 0.1);
    border-color: rgba(255, 86, 5, 0.28);
}

.auth-panel__highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-panel__highlight {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff7f1;
    border: 1px solid rgba(255, 148, 90, 0.2);
    color: #5d687a;
    font-size: 13px;
}

.auth-panel__highlight i {
    color: var(--color-primary);
}

.auth-tabs {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border-radius: 20px;
    background: #fff5ee;
    border: 1px solid rgba(255, 148, 90, 0.16);
}

.auth-tabs__btn {
    min-height: 48px;
    border: none;
    border-radius: 14px;
    background: transparent;
    color: #7e6f67;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.auth-tabs__btn:hover {
    color: #2d394d;
}

.auth-tabs__btn--active {
    color: #ffffff;
    background: linear-gradient(180deg, #ff7100, #ff9243);
    box-shadow: 0 10px 22px rgba(255, 86, 5, 0.2);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form--hidden {
    display: none;
}

.auth-form__group {
    margin: 0;
}

.auth-form__group--hero-phone {
    margin-top: -2px;
}

.auth-form__group--with-btn {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 138px;
    gap: 12px;
    align-items: stretch;
}

.auth-form__label {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid #f1d7c8;
    background: #fffdfb;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.auth-form__label:focus-within {
    border-color: rgba(255, 86, 5, 0.44);
    background: #ffffff;
    box-shadow:
        0 0 0 4px rgba(255, 86, 5, 0.09),
        0 10px 24px rgba(255, 86, 5, 0.08);
    transform: translateY(-1px);
}

.auth-form__icon {
    flex: 0 0 18px;
    width: 18px;
    margin-right: 12px;
    color: #ff8a43;
    font-size: 16px;
    text-align: center;
}

.auth-form__input {
    flex: 1 1 auto;
    width: 100%;
    border: 0;
    background: transparent;
    color: #223047;
    font-size: 15px;
    outline: none;
}

.auth-form__input::placeholder {
    color: #9b8f88;
}

.auth-form__input--password {
    padding-right: 42px;
}

.auth-form__code-btn {
    min-height: 58px;
    padding: 0 16px;
    border: 1px solid rgba(255, 86, 5, 0.18);
    border-radius: 18px;
    background: #fff1e6;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
    white-space: nowrap;
}

.auth-form__code-btn:hover {
    transform: translateY(-1px);
    background: #ffe8d8;
    border-color: rgba(255, 86, 5, 0.28);
}

.auth-form__code-btn:disabled,
.auth-form__submit:disabled {
    opacity: 0.58;
    cursor: not-allowed;
    transform: none;
}

.auth-form__options {
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: -2px;
}

.auth-form__options--stack {
    justify-content: flex-start;
}

.auth-form__remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #697789;
    font-size: 14px;
    line-height: 1.7;
}

.auth-form__remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
}

.auth-form__submit {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, #ff7100, #ff9243);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 18px 34px rgba(255, 86, 5, 0.18);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.auth-form__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 38px rgba(255, 86, 5, 0.22);
    filter: saturate(1.03);
}

.auth-form__pwd-toggle,
.auth-form__toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 0;
    background: transparent;
    color: #a28574;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.22s ease;
}

.auth-form__pwd-toggle:hover,
.auth-form__toggle:hover {
    color: var(--color-primary);
}

.auth-third {
    padding-top: 8px;
    border-top: 1px solid rgba(255, 148, 90, 0.16);
}

.auth-third__title {
    position: relative;
    margin-bottom: 16px;
    color: #8b7e78;
    text-align: center;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-third__title::before,
.auth-third__title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 62px);
    height: 1px;
    background: rgba(255, 148, 90, 0.18);
}

.auth-third__title::before {
    left: 0;
}

.auth-third__title::after {
    right: 0;
}

.auth-third__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.auth-third__item {
    gap: 14px;
    justify-content: flex-start;
    min-height: 76px;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 148, 90, 0.14);
    background: #fffaf6;
    color: #5f6c7f;
    text-decoration: none;
    transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.auth-third__item:hover {
    transform: translateY(-2px);
    background: #ffffff;
    border-color: rgba(255, 148, 90, 0.24);
    box-shadow: 0 14px 24px rgba(255, 86, 5, 0.08);
}

.auth-third__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(255, 148, 90, 0.12);
    font-size: 22px;
    flex: 0 0 44px;
}

.auth-third__item--wechat .auth-third__icon {
    color: #32c85a;
}

.auth-third__item--alipay .auth-third__icon {
    color: #399eff;
}

.auth-third__copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-third__name {
    font-size: 15px;
    font-weight: 700;
    color: #223047;
}

.auth-third__copy em {
    font-style: normal;
    color: #8896a8;
    font-size: 12px;
}

.auth-third__mobile-reg {
    display: none;
    margin-top: 18px;
    text-align: center;
    color: #6b798b;
    font-size: 14px;
}

.auth-panel__banner {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background: linear-gradient(180deg, #fff6ee 0%, #fff0e4 100%);
}

.auth-panel__banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.auth-panel__banner-mask {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 252, 248, 0.14) 0%, rgba(255, 242, 228, 0.38) 44%, rgba(255, 147, 67, 0.62) 100%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 42%, rgba(255, 86, 5, 0.46) 100%);
}

.auth-panel__banner-copy {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 22px;
    padding: 48px 40px 40px;
}

.auth-panel__banner-copy h2 {
    max-width: 460px;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.auth-panel__banner-copy p {
    max-width: 470px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    line-height: 1.8;
}

.auth-panel__stats {
    gap: 12px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.auth-panel__stat {
    min-width: 112px;
    padding: 16px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.auth-panel__stat strong {
    display: block;
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.auth-panel__stat span {
    display: block;
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
}

.auth-panel__journey {
    display: grid;
    gap: 12px;
}

.auth-panel__journey-item {
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.auth-panel__journey-item span {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.26);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}

.auth-panel__journey-item p {
    font-size: 14px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
}

.auth-panel__banner-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.auth-panel__stepbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-panel__step {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff6ee;
    border: 1px solid rgba(255, 148, 90, 0.16);
    color: #7a6e68;
    font-size: 13px;
}

.auth-panel__step--active {
    background: rgba(255, 86, 5, 0.08);
    border-color: rgba(255, 86, 5, 0.18);
    color: var(--color-primary);
}

.auth-panel__assist-box {
    display: grid;
    gap: 12px;
}

.auth-panel__assist-item {
    gap: 16px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff9f4 0%, #ffffff 100%);
    border: 1px solid rgba(255, 148, 90, 0.16);
}

.auth-panel__assist-item strong {
    flex: 0 0 86px;
    color: #253247;
    font-size: 14px;
}

.auth-panel__assist-item p {
    color: #68778a;
    font-size: 14px;
    line-height: 1.7;
}

.auth-form__remember--wrap {
    align-items: flex-start;
}

@media screen and (max-width: 1160px) {
    .auth-panel--with-banner {
        grid-template-columns: minmax(0, 1fr);
        max-width: 760px;
        min-height: auto;
    }

    .auth-panel__banner {
        min-height: 420px;
        order: -1;
    }

    .auth-panel__banner-copy {
        justify-content: flex-end;
    }
}

@media screen and (max-width: 768px) {
    body.style4-login-page {
        background:
            linear-gradient(180deg, #fff7f1 0%, #ffffff 42%, #f8fbff 100%);
    }

    body.style4-login-page::before,
    body.style4-login-page::after {
        display: none;
    }

    .auth-main {
        padding: 12px 10px 46px;
        align-items: flex-start;
    }

    .auth-panel,
    .auth-panel--with-banner,
    .auth-panel--no-banner {
        border-radius: 24px;
        overflow: hidden;
        background: #ffffff;
        backdrop-filter: none;
        box-shadow:
            0 18px 40px rgba(255, 86, 5, 0.08),
            0 8px 20px rgba(15, 23, 42, 0.05);
    }

    .auth-panel__form,
    .auth-panel--no-banner .auth-panel__form {
        padding: 26px 18px 24px;
        background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%);
    }

    .auth-panel__title-row,
    .auth-panel__topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-panel__title {
        font-size: 30px;
    }

    .auth-panel__subtitle,
    .auth-panel__banner-copy p {
        font-size: 14px;
    }

    .auth-form__group--with-btn {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-form__code-btn {
        width: 100%;
    }

    .auth-third__list {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-third__mobile-reg {
        display: block;
    }

    .auth-panel__banner {
        height: 300px;
        min-height: 260px;
        background: linear-gradient(135deg, #fff3e9 0%, #ffb070 100%);
    }

    .auth-panel__banner-image {
        position: absolute;
        inset: 0;
        height: 100%;
        opacity: 0.92;
        filter: none;
        transform: none;
        object-position: center top;
    }

    .auth-panel__banner-mask {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 245, 236, 0.18) 45%, rgba(255, 114, 28, 0.42) 100%);
    }

    .auth-panel__banner-copy {
        justify-content: flex-end;
        gap: 10px;
        padding: 18px 18px 16px;
    }

    .auth-panel__stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .auth-panel__stat {
        min-width: 0;
        padding: 10px 8px;
        border: 1px solid rgba(255, 255, 255, 0.78);
        background: rgba(255, 255, 255, 0.86);
        backdrop-filter: none;
        box-shadow: 0 8px 18px rgba(255, 86, 5, 0.08);
    }

    .auth-panel__stat strong {
        color: #ff5b22;
        font-size: 18px;
    }

    .auth-panel__stat span {
        color: #536174;
        font-size: 11px;
    }

    .auth-panel__journey {
        gap: 8px;
    }

    .auth-panel__journey-item {
        gap: 10px;
        padding: 10px 12px;
        border: 1px solid rgba(255, 255, 255, 0.76);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: none;
        box-shadow: 0 8px 18px rgba(255, 86, 5, 0.08);
    }

    .auth-panel__journey-item span {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        border-radius: 11px;
        background: #fff3ea;
        color: #ff5b22;
    }

    .auth-panel__journey-item p {
        color: #48576c;
        font-size: 12px;
        line-height: 1.6;
    }

    .auth-panel__assist-item {
        flex-direction: column;
    }

    .auth-panel__assist-item strong {
        flex: none;
    }
}

@media screen and (max-width: 480px) {
    .auth-main {
        padding: 0 8px 34px;
    }

    .auth-panel,
    .auth-panel--with-banner,
    .auth-panel--no-banner {
        border-radius: 22px;
    }

    .auth-panel__banner {
        height: 352px;
        min-height: 236px;
        border-radius: 22px 22px 0 0;
    }

    .auth-panel__banner-copy {
        padding: 14px 14px 12px;
    }

    .auth-panel__form,
    .auth-panel--no-banner .auth-panel__form {
        padding: 22px 16px 22px;
        gap: 18px;
    }

    .auth-panel__eyebrow,
    .auth-panel__banner-eyebrow {
        padding: 6px 10px;
        font-size: 11px;
    }

    .auth-panel__title-row {
        gap: 12px;
    }

    .auth-panel__title {
        font-size: 28px;
        line-height: 1.16;
    }

    .auth-panel__subtitle {
        line-height: 1.7;
    }

    .auth-tabs {
        width: 100%;
    }

    .auth-tabs__btn,
    .auth-form__label,
    .auth-form__code-btn,
    .auth-form__submit {
        min-height: 54px;
    }

    .auth-panel__highlights,
    .auth-panel__stepbar {
        gap: 8px;
    }

    .auth-panel__highlight,
    .auth-panel__step {
        width: 100%;
        justify-content: center;
    }

    .auth-panel__stats {
        display: none;
    }

    .auth-panel__journey {
        max-width: 100%;
    }

    .auth-panel__journey-item {
        padding: 9px 10px;
        border-radius: 15px;
    }

    .auth-panel__journey-item:nth-child(n + 3) {
        display: none;
    }

    .auth-panel__journey-item p {
        font-size: 12px;
        line-height: 1.55;
    }

    .auth-third__item {
        min-height: 70px;
        padding: 0 14px;
    }
}
/* 微信扫码登录弹窗尺寸 */
.auth-layer-qrcode { padding: 20px; text-align: center; }
.auth-layer-qrcode__frame { display: block; width: min(100%, 360px); height: 360px; margin: 0 auto; border: 0; background: #fff; overflow: hidden; }
.auth-layer-qrcode__text { margin: 14px 0 0; color: #666; font-size: 14px; }
@media (max-width: 480px) {
    .auth-layer-qrcode { padding: 16px; }
    .auth-layer-qrcode__frame { width: min(100%, 260px); height: 260px; }
}
