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

body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 113, 0, 0.12), transparent 26%),
        radial-gradient(circle at right top, rgba(255, 146, 67, 0.1), transparent 24%),
        linear-gradient(180deg, #fffdf8 0%, #f7f8fb 36%, #f3f5f9 100%);
    color: #1e293b;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.auth-main {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 52px 20px 64px;
}

.auth-main::before,
.auth-main::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(8px);
}

.auth-main::before {
    left: 6%;
    top: 10%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 146, 67, 0.16) 0%, rgba(255, 146, 67, 0) 72%);
}

.auth-main::after {
    right: 8%;
    bottom: 8%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 113, 0, 0.12) 0%, rgba(255, 113, 0, 0) 74%);
}

.auth-panel {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    overflow: hidden;
    border-radius: 34px;
    border: 1px solid rgba(229, 235, 243, 0.95);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.auth-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 32px 76px rgba(15, 23, 42, 0.11);
}

.auth-panel--with-banner {
    max-width: 1180px;
}

.auth-panel--with-banner .auth-panel__form,
.auth-panel--with-banner .auth-panel__banner {
    flex: 1 1 50%;
    min-width: 0;
}

.auth-panel--with-banner .auth-panel__form {
    padding: 52px 48px 44px;
}

.auth-panel--with-banner .auth-panel__banner {
    position: relative;
    min-height: 720px;
    background: #111827;
}

.auth-panel--no-banner {
    max-width: 560px;
    margin: 0 auto;
}

.auth-panel--no-banner .auth-panel__form {
    width: 100%;
    padding: 40px 38px 36px;
}

.auth-panel--compact-card {
    border-radius: 30px;
}

.auth-panel__head {
    margin-bottom: 26px;
}

.auth-panel__head--compact {
    margin-bottom: 24px;
}

.auth-panel__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 113, 0, 0.1);
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth-panel__title {
    margin-top: 16px;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.05em;
    color: #0f172a;
}

.auth-panel__subtitle {
    margin-top: 14px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.9;
    max-width: 540px;
}

.auth-panel__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.auth-panel__chips span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #e8eef6;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    color: #475569;
    font-size: 13px;
    font-weight: 600;
}

.auth-panel__utility {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 18px;
    color: #64748b;
    font-size: 14px;
}

.auth-panel__utility--left {
    justify-content: flex-start;
}

.auth-tabs {
    display: inline-flex;
    gap: 10px;
    margin-bottom: 26px;
    padding: 6px;
    border-radius: 18px;
    background: #f5f7fb;
    border: 1px solid #e8eef6;
}

.auth-tabs__btn {
    border: none;
    background: transparent;
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.22s ease;
}

.auth-tabs__btn:hover {
    color: #1e293b;
}

.auth-tabs__btn--active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
}

.auth-form {
    transition: opacity 0.2s ease;
}

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

.auth-form__group {
    margin-bottom: 18px;
}

.auth-form__group--with-btn {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.auth-form__group--with-btn .auth-form__label,
.auth-form__group--with-btn .auth-form__label--flex {
    flex: 1;
    min-width: 0;
}

.auth-form__label {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 0 18px;
    border: 1px solid #dfe7f1;
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfcfe 0%, #f7f9fc 100%);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.auth-form__label:hover {
    border-color: #d5dfeb;
}

.auth-form__label:focus-within {
    border-color: rgba(255, 113, 0, 0.42);
    box-shadow: 0 0 0 4px rgba(255, 113, 0, 0.08);
    background: #fff;
}

.auth-form__icon {
    flex-shrink: 0;
    width: 20px;
    margin-right: 12px;
    color: #94a3b8;
    font-size: 16px;
    text-align: center;
}

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

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

.auth-form__code-btn {
    flex-shrink: 0;
    min-width: 126px;
    min-height: 58px;
    padding: 0 18px;
    border: 1px solid #e3ebf5;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
    color: #1e293b;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.22s ease;
}

.auth-form__code-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 113, 0, 0.26);
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.05);
}

