/* 登录 / 注册 — 与首页一致的青蓝主色 */
:root {
    --auth-primary: #0fbbd8;
    --auth-primary-dark: #067db2;
    --auth-gradient: linear-gradient(to right, #0fbbd8, #067db2);
    --auth-bg: #f5f9fc;
    --auth-text: #333333;
    --auth-text-muted: #5a6f7a;
    --auth-border: #dce9ef;
    --auth-radius: 12px;
    --auth-shadow: 0 8px 32px rgba(6, 125, 178, 0.16), 0 2px 8px rgba(6, 125, 178, 0.08);
    --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: #f5f9fc;
    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 一致 */
body.auth-page .site-main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 780px;
    background: linear-gradient(180deg,
        #067db2 0%,
        #0888ad 14%,
        #0f9dbf 26%,
        #3eb5d0 38%,
        #72cbe0 48%,
        #a5dff0 58%,
        #c9ebf6 68%,
        #e3f4fa 80%,
        #f0f8fb 90%,
        #f5f9fc 100%);
    pointer-events: none;
    z-index: 0;
}

body.auth-page .site-main::after {
    display: none;
}

/* 顶栏 — 参考 home.aspx 透明 / 滚动实色 */
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 {
    background: none !important;
    background-color: transparent !important;
    box-shadow: none;
    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 {
    background: linear-gradient(to right, rgba(15, 187, 216, 0.88), rgba(6, 125, 178, 0.88)) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

body.auth-page .site-header.header.nav-open,
body.auth-page .header.nav-open {
    background: linear-gradient(to right, #0fbbd8, #067db2) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: none !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 {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden;
}

body.auth-page > .site-footer,
body.auth-page > .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: 360px;
    height: 360px;
    top: 40px;
    left: 8%;
    background: rgba(255, 255, 255, 0.25);
    animation: authOrbFloat 14s ease-in-out infinite alternate;
}

.auth-shell::after {
    width: 280px;
    height: 280px;
    top: 120px;
    right: 10%;
    background: rgba(15, 187, 216, 0.22);
    animation: authOrbFloat 18s ease-in-out infinite alternate-reverse;
}

@keyframes authOrbFloat {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(18px, 12px);
    }
}

/* 顶部空白区 — HTTP 代理业务动效：请求 → 代理中枢 → 全球节点 */
.auth-sky {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(calc(-50% - 28px));
    width: min(100%, 1180px);
    height: clamp(170px, 26vh, 280px);
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.auth-sky__map {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.92;
}

.auth-sky__globe {
    fill: none;
    stroke: rgba(255, 255, 255, 0.14);
    stroke-width: 1.2;
}

.auth-sky__globe--2 {
    stroke: rgba(255, 255, 255, 0.09);
    transform-origin: 600px 168px;
    transform: rotate(-18deg);
    animation: authSkyGlobeSpin 36s linear infinite;
}

.auth-sky__route {
    fill: none;
    stroke: rgba(255, 255, 255, 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(255, 255, 255, 0.5);
    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: #fff;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.85));
}

.auth-sky__packet--alt {
    fill: rgba(15, 187, 216, 0.95);
    filter: drop-shadow(0 0 8px rgba(15, 187, 216, 0.75));
}

.auth-sky__box {
    fill: rgba(255, 255, 255, 0.14);
    stroke: rgba(255, 255, 255, 0.32);
    stroke-width: 1.2;
}

.auth-sky__box-title {
    fill: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.auth-sky__box-sub {
    fill: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    letter-spacing: 0.06em;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.auth-sky__hub-ring {
    fill: none;
    stroke: rgba(255, 255, 255, 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(255, 255, 255, 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.2);
    stroke: rgba(255, 255, 255, 0.42);
    stroke-width: 1.4;
    filter: drop-shadow(0 4px 16px rgba(6, 125, 178, 0.28));
    animation: authSkyHubPulse 3.2s ease-in-out infinite;
}

.auth-sky__hub-title {
    fill: #fff;
    font-size: 18px;
    font-weight: 800;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.auth-sky__hub-sub {
    fill: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.auth-sky__region-dot {
    fill: rgba(255, 255, 255, 0.16);
    stroke: rgba(255, 255, 255, 0.42);
    stroke-width: 1.2;
}

.auth-sky__region-code {
    fill: #fff;
    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: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    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 4px 16px rgba(6, 125, 178, 0.28));
    }
    50% {
        filter: drop-shadow(0 6px 22px rgba(15, 187, 216, 0.45));
    }
}

@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 6px rgba(15, 187, 216, 0.5);
    }
    50% {
        opacity: 0.65;
        box-shadow: 0 0 12px rgba(15, 187, 216, 0.85);
    }
}

.auth-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
    gap: clamp(24px, 5vw, 72px);
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.auth-promo {
    position: relative;
    color: var(--auth-text);
    padding: 8px 0 8px 18px;
}

.auth-promo::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(15, 187, 216, 0.55) 30%, rgba(15, 187, 216, 0.55) 70%, transparent);
    border-radius: 2px;
}

.auth-promo::after {
    content: "";
    position: absolute;
    top: 0;
    left: 14px;
    width: 28px;
    height: 28px;
    border-top: 2px solid rgba(15, 187, 216, 0.35);
    border-left: 2px solid rgba(15, 187, 216, 0.35);
    pointer-events: none;
}

.auth-promo__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--auth-primary-dark);
}

.auth-promo__brand-icon {
    font-size: 24px;
    line-height: 1;
    color: var(--auth-primary);
}

.auth-promo__brand-name {
    font-size: 18px;
    font-weight: 700;
}

.auth-promo__title {
    margin: 0 0 8px;
    font-size: clamp(24px, 2.8vw, 34px);
    font-weight: 700;
    line-height: 1.3;
    color: #1a3a4a;
}

.auth-promo__subtitle {
    margin: 0 0 20px;
    font-size: clamp(15px, 1.6vw, 18px);
    font-weight: 500;
    line-height: 1.5;
    color: var(--auth-text-muted);
}

.auth-promo__trust {
    display: inline-block;
    position: relative;
    margin: 0 0 18px;
    padding: 4px 12px 4px 24px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--auth-primary-dark);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 187, 216, 0.2);
    border-radius: 999px;
}

