/* 登录 / 注册 — 与首页领豹浅色科技风一致 */
:root {
    --auth-primary: #1769f6;
    --auth-primary-dark: #1262f5;
    --auth-gradient: linear-gradient(110deg, #1769f6, #258fe9);
    --auth-bg: #ffffff;
    --auth-text: #10284b;
    --auth-text-muted: #61738c;
    --auth-border: #d9e5f8;
    --auth-radius: 18px;
    --auth-shadow: 0 22px 70px rgba(20, 86, 165, 0.11);
    --auth-container-login: 480px;
    --auth-container-register: 480px;
}

/* 解除母版 zhima/common.css 的 min-width:1170px，避免移动端整页横向溢出 */
html.auth-page-root,
body.auth-page {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
}

body.auth-page {
    background: #fff;
    color: var(--auth-text);
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
    text-align: left;
}

body.auth-page .site-main {
    position: relative;
    background: transparent;
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
}

/* 浅色背景 — 与 home.aspx .lb-hero 一致 */
body.auth-page .site-main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    min-height: 100%;
    background:
        radial-gradient(ellipse at 78% 18%, #e4f5ff 0, transparent 34%),
        radial-gradient(ellipse at 12% 8%, #eaf3ff 0, transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #fff 68%);
    pointer-events: none;
    z-index: 0;
}

body.auth-page .site-main::after {
    display: none;
}

/* 顶栏 — 与首页白底导航一致 */
body.auth-page .header-wrap {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    height: auto;
    min-height: 0;
    background: none !important;
}

body.auth-page .site-header.header,
body.auth-page .header,
body.auth-page .site-header.header.header-scrolled,
body.auth-page .header.header-scrolled,
body.auth-page .site-header.header.nav-open,
body.auth-page .header.nav-open {
    background: rgba(255, 255, 255, 0.94) !important;
    background-color: #fff !important;
    background-image: none !important;
    color: #425570 !important;
    box-shadow: 0 1px 0 #e8eef7;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    animation: authHeaderIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

body.auth-page .site-header.header.header-scrolled,
body.auth-page .header.header-scrolled {
    box-shadow: 0 8px 24px rgba(16, 40, 75, 0.06);
}

body.auth-page .header .site-primary-nav .nav.navbar-nav > li > a,
body.auth-page .header .nav > li:not(.nav-login):not(.nav-register) > a,
body.auth-page .header ul.nav > li:not(.nav-login):not(.nav-register) > a {
    color: #425570 !important;
    -webkit-text-fill-color: #425570 !important;
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
}

body.auth-page .header .site-primary-nav .nav.navbar-nav > li > a:hover,
body.auth-page .header .site-primary-nav .nav.navbar-nav > li > a:focus,
body.auth-page .header .site-primary-nav .nav.navbar-nav > li.nav-active > a,
body.auth-page .header .nav > li:not(.nav-login):not(.nav-register) > a:hover,
body.auth-page .header .nav > li:not(.nav-login):not(.nav-register) > a:focus {
    color: #1769f6 !important;
    -webkit-text-fill-color: #1769f6 !important;
    background: transparent !important;
}

body.auth-page .header .navbar .nav.navbar-nav > li.nav-login > a,
body.auth-page .header .header-nav-auth > li.nav-login > a,
body.auth-page .header .navbar .nav.navbar-nav > li.nav-logout > a,
body.auth-page .header .header-nav-auth > li.nav-logout > a,
body.auth-page .header .header-nav-auth > li#user_layout > a {
    color: #244364 !important;
    -webkit-text-fill-color: #244364 !important;
    background: #fff !important;
    background-image: none !important;
    border: 1px solid #d9e5f8 !important;
    box-shadow: none !important;
}

body.auth-page .header .navbar .nav.navbar-nav > li.nav-login > a:hover,
body.auth-page .header .header-nav-auth > li.nav-login > a:hover,
body.auth-page .header .navbar .nav.navbar-nav > li.nav-logout > a:hover,
body.auth-page .header .header-nav-auth > li.nav-logout > a:hover,
body.auth-page .header .header-nav-auth > li#user_layout > a:hover {
    color: #1769f6 !important;
    -webkit-text-fill-color: #1769f6 !important;
    border-color: #b9d2f8 !important;
    background: #f7faff !important;
    background-image: none !important;
}

body.auth-page .header .navbar .nav.navbar-nav > li.nav-register > a,
body.auth-page .header .header-nav-auth > li.nav-register > a,
body.auth-page .header .navbar .nav.navbar-nav > li.nav-register > a:hover,
body.auth-page .header .header-nav-auth > li.nav-register > a:hover,
body.auth-page .header .navbar .nav.navbar-nav > li.nav-register > a:focus,
body.auth-page .header .header-nav-auth > li.nav-register > a:focus {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: #1769f6 !important;
    background-image: linear-gradient(110deg, #1769f6, #258fe9) !important;
    border: none !important;
    box-shadow: 0 8px 20px rgba(23, 105, 246, 0.22);
}

body.auth-page .header .navbar .nav.navbar-nav > li.nav-overseas .nav-new-badge {
    background: #1769f6 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

body.auth-page .nav-toggle,
body.auth-page .header.nav-open > .nav-toggle {
    color: #10284b !important;
    background: #fff !important;
    border: 1px solid #e8eef7 !important;
}

@keyframes authHeaderIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body.auth-page .header-spacer,
body.auth-page .auth-shell {
    position: relative;
    z-index: 1;
}

body.auth-page .header-spacer {
    height: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

body.auth-page .auth-shell,
body.auth-page .auth-card,
body.auth-page .auth-form,
body.auth-page .auth-form--register {
    text-align: left;
}

body.auth-page .header-wrap,
body.auth-page .header,
body.auth-page .site-header {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.auth-page .site-main,
body.auth-page .site-footer,
body.auth-page .footer,
body.auth-page .lb-site-footer {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden;
}

body.auth-page > .site-footer,
body.auth-page > .footer,
body.auth-page > .lb-site-footer {
    display: none !important;
}

.auth-shell {
    position: relative;
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-height: calc(100vh - 72px);
    min-height: calc(100dvh - 72px);
    padding: 80px 20px 56px;
    box-sizing: border-box;
    background: transparent;
}

.auth-shell::before,
.auth-shell::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(56px);
    opacity: 0.28;
}

.auth-shell::before {
    width: 420px;
    height: 420px;
    top: -70px;
    right: -40px;
    left: auto;
    background: transparent;
    border: 1px solid #dcecff;
    filter: none;
    opacity: 1;
    box-shadow: 0 0 0 42px rgba(237, 246, 255, 0.55), 0 0 0 84px rgba(244, 249, 255, 0.9);
    animation: authOrbFloat 14s ease-in-out infinite alternate;
}

.auth-shell::after {
    width: 260px;
    height: 260px;
    top: 180px;
    left: 6%;
    right: auto;
    background: transparent;
    border: 1px solid #cde4ff;
    filter: none;
    opacity: 0.85;
    box-shadow: 0 0 0 28px rgba(234, 244, 255, 0.45);
    animation: authOrbFloat 18s ease-in-out infinite alternate-reverse;
}

@keyframes authOrbFloat {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(18px, 12px);
    }
}

/* 顶部空白区 — HTTP 代理业务动效：请求 → 代理中枢 → 全球节点 */
.auth-sky {
    display: none;
}

.auth-sky__map {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.92;
}

.auth-sky__globe {
    fill: none;
    stroke: rgba(23, 105, 246, 0.16);
    stroke-width: 1.2;
}

.auth-sky__globe--2 {
    stroke: rgba(23, 105, 246, 0.1);
    transform-origin: 600px 168px;
    transform: rotate(-18deg);
    animation: authSkyGlobeSpin 36s linear infinite;
}

.auth-sky__route {
    fill: none;
    stroke: rgba(23, 105, 246, 0.38);
    stroke-width: 1.4;
    stroke-dasharray: 7 11;
    stroke-linecap: round;
    animation: authSkyRouteFlow 2.8s linear infinite;
}

.auth-sky__route--in {
    stroke: rgba(18, 98, 245, 0.55);
    stroke-width: 1.6;
}

.auth-sky__route--d2 {
    animation-duration: 3.2s;
    animation-direction: reverse;
    opacity: 0.85;
}

.auth-sky__route--d3 {
    animation-duration: 3.6s;
}

.auth-sky__route--d4 {
    animation-duration: 3.1s;
    animation-direction: reverse;
}

.auth-sky__route--d5 {
    animation-duration: 3.4s;
    opacity: 0.8;
}

.auth-sky__packet {
    fill: #1769f6;
    filter: drop-shadow(0 0 6px rgba(23, 105, 246, 0.45));
}

.auth-sky__packet--alt {
    fill: #21b4eb;
    filter: drop-shadow(0 0 8px rgba(33, 180, 235, 0.45));
}

.auth-sky__box {
    fill: rgba(255, 255, 255, 0.86);
    stroke: #d6e7ff;
    stroke-width: 1.2;
}

.auth-sky__box-title {
    fill: #10284b;
    font-size: 15px;
    font-weight: 700;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.auth-sky__box-sub {
    fill: #718198;
    font-size: 11px;
    letter-spacing: 0.06em;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.auth-sky__hub-ring {
    fill: none;
    stroke: rgba(23, 105, 246, 0.28);
    stroke-width: 1.2;
    stroke-dasharray: 8 10;
}

.auth-sky__hub-ring--1 {
    animation: authSkyHubSpin 8s linear infinite;
    transform-origin: 64px 52px;
}

.auth-sky__hub-ring--2 {
    stroke: rgba(23, 105, 246, 0.16);
    stroke-dasharray: 5 14;
    animation: authSkyHubSpin 12s linear infinite reverse;
    transform-origin: 64px 52px;
}

.auth-sky__hub-core {
    fill: rgba(255, 255, 255, 0.92);
    stroke: #cfe0ff;
    stroke-width: 1.4;
    filter: drop-shadow(0 8px 18px rgba(20, 86, 165, 0.12));
    animation: authSkyHubPulse 3.2s ease-in-out infinite;
}

.auth-sky__hub-title {
    fill: #1769f6;
    font-size: 18px;
    font-weight: 800;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.auth-sky__hub-sub {
    fill: #61738c;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.auth-sky__region-dot {
    fill: #f4f8ff;
    stroke: #b9d2f8;
    stroke-width: 1.2;
}

.auth-sky__region-code {
    fill: #1769f6;
    font-size: 13px;
    font-weight: 700;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.auth-sky__region {
    animation: authSkyRegionPulse 3.6s ease-in-out infinite;
}

.auth-sky__region--uk {
    animation-delay: 0.6s;
}

.auth-sky__region--jp {
    animation-delay: 1.2s;
}

.auth-sky__region--sg {
    animation-delay: 1.8s;
}

.auth-sky__region--de {
    animation-delay: 2.4s;
}

.auth-sky__badges {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
}

.auth-sky__badge {
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #1765dd;
    background: #eaf3ff;
    border: 1px solid #d6e7ff;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: authSkyBadgeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-sky__badge:nth-child(2) {
    animation-delay: 0.12s;
}

.auth-sky__badge:nth-child(3) {
    animation-delay: 0.24s;
}

@keyframes authSkyGlobeSpin {
    from {
        transform: rotate(-18deg);
    }
    to {
        transform: rotate(342deg);
    }
}

@keyframes authSkyRouteFlow {
    from {
        stroke-dashoffset: 0;
    }
    to {
        stroke-dashoffset: -36;
    }
}

@keyframes authSkyHubSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes authSkyHubPulse {
    0%, 100% {
        filter: drop-shadow(0 8px 18px rgba(20, 86, 165, 0.12));
    }
    50% {
        filter: drop-shadow(0 10px 24px rgba(23, 105, 246, 0.22));
    }
}

@keyframes authSkyRegionPulse {
    0%, 100% {
        opacity: 0.75;
    }
    50% {
        opacity: 1;
    }
}

@keyframes authSkyBadgeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes authPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 4px rgba(27, 196, 141, 0.13);
    }
    50% {
        opacity: 0.72;
        box-shadow: 0 0 0 6px rgba(27, 196, 141, 0.08);
    }
}

.auth-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(340px, 420px);
    gap: 20px 64px;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    box-sizing: border-box;
}

.auth-main {
    grid-column: 2;
    grid-row: 1;
}

.auth-side {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
}

.auth-stage {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.auth-stage__globe {
    position: relative;
    height: 268px;
}

.auth-stage__map {
    display: block;
    width: 100%;
    height: 100%;
}

.auth-stage__mark {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -54%);
    text-align: center;
    pointer-events: none;
}

.auth-stage__mark strong {
    display: block;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.6px;
    color: #10284b;
}

.auth-stage__mark strong span {
    background: linear-gradient(100deg, #1262f5, #21b4eb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-stage__mark small {
    display: block;
    margin-top: 6px;
    color: #718198;
    font-size: 12px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.auth-stage__ip {
    position: absolute;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #e3eefc;
    box-shadow: 0 8px 18px rgba(20, 86, 165, 0.08);
    color: #1769f6;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1.4;
}

.auth-stage__ip--a {
    left: 4%;
    top: 18%;
}

.auth-stage__ip--b {
    right: 2%;
    top: 36%;
}

.auth-stage__list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 4px 8px 0;
    list-style: none;
}

.auth-stage__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 11px 0;
    border-top: 1px solid #e7eef8;
}

.auth-stage__list li:first-child {
    border-top: none;
}

.auth-stage__ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f4f8ff;
}

.auth-stage__ico svg {
    width: 20px;
    height: 20px;
    display: block;
}

.auth-stage__ico--os {
    background: #f3fbfc;
}

.auth-stage__ico--api {
    background: #fff8ea;
}

.auth-stage__txt {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.auth-stage__txt b {
    font-size: 15px;
    font-weight: 700;
    color: #10284b;
    white-space: nowrap;
}

.auth-stage__txt em {
    font-style: normal;
    font-size: 13px;
    color: #7b8da3;
    white-space: nowrap;
}

.auth-main {
    width: 100%;
    max-width: 440px;
    margin: 0;
    box-sizing: border-box;
}

.auth-main--register {
    max-width: 100%;
}

.auth-card {
    position: relative;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 24px;
    box-shadow: 0 22px 70px rgba(20, 86, 165, 0.11);
    border: 1px solid #fff;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.auth-card::before,
.auth-card::after {
    display: none;
}

.auth-card__head {
    padding: 22px 28px 0;
}

.auth-card__body {
    padding: 18px 28px 28px;
}

/* 顶部切换：浅底轨道 + 白底选中项。选择器要压过 .site-ui-v2 a 的链接色 */
.auth-tabs-wrap {
    position: relative;
    border-bottom: none;
    padding: 4px;
    background: #eef3ff;
    border-radius: 12px;
}

.auth-tabs-wrap .auth-tabs {
    border-bottom: none;
}

.auth-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-tabs__indicator {
    display: none;
}

.auth-tabs__item {
    flex: 1;
    text-align: center;
}

.auth-tabs__link,
.site-ui-v2 a.auth-tabs__link {
    display: block;
    padding: 10px 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
    color: #8b98ab;
    text-decoration: none;
    border: none;
    border-radius: 9px;
    margin: 0;
    white-space: nowrap;
    background: transparent;
    box-shadow: none;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.auth-tabs__link:hover,
.auth-tabs__link:focus,
.site-ui-v2 a.auth-tabs__link:hover,
.site-ui-v2 a.auth-tabs__link:focus {
    color: #1769f6;
    background: rgba(255, 255, 255, 0.45);
    text-decoration: none;
}

.auth-tabs__link.is-active,
.site-ui-v2 a.auth-tabs__link.is-active,
.site-ui-v2 a.auth-tabs__link.is-active:hover,
.site-ui-v2 a.auth-tabs__link.is-active:focus {
    color: #1769f6;
    font-weight: 600;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 40, 75, 0.04), 0 4px 10px rgba(23, 105, 246, 0.1);
}

.auth-tabs-wrap.is-switching .auth-tabs__link.is-active {
    transform: scale(0.97);
}

.auth-tabs-wrap.is-switching .auth-tabs__link:not(.is-active),
.auth-tabs-wrap.is-switching .site-ui-v2 a.auth-tabs__link:not(.is-active) {
    color: var(--auth-primary);
}

/* 卡片内容切换动画 */
.auth-card__body {
    transform-origin: center top;
}

.auth-card--switching {
    pointer-events: none;
}

.auth-panel--enter-default {
    animation: authPanelFadeUp 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-panel--from-login {
    animation: authPanelFromRight 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-panel--from-register {
    animation: authPanelFromLeft 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-panel--exit-to-register {
    animation: authPanelExitLeft 0.32s cubic-bezier(0.4, 0, 0.8, 0.6) forwards;
}

.auth-panel--exit-to-login {
    animation: authPanelExitRight 0.32s cubic-bezier(0.4, 0, 0.8, 0.6) forwards;
}

@keyframes authPanelFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes authPanelFromRight {
    from {
        opacity: 0;
        transform: translateX(32px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes authPanelFromLeft {
    from {
        opacity: 0;
        transform: translateX(-32px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes authPanelExitLeft {
    to {
        opacity: 0;
        transform: translateX(-32px);
    }
}

@keyframes authPanelExitRight {
    to {
        opacity: 0;
        transform: translateX(32px);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.auth-page .site-main::after,
    .auth-shell::before,
    .auth-shell::after,
    .auth-sky__globe--2,
    .auth-sky__route,
    .auth-sky__hub-ring,
    .auth-sky__hub-core,
    .auth-sky__region,
    .auth-sky__badge,
    .auth-sky__packet,
    body.auth-page .site-header.header,
    body.auth-page .header {
        animation: none !important;
    }

    .auth-sky__packet {
        display: none;
    }

    .auth-tabs__indicator {
        transition: none;
    }

    .auth-panel--enter-default,
    .auth-panel--from-login,
    .auth-panel--from-register,
    .auth-panel--exit-to-register,
    .auth-panel--exit-to-login {
        animation: none !important;
    }
}

.auth-tabs__divider {
    display: none;
}

/* 注册页公告 — 柔和黄底提示条 */
.auth-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 8px 12px;
    background: #eaf3ff;
    border: 1px solid #d6e7ff;
    border-radius: 12px;
    text-align: left;
}

.auth-notice__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: #1769f6;
    color: #fff;
    font-size: 13px;
    line-height: 1;
}

.auth-notice__content {
    display: none;
}

.auth-notice__label {
    display: none;
}

.auth-notice__text {
    flex: 1;
    min-width: 0;
    margin: 0;
    color: #244364;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

/* 登录表单 */
.auth-form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.auth-form .auth-field {
    margin-bottom: 16px;
}

.auth-form .auth-field--submit {
    margin-bottom: 0;
    margin-top: 8px;
}

.auth-form .auth-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--auth-text);
    text-align: left;
}

.auth-form .auth-input-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.auth-form .auth-input-wrap .yd-input,
.auth-form .auth-input-wrap input[type="text"],
.auth-form .auth-input-wrap input[type="password"] {
    flex: 1;
    min-width: 0;
}

.auth-form .yd-input,
.auth-form input[type="text"].yd-input,
.auth-form input[type="password"].yd-input,
.auth-form input[type="text"]:not(.code),
.auth-form input[type="password"] {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    background: #fff;
    color: var(--auth-text);
    font-size: 15px;
    line-height: 1.4;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
    text-align: left;
}

.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: var(--auth-text);
    transition: background-color 5000s ease-in-out 0s;
}

.auth-form .yd-input:focus,
.auth-form input[type="text"]:focus,
.auth-form input[type="password"]:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(23, 105, 246, 0.18);
}

.auth-form .yd-input::placeholder,
.auth-form input::placeholder {
    color: #9aa8b0;
}

.auth-form .auth-code-row {
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 48px;
    padding: 4px 4px 4px 0;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
}

.auth-form .auth-code-row:focus-within {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(23, 105, 246, 0.16);
}

.auth-form .auth-code-row .yd-input,
.auth-form .auth-code-row input.code,
.auth-form .auth-code-row input[type="text"] {
    flex: 1;
    min-width: 0;
    width: auto !important;
    min-height: 40px;
    border: none !important;
    border-radius: 8px;
    background: transparent;
    box-shadow: none !important;
}

.auth-form a.send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 96px;
    min-height: 36px;
    margin: 0;
    padding: 0 12px;
    border: none;
    border-radius: 8px;
    background: #eaf3ff;
    color: #1769f6;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.auth-form a.send--captcha {
    min-width: 96px;
    padding: 4px 6px;
    background: #fff;
}

.auth-form a.send:hover,
.auth-form a.send:focus {
    background: #dceaff;
    border-color: transparent;
    color: #1262f5;
    text-decoration: none;
}

.auth-form a.send img {
    display: block;
    height: 32px;
    width: auto;
    border-radius: 4px;
}

.auth-form .auth-remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 20px;
    font-size: 14px;
    color: var(--auth-text-muted);
}

.auth-form .auth-remember label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    cursor: pointer;
    font-weight: normal;
}

.auth-form .auth-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--auth-primary);
}

.auth-form .auth-remember a {
    color: var(--auth-primary-dark);
    text-decoration: none;
}

.auth-form .auth-remember a:hover {
    text-decoration: underline;
}

/* 主按钮 — 登录 / 注册 / 协议弹窗共用 */
body.auth-page .auth-submit,
.auth-form .auth-submit,
.auth-form--register .form-box .form-group dd .submit {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 0 24px;
    border: none;
    border-radius: 10px;
    background: var(--auth-gradient);
    color: #fff !important;
    font-size: 16px;
    font-weight: 650;
    line-height: 48px;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(23, 105, 246, 0.18);
    transition: box-shadow 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

body.auth-page .auth-submit:hover,
body.auth-page .auth-submit:focus,
.auth-form .auth-submit:hover,
.auth-form .auth-submit:focus,
.auth-form--register .form-box .form-group dd .submit:hover:not(:disabled) {
    box-shadow: 0 10px 24px rgba(23, 105, 246, 0.24);
    transform: translateY(-1px);
    color: #fff !important;
}

body.auth-page .auth-submit:disabled,
.auth-form .auth-submit:disabled,
.auth-form--register .form-box .form-group dd .submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.auth-form--register .form-box .form-group dd select.input {
    display: block;
    width: 100% !important;
    max-width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    background: #fff;
    color: var(--auth-text);
    font-size: 15px;
    line-height: 1.4;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a6f7a' d='M1.4.6 6 5.2 10.6.6 12 2l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.auth-form--register .form-box .form-group dd select.input:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(23, 105, 246, 0.18);
}

.auth-form .auth-tip,
.auth-form--register .auth-tip,
#msgtips.auth-tip {
    display: block;
    margin-top: 12px;
    min-height: 20px;
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
    color: #f59e0b;
}

/* 注册表单 — dl/dt/dd 布局 */
.auth-form--register .form-box {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.auth-form--register .form-box .form-group {
    margin: 0 0 16px;
    padding: 0;
    clear: both;
    width: 100%;
    max-width: 100%;
    float: none !important;
}

.auth-form--register .form-box .form-group--agree {
    margin-bottom: 20px;
}

.auth-form--register .form-box .form-group--submit {
    margin-bottom: 0;
}

.auth-form--register .form-box .form-group::before,
.auth-form--register .form-box .form-group::after {
    display: none;
}

.auth-form--register .form-box .form-group dt {
    display: block;
    float: none !important;
    width: auto !important;
    padding: 0 0 8px;
    line-height: 1.4;
    text-align: left !important;
    color: var(--auth-text);
    font-size: 14px;
    font-weight: 500;
}

.auth-form--register .form-box .form-group dd {
    display: block;
    position: relative;
    margin: 0 !important;
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100%;
    line-height: 1.4;
    float: none !important;
    overflow: visible;
}

.auth-form--register .form-box .form-group dd .input {
    display: block;
    width: 100% !important;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    background: #fff;
    color: var(--auth-text);
    font-size: 15px;
    line-height: 1.4;
    box-sizing: border-box;
    text-align: left;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-form--register .form-box .form-group dd .input:-webkit-autofill,
.auth-form--register .form-box .form-group dd .input:-webkit-autofill:hover,
.auth-form--register .form-box .form-group dd .input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: var(--auth-text);
}

.auth-form--register .form-box .form-group dd .input:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(23, 105, 246, 0.18);
}

.auth-form--register .form-box .form-group dd .input.code {
    width: auto !important;
    flex: 1;
    min-width: 0;
}

.auth-form--register .form-box .form-group dd .input-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 48px;
    padding: 4px 4px 4px 0;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
}

.auth-form--register .form-box .form-group dd .input-wrap:focus-within {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(23, 105, 246, 0.16);
}

.auth-form--register .form-box .form-group dd .input-wrap > .input {
    flex: 1;
    width: auto !important;
    min-width: 0;
    min-height: 40px;
    border: none !important;
    border-radius: 8px;
    background: transparent;
    box-shadow: none !important;
}

.auth-form--register .form-box .form-group dd .input-wrap > a.send {
    flex: none;
}

.auth-form--register .form-box .form-group dd .input-wrap > .Validform_checktip {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin: 2px 0 0;
}

.auth-form--register .form-box .form-group dd a.send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 96px;
    min-height: 36px;
    padding: 0 12px;
    border: none;
    border-radius: 8px;
    background: #eaf3ff;
    color: #1769f6;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.auth-form--register .form-box .form-group dd a.send:hover {
    background: #dceaff;
    color: #1262f5;
    text-decoration: none;
}

.auth-form--register .form-box .form-group dd .Validform_checktip {
    display: none;
    clear: both;
    width: 100%;
    max-width: 100%;
    margin: 6px 0 0;
    line-height: 1.5;
    height: auto;
    min-height: 0;
    font-size: 12px;
    color: #9aa8b0;
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    text-align: left;
    box-sizing: border-box;
}

.auth-form--register .form-box .form-group dd .Validform_checktip.Validform_wrong,
.auth-form--register .form-box .form-group dd .Validform_checktip.Validform_right {
    display: block !important;
}

body.auth-page .Validform_wrong {
    display: block !important;
    white-space: normal !important;
    word-break: break-word;
    width: 100%;
    max-width: 100%;
    margin: 6px 0 0;
    padding-left: 20px;
    box-sizing: border-box;
    vertical-align: baseline;
}

body.auth-page .Validform_right {
    display: block !important;
    width: 100%;
    max-width: 100%;
    margin-top: 6px;
    vertical-align: baseline;
}

.auth-form--register .form-box .form-group dd .Validform_wrong {
    color: #e53e3e;
}

.auth-form--register .form-box .form-group dd .Validform_right {
    color: #38a169;
}

.auth-form--register .form-box .form-group dd label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    font-weight: normal;
    color: var(--auth-text-muted);
    line-height: 1.55;
    cursor: pointer;
    word-break: break-word;
}

.auth-form--register .form-box .form-group dd label input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: var(--auth-primary);
}

.auth-form--register .form-box .form-group dd label a {
    color: var(--auth-primary-dark);
    text-decoration: none;
}

.auth-form--register .form-box .form-group dd label a:hover {
    text-decoration: underline;
}

.auth-form--register .form-box.full .form-group dt,
.auth-form--register .form-box.full .form-group dd {
    width: auto;
    margin-left: 0;
}

/* 隐藏旧版固定宽度容器 */
body.auth-page .section,
body.auth-page .wrapper,
body.auth-page .bg-wrap {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

body.auth-page .nav-tit {
    display: none;
}

/* 注册许可协议弹窗 */
.auth-agreement {
    color: var(--auth-text);
    font-size: 14px;
    line-height: 1.75;
    text-align: left;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.auth-agreement__intro {
    margin: 0 0 16px;
    color: var(--auth-text-muted);
}

.auth-agreement__section {
    margin-bottom: 18px;
}

.auth-agreement__section:last-child {
    margin-bottom: 0;
}

.auth-agreement__section h4 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--auth-text);
    line-height: 1.5;
}

.auth-agreement__section p {
    margin: 0 0 10px;
    color: var(--auth-text-muted);
}

.auth-agreement__section ul {
    margin: 0 0 10px;
    padding-left: 1.2em;
    color: var(--auth-text-muted);
}

.auth-agreement__section li {
    margin-bottom: 8px;
}

.auth-agreement-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 12200;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.auth-agreement-modal.is-open {
    display: flex;
}

.auth-agreement-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 35, 50, 0.55);
}