.auth-form__code-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-form__options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 16px 0 24px;
    font-size: 14px;
}

.auth-form__remember {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    line-height: 1.6;
}

.auth-form__remember--wrap {
    flex-wrap: wrap;
    gap: 4px 6px;
}

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

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

.auth-form__link:hover,
.auth-policy-link:hover {
    text-decoration: underline;
}

.auth-form__submit {
    width: 100%;
    min-height: 58px;
    border: none;
    border-radius: 20px;
    background: var(--gradient-btn);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 18px 28px rgba(255, 113, 0, 0.22);
    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 34px rgba(255, 113, 0, 0.28);
    filter: saturate(1.02);
}

.auth-form__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 10px 20px rgba(255, 113, 0, 0.18);
}

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

.auth-form__toggle,
.auth-form__pwd-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

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

.auth-third {
    margin: 28px 0 0;
    text-align: center;
}

.auth-third--tips {
    margin-top: 22px;
}

.auth-third__title {
    position: relative;
    margin-bottom: 18px;
    color: #94a3b8;
    font-size: 13px;
}

.auth-third__title::before,
.auth-third__title::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 24%;
    height: 1px;
    background: #e6edf5;
}

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

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

.auth-third__list {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.auth-third__item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    min-width: 150px;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafd 100%);
    color: #475569;
    transition: all 0.22s ease;
}

.auth-third__item:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.06);
}

.auth-third__icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #fff;
    font-size: 22px;
}

.auth-third__item--wechat .auth-third__icon {
    color: #2bae1a;
}

.auth-third__item--alipay .auth-third__icon {
    color: #1677ff;
}

.auth-third__name {
    font-size: 14px;
    font-weight: 700;
}

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

.auth-third__desc {
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
}

.auth-extra {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e9edf2;
}

.auth-extra__link {
    color: #64748b;
    font-size: 14px;
}

.auth-extra__link:hover {
    color: var(--color-primary-hover);
}

.auth-note {
    margin-top: 22px;
    padding: 16px 18px 18px;
    border-radius: 18px;
    border: 1px solid #edf2f7;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.auth-note strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
}

.auth-note p {
    margin-top: 8px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.8;
}

.auth-note--soft {
    background: linear-gradient(180deg, #fffaf4 0%, #fff 100%);
    border-color: #f3e7da;
}

.auth-panel__banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 15, 35, 0.18) 0%, rgba(8, 15, 35, 0.48) 100%),
        linear-gradient(135deg, rgba(255, 113, 0, 0.16) 0%, rgba(255, 113, 0, 0) 42%);
    z-index: 1;
}

.auth-panel__banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.auth-panel__banner-content {
    position: absolute;
    left: 36px;
    right: 36px;
    bottom: 34px;
    z-index: 2;
    padding: 24px 24px 26px;
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    color: #fff;
}