.auth-promo__trust::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--auth-primary);
    box-shadow: 0 0 8px rgba(15, 187, 216, 0.55);
    animation: authPulse 2.4s ease-in-out infinite;
}

.auth-promo__features {
    margin: 0 0 24px;
    padding: 0 0 0 4px;
    list-style: none;
    border-left: 1px dashed rgba(15, 187, 216, 0.22);
}

.auth-promo__features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--auth-text-muted);
}

.auth-promo__features li i {
    flex-shrink: 0;
    margin-top: 3px;
    font-size: 14px;
    color: var(--auth-primary);
}

.auth-promo__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.auth-promo__stat {
    position: relative;
    padding: 12px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 187, 216, 0.16);
    box-shadow: 0 2px 10px rgba(6, 125, 178, 0.06);
    text-align: center;
    overflow: hidden;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.auth-promo__stat::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--auth-gradient);
    opacity: 0.75;
}

.auth-promo__stat strong {
    display: block;
    margin-bottom: 4px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--auth-primary-dark);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
}

.auth-promo__stat span {
    display: block;
    font-size: 11px;
    line-height: 1.35;
    color: var(--auth-text-muted);
}

@media (min-width: 992px) {
    .auth-promo {
        padding-top: 12px;
    }

    .auth-promo__stat {
        background: rgba(255, 255, 255, 0.9);
        border-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 20px rgba(6, 125, 178, 0.12);
    }

    .auth-promo__stat::before {
        opacity: 0.85;
    }
}

.auth-main {
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.auth-main--register {
    max-width: 100%;
}

.auth-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(6, 125, 178, 0.18), 0 4px 14px rgba(6, 125, 178, 0.1);
    border: 1px solid rgba(15, 187, 216, 0.1);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.auth-card::before {
    content: "";
    display: block;
    height: 3px;
    background: var(--auth-gradient);
    box-shadow: 0 0 14px rgba(15, 187, 216, 0.35);
}

.auth-card::after {
    content: "";
    position: absolute;
    top: 14px;
    right: 14px;
    width: 10px;
    height: 10px;
    border-top: 1.5px solid rgba(15, 187, 216, 0.35);
    border-right: 1.5px solid rgba(15, 187, 216, 0.35);
    pointer-events: none;
}

.auth-card__head {
    padding: 20px 32px 0;
}

.auth-card__body {
    padding: 20px 32px 36px;
}

/* 顶部 Tab 切换 */
.auth-tabs-wrap {
    position: relative;
    border-bottom: 1px solid #eef2f5;
}

.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 {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--auth-gradient);
    border-radius: 3px 3px 0 0;
    box-shadow: 0 0 10px rgba(15, 187, 216, 0.35);
    transition: transform 0.38s cubic-bezier(0.34, 1.15, 0.64, 1), width 0.38s cubic-bezier(0.34, 1.15, 0.64, 1);
    pointer-events: none;
    z-index: 2;
    will-change: transform, width;
}