.auth-agreement-modal__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 480px;
    max-height: min(88vh, 760px);
    max-height: min(88dvh, 760px);
    background: #fff;
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    overflow: hidden;
    box-shadow: var(--auth-shadow);
    box-sizing: border-box;
}

.auth-agreement-modal__panel::before {
    content: "";
    display: block;
    height: 4px;
    background: var(--auth-gradient);
    flex-shrink: 0;
}

.auth-agreement-modal__header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 12px;
    flex-shrink: 0;
    padding: 18px 48px 14px;
    border-bottom: 1px solid #eef2f5;
    background: #fff;
}

.auth-agreement-modal__title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--auth-primary-dark);
    line-height: 1.4;
    text-align: center;
}

.auth-agreement-modal__close {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #667788;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.auth-agreement-modal__close:hover,
.auth-agreement-modal__close:focus {
    background: #f7faff;
    color: var(--auth-text);
}

.auth-agreement-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 32px;
    box-sizing: border-box;
    background: #fff;
}

.auth-agreement-modal__footer {
    flex-shrink: 0;
    padding: 12px 32px 24px;
    border-top: 1px solid #eef2f5;
    background: #fff;
    box-sizing: border-box;
}

.auth-agreement-modal__footer .auth-submit {
    margin: 0;
}