.auth-panel__banner-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth-panel__banner-content h2 {
    margin-top: 16px;
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.auth-panel__banner-content p {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.9;
    max-width: 420px;
}

.auth-panel__banner-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.auth-panel__banner-metrics div {
    padding: 16px 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-panel__banner-metrics strong {
    display: block;
    font-size: 24px;
    line-height: 1.1;
}

.auth-panel__banner-metrics span {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    line-height: 1.7;
}

.auth-panel__banner-link {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block;
}

@media screen and (max-width: 960px) {
    .auth-panel--with-banner {
        max-width: 1040px;
    }

    .auth-panel--with-banner .auth-panel__form {
        padding: 42px 34px 36px;
    }

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

@media screen and (max-width: 768px) {
    body {
        min-height: auto;
        padding-top: 116px;
        overflow-x: hidden;
    }

    header.shadow {
        height: auto !important;
        min-height: 116px !important;
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
        background: #fff !important;
        background-color: #fff !important;
        box-shadow: 0 2px 6px 1px #2a66c619 !important;
        overflow: visible !important;
    }

    header.shadow .container,
    header.shadow .container > .d-flex,
    header.shadow .container > .d-flex > div:first-child,
    header.shadow .container > .d-flex > div:first-child .flex,
    header.shadow nav,
    header.shadow nav ul {
        height: auto !important;
        min-height: 0 !important;
    }

    header.shadow .container {
        display: block !important;
        padding-bottom: 12px !important;
    }

    header.shadow .container,
    header.shadow .container > .d-flex,
    header.shadow nav {
        background: #fff !important;
        overflow: visible !important;
    }

    header.shadow nav {
        display: block !important;
        margin-top: 6px;
    }

    header.shadow nav ul {
        display: flex !important;
        align-items: flex-start !important;
        row-gap: 10px;
    }

    .auth-main {
        flex: none;
        padding: 18px 12px 24px;
    }

    .auth-main::before,
    .auth-main::after {
        display: none;
    }

    .auth-panel {
        border-radius: 24px;
    }

    .auth-panel--with-banner {
        max-width: 460px;
        flex-direction: column;
    }

    .auth-panel--with-banner .auth-panel__banner {
        display: none;
    }

    .auth-panel--with-banner .auth-panel__form,
    .auth-panel--no-banner .auth-panel__form {
        padding: 28px 22px 24px;
    }

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

    .auth-tabs {
        display: flex;
        width: 100%;
    }

    .auth-tabs__btn {
        flex: 1;
    }

    .auth-form__group--with-btn {
        flex-direction: column;
    }

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

    .auth-form__options {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .auth-form__remember {
        flex: 1 1 auto;
        min-width: 0;
    }

    .auth-form__link {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .auth-third__list {
        flex-direction: column;
        gap: 10px;
    }

    .auth-third__item {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
    }

    .auth-extra {
        display: none;
    }

    .auth-third__mobile-reg {
        display: block;
        margin-top: 16px;
        font-size: 14px;
    }

    .auth-third__mobile-reg a {
        color: var(--color-primary);
        font-weight: 700;
    }

    .auth-main ~ footer,
    .auth-main ~ footer * {
        box-sizing: border-box;
    }

    .auth-main ~ footer {
        flex: none;
        width: 100%;
        max-width: 100%;
        margin-top: 0;
        overflow-x: hidden;
    }

    .auth-main ~ footer .container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        overflow: hidden;
    }

    .auth-main ~ footer .top,
    .auth-main ~ footer .top .logo,
    .auth-main ~ footer .top .about,
    .auth-main ~ footer .bottom,
    .auth-main ~ footer .bottom .desc {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .auth-main ~ footer .top .logo p {
        display: block;
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: auto;
        margin-right: auto;
        padding: 0 4px;
        white-space: normal !important;
        overflow: visible !important;
        overflow-wrap: anywhere;
        word-break: break-word;
        text-align: center;
    }

    .auth-main ~ footer .top .about div li,
    .auth-main ~ footer .bottom .desc,
    .auth-main ~ footer .bottom .desc span,
    .auth-main ~ footer .bottom .desc a {
        white-space: normal !important;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

@media screen and (max-width: 480px) {
    header.shadow {
        height: auto !important;
        min-height: 112px !important;
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
        background: #fff !important;
        background-color: #fff !important;
        box-shadow: 0 2px 6px 1px #2a66c619 !important;
        overflow: visible !important;
    }

    header.shadow .container {
        height: auto !important;
        min-height: 0 !important;
        background: #fff !important;
        display: block !important;
        padding-bottom: 10px !important;
        overflow: visible !important;
    }

    body {
        padding-top: 112px;
    }

    .auth-main {
        padding: 10px 8px 16px;
    }

    .auth-panel {
        border-radius: 20px;
    }

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

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

    .auth-panel__subtitle {
        font-size: 14px;
    }

    .auth-panel__chips span {
        min-height: 32px;
        padding: 0 12px;
        font-size: 12px;
    }

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

    .auth-third__title::before,
    .auth-third__title::after {
        width: 20%;
    }

    .auth-main ~ footer .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}
/* 微信扫码登录弹窗尺寸 */
.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; }
}