.auth-tabs__item {
    flex: 1;
    text-align: center;
}

.auth-tabs__link {
    display: block;
    padding: 12px 12px 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--auth-text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.28s ease, transform 0.28s ease;
}

.auth-tabs__link:hover,
.auth-tabs__link:focus {
    color: var(--auth-primary-dark);
    text-decoration: none;
}

.auth-tabs__link.is-active {
    color: var(--auth-primary-dark);
    font-weight: 600;
    border-bottom-color: transparent;
}

.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) {
    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,
    .auth-promo__trust::before,
    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: 6px 10px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 6px;
    text-align: left;
}

.auth-notice__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: #ffca28;
    color: #6d4c00;
    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: #7a5c00;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
}

/* 登录表单 */
.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(15, 187, 216, 0.18);
}

.auth-form .yd-input::placeholder,
.auth-form input::placeholder {
    color: #9aa8b0;
}

.auth-form .auth-code-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.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;
}

.auth-form a.send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 108px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    background: #f5f9fb;
    color: var(--auth-primary-dark);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, border-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: #e8f4f8;
    border-color: var(--auth-primary);
    color: var(--auth-primary-dark);
    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: 8px;
    background: var(--auth-gradient);
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
    line-height: 48px;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(6, 125, 178, 0.22);
    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 6px 18px rgba(6, 125, 178, 0.3);
    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(15, 187, 216, 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: hidden;
}

.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(15, 187, 216, 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: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.auth-form--register .form-box .form-group dd .input-wrap > .input {
    width: 100% !important;
    min-width: 0;
    grid-column: 1;
}

.auth-form--register .form-box .form-group dd .input-wrap > a.send {
    grid-column: 2;
    grid-row: 1;
}

.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: 108px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    background: #f5f9fb;
    color: var(--auth-primary-dark);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.auth-form--register .form-box .form-group dd a.send:hover {
    background: #e8f4f8;
    border-color: var(--auth-primary);
    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: 12000;
    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: #f5f9fb;
    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 {
    overflow: hidden;
}

@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));
    }
}

/* 移动端适配 — 仅显示登录/注册卡片，且不遮挡顶栏 */
@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 {
        background: linear-gradient(to right, rgba(15, 187, 216, 0.95), rgba(6, 125, 178, 0.95)) !important;
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    }

    body.auth-page .header-spacer {
        height: calc(56px + env(safe-area-inset-top, 0px)) !important;
        flex-shrink: 0;
    }

    .auth-sky {
        display: none !important;
    }

    .auth-promo {
        display: none !important;
    }

    .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 {
        grid-template-columns: 1fr;
        max-width: 480px;
        width: 100%;
        gap: 0;
        margin: 0 auto;
    }

    .auth-main,
    .auth-main--register {
        max-width: 100%;
        width: 100%;
    }

    .auth-card {
        width: 100%;
        box-shadow: 0 12px 36px rgba(6, 125, 178, 0.16), 0 3px 10px rgba(6, 125, 178, 0.08);
    }
}

@media (max-width: 767px) {
    .auth-shell {
        padding: 12px;
    }

    .auth-card {
        border-radius: 10px;
    }

    .auth-card__head {
        padding: 14px 16px 0;
    }

    .auth-card__body {
        padding: 16px 16px 24px;
    }

    .auth-tabs__link {
        padding: 12px 8px;
        font-size: 15px;
    }

    .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: column;
    }

    .auth-form a.send {
        width: 100%;
        min-height: 44px;
        padding: 0 12px;
        font-size: 14px;
    }

    .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 {
        grid-template-columns: 1fr;
    }

    .auth-form--register .form-box .form-group dd .input-wrap > .input,
    .auth-form--register .form-box .form-group dd .input-wrap > a.send {
        grid-column: 1;
        grid-row: auto;
    }

    .auth-form--register .form-box .form-group dd .input-wrap > a.send {
        width: 100%;
        min-height: 44px;
    }

    .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: 100%;
        min-height: 44px;
    }
}

@media (min-width: 768px) {
    .auth-shell {
        padding-left: 32px;
        padding-right: 32px;
    }
}

@media (min-width: 992px) {
    .auth-shell {
        padding: 88px 32px 72px;
    }
}