body.auth-agreement-open,
body.auth-agree-prompt-open {
    overflow: hidden;
}

/* 未勾选协议时的确认框 */
.auth-agree-prompt {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 12100;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.auth-agree-prompt.is-open {
    display: flex;
}

.auth-agree-prompt__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 35, 50, 0.55);
}

.auth-agree-prompt__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 360px;
    padding: 28px 24px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--auth-shadow);
    text-align: center;
    box-sizing: border-box;
}

.auth-agree-prompt__title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--auth-text);
    line-height: 1.4;
}

.auth-agree-prompt__links {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--auth-text-muted);
}

.auth-agree-prompt__links a {
    color: var(--auth-primary-dark);
    text-decoration: none;
}

.auth-agree-prompt__links a:hover,
.auth-agree-prompt__links a:focus {
    text-decoration: underline;
}

.auth-agree-prompt__actions {
    display: flex;
    gap: 12px;
}

.auth-agree-prompt__ok,
.auth-agree-prompt__cancel {
    flex: 1;
    height: 42px;
    padding: 0 8px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 42px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.auth-agree-prompt__ok {
    border: none;
    background: var(--auth-gradient);
    color: #fff;
    box-shadow: 0 4px 12px rgba(23, 105, 246, 0.22);
}

.auth-agree-prompt__ok:hover,
.auth-agree-prompt__ok:focus {
    box-shadow: 0 6px 16px rgba(23, 105, 246, 0.3);
    outline: none;
}

.auth-agree-prompt__cancel {
    border: 1px solid var(--auth-border);
    background: #f5f8fa;
    color: var(--auth-text-muted);
}

.auth-agree-prompt__cancel:hover,
.auth-agree-prompt__cancel:focus {
    background: #eef3f6;
    color: var(--auth-text);
    outline: none;
}

@media (max-width: 767px) {
    .auth-agreement-modal {
        padding: 0;
        align-items: stretch;
    }

    .auth-agreement-modal__panel {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    .auth-agreement-modal__header {
        padding: 16px 44px 12px;
        padding-top: calc(16px + env(safe-area-inset-top, 0px));
    }

    .auth-agreement-modal__close {
        right: 8px;
        width: 40px;
        height: 40px;
    }

    .auth-agreement-modal__body {
        padding: 16px;
    }

    .auth-agreement {
        font-size: 14px;
        line-height: 1.7;
    }

    .auth-agreement__section h4 {
        font-size: 14px;
    }

    .auth-agreement-modal__footer {
        padding: 10px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    }

    .auth-agree-prompt {
        padding: 16px;
    }

    .auth-agree-prompt__panel {
        max-width: 100%;
    }
}

/* 移动端适配 — 仅显示登录/注册卡片，且不遮挡顶栏 */
@media (max-width: 991px) {
    body.auth-page .site-main::before {
        height: 100%;
        min-height: 100vh;
        min-height: 100dvh;
    }

    body.auth-page .header-wrap {
        z-index: 1100;
    }

    body.auth-page .site-header.header,
    body.auth-page .header,
    body.auth-page .site-header.header.nav-open,
    body.auth-page .header.nav-open {
        background: rgba(255, 255, 255, 0.96) !important;
        background-color: #fff !important;
        background-image: none !important;
        color: #425570 !important;
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        box-shadow: 0 1px 0 #e8eef7 !important;
    }

    body.auth-page .header-spacer {
        height: calc(56px + env(safe-area-inset-top, 0px)) !important;
        flex-shrink: 0;
    }

    .auth-sky {
        display: none !important;
    }

    .auth-side {
        display: none;
    }

    .auth-shell::before,
    .auth-shell::after {
        opacity: 0.45;
    }

    body.auth-page .auth-shell {
        z-index: 0;
    }

    .auth-shell {
        align-items: flex-start;
        justify-content: center;
        min-height: calc(100vh - 56px - env(safe-area-inset-top, 0px));
        min-height: calc(100dvh - 56px - env(safe-area-inset-top, 0px));
        padding: 12px 16px 32px;
    }

    .auth-layout {
        display: block;
        max-width: 480px;
        width: 100%;
        margin: 0 auto;
    }

    .auth-main,
    .auth-main--register {
        max-width: 100%;
        width: 100%;
    }

    .auth-card {
        width: 100%;
        box-shadow: 0 16px 40px rgba(20, 86, 165, 0.1);
    }
}

@media (max-width: 767px) {
    .auth-shell {
        padding: 12px;
    }

    .auth-card {
        border-radius: 18px;
    }

    .auth-card__head {
        padding: 14px 16px 0;
    }

    .auth-card__body {
        padding: 16px 16px 24px;
    }

    .auth-tabs__link,
    .site-ui-v2 a.auth-tabs__link {
        padding: 10px 6px;
        font-size: 13px;
    }

    .auth-notice {
        flex-wrap: wrap;
        gap: 6px 10px;
        padding: 8px 10px;
    }

    .auth-notice__text {
        font-size: 12px;
        line-height: 1.5;
    }

    .auth-form .yd-input,
    .auth-form input[type="text"],
    .auth-form input[type="password"],
    .auth-form--register .form-box .form-group dd .input {
        min-height: 44px;
        font-size: 16px;
    }

    .auth-form .auth-code-row {
        flex-direction: row;
    }

    .auth-form a.send {
        width: auto;
        min-height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }

    .auth-form .auth-remember {
        flex-direction: column;
        align-items: flex-start;
        font-size: 13px;
    }

    .auth-form .auth-submit,
    .auth-form--register .form-box .form-group dd .submit {
        min-height: 48px;
        line-height: 48px;
        font-size: 16px;
    }

    .auth-form--register .form-box .form-group dd .input-wrap {
        display: flex;
    }

    .auth-form--register .form-box .form-group dd .input-wrap > a.send {
        width: auto;
        min-height: 36px;
    }

    .auth-form--register .form-box .form-group dd .input-wrap > .Validform_checktip {
        grid-row: auto;
    }

    .auth-form--register .form-box .form-group dd a.send {
        width: auto;
        min-height: 36px;
    }
}

@media (min-width: 768px) {
    .auth-shell {
        padding-left: 32px;
        padding-right: 32px;
    }
}

@media (min-width: 992px) {
    .auth-shell {
        padding: 88px 32px 72px;
    }
}

/* 登录方式：双卡片选择，和顶栏 Tab 区分开 */
.auth-mode-switch {
    display: flex;
    gap: 10px;
    margin: 0 0 22px;
    padding: 0;
    border: none;
    background: transparent;
}

.auth-mode-switch__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 8px;
    border: 1px solid #d9e5f8;
    border-radius: 10px;
    background: #f4f8ff;
    color: var(--auth-text-muted);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.auth-mode-switch__btn i {
    font-size: 15px;
    line-height: 1;
}

.auth-mode-switch__btn:hover,
.auth-mode-switch__btn:focus {
    color: var(--auth-primary-dark);
    border-color: #b9d2f8;
    background: #fff;
    outline: none;
}

.auth-mode-switch__btn.is-active {
    border-color: transparent;
    background: var(--auth-gradient);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(23, 105, 246, 0.28);
}

.auth-form.is-sms-login .auth-field--password,
.auth-form.is-sms-login .auth-remember {
    display: none !important;
}

.auth-form.is-sms-login #dvSMS {
    display: block !important;
}

.auth-form .auth-notice {
    display: none;
}

.auth-form.is-sms-login .auth-notice {
    display: flex;
}

.auth-form .auth-agree {
    display: none;
    margin: 4px 0 20px;
    font-size: 14px;
    color: var(--auth-text-muted);
    text-align: left;
}

.auth-form.is-sms-login .auth-agree {
    display: block;
}

.auth-form .auth-agree label {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    cursor: pointer;
    font-weight: normal;
    line-height: 1.5;
}

.auth-form .auth-agree input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 3px 0 0;
    flex-shrink: 0;
    accent-color: var(--auth-primary);
}

.auth-form .auth-agree a {
    color: var(--auth-primary-dark);
    text-decoration: none;
}

.auth-form .auth-agree a:hover {
    text-decoration: underline;
}

/* 注册后设置登录密码 */
.auth-setpwd-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 12100;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.auth-setpwd-modal.is-open {
    display: flex;
}

.auth-setpwd-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 35, 50, 0.55);
}

.auth-setpwd-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(15, 45, 70, 0.22);
    box-sizing: border-box;
}

.auth-setpwd-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #edf2f7;
}

.auth-setpwd-modal__title {
    margin: 0;
    color: var(--auth-text);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

.auth-setpwd-modal__close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.auth-setpwd-modal__close:hover,
.auth-setpwd-modal__close:focus {
    background: #f1f5f9;
    color: #64748b;
    outline: none;
}

.auth-setpwd-modal__body {
    padding: 18px 18px 8px;
}

.auth-setpwd-modal__hint {
    margin: 0 0 14px;
    color: var(--auth-text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.auth-setpwd-modal__field {
    margin: 0 0 14px;
}

.auth-setpwd-modal__field label {
    display: block;
    margin: 0 0 6px;
    color: #4a5568;
    font-size: 13px;
    font-weight: 500;
}

.auth-setpwd-modal__field label::before {
    content: "*";
    margin-right: 4px;
    color: #e53935;
}

.auth-setpwd-modal__wrap {
    position: relative;
}

.auth-setpwd-modal__wrap input {
    display: block;
    width: 100%;
    height: 42px;
    padding: 0 42px 0 12px;
    border: 1px solid #d5dee8;
    border-radius: 8px;
    background: #fff;
    color: #1e293b;
    font-size: 16px;
    line-height: 42px;
    box-sizing: border-box;
    outline: none;
}

.auth-setpwd-modal__wrap input:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(23, 105, 246, 0.15);
}

.auth-setpwd-modal__eye {
    position: absolute;
    right: 6px;
    top: 0;
    bottom: 0;
    width: 36px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.auth-setpwd-modal__eye:hover,
.auth-setpwd-modal__eye:focus {
    color: var(--auth-primary-dark);
    outline: none;
}

.auth-setpwd-modal__eye i {
    font-size: 18px;
    line-height: 1;
}

.auth-setpwd-modal__footer {
    display: flex;
    gap: 10px;
    padding: 8px 18px 18px;
}

.auth-setpwd-modal__footer .auth-submit {
    flex: 1;
    width: auto;
    min-height: 44px;
}

.auth-setpwd-modal__skip {
    flex: 1;
    min-height: 44px;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    background: #fff;
    color: var(--auth-text-muted);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.auth-setpwd-modal__skip:hover,
.auth-setpwd-modal__skip:focus {
    border-color: var(--auth-primary);
    color: var(--auth-primary-dark);
    outline: none;
}

.auth-setpwd-modal__skip:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

body.auth-setpwd-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .auth-setpwd-modal {
        padding: 12px;
        align-items: flex-start;
    }

    .auth-setpwd-modal__panel {
        margin-top: 24px;
    }
}
