/* ==========================================================================
   会员表单页视觉规范 v2（登录 / 注册）—— 沉浸式暗夜 · 真毛玻璃 · 柔和光源
   作用域：仅在 .md-auth-page 容器内生效，不影响站点其它页面
   依赖：app.css（vant 移动骨架）、shell.css（站点外壳变量）
   版本：20261113a
   结构：① 背景层（暗夜渐变 + 中上方径向光晕 + 暗角 + 细噪点）
        ② 顶栏 / 品牌 / 标题排版
        ③ 毛玻璃输入框（rgba + backdrop-filter + 1px 亮边 + 聚焦发光）
        ④ 渐变胶囊 CTA（本体渐变 + 立体内描边 + 弥散阴影）
        ⑤ 邀请码折叠区 / 底部文字链 / 底部导航
   ========================================================================== */

.md-auth-page {
    /* ---------------------------- 设计变量 ---------------------------- */
    --auth-bg-deep: #06060f;
    --auth-ink: #f7f6ff;
    --auth-ink-2: rgba(244, 242, 255, .66);
    --auth-ink-3: rgba(244, 242, 255, .44);
    --auth-line: rgba(255, 255, 255, .16);
    --auth-glass: rgba(255, 255, 255, .075);
    --auth-hot: #ff4f8b;
    --auth-hot-2: #ff2f9e;
    --auth-violet: #8b5cff;
    --auth-blue: #4d7dff;
    --auth-radius: 16px;
    --auth-blur: 22px;

    position: relative;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    /* ② 深色暗夜渐变：上方偏紫、中段黑蓝、底部近黑 */
    background-color: var(--auth-bg-deep) !important;
    background-image:
        linear-gradient(168deg, #171029 0%, #100d22 30%, #0a0b19 58%, #06070f 84%, #04050b 100%) !important;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}

/* ---------------------- 背景层一：中上方柔和径向光源 ---------------------- */
.md-auth-page::before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(58% 40% at 26% 0%, rgba(139, 92, 255, .30), rgba(139, 92, 255, 0) 66%),
        radial-gradient(52% 34% at 84% 7%, rgba(255, 47, 158, .20), rgba(255, 47, 158, 0) 70%),
        radial-gradient(48% 30% at 50% 20%, rgba(77, 125, 255, .16), rgba(77, 125, 255, 0) 74%),
        radial-gradient(90% 44% at 50% 108%, rgba(77, 125, 255, .13), rgba(77, 125, 255, 0) 74%);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* ------------------- 背景层二：四周暗角（加深纵深）+ 细噪点 ------------------- */
.md-auth-page::after {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(126% 88% at 50% -12%, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, .40) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
    background-size: 100% 100%, 140px 140px;
    background-repeat: no-repeat, repeat;
}

/* ------------------------------- 顶部返回栏 ------------------------------- */
.md-auth-page .van-nav-bar {
    background: transparent !important;
    padding-top: env(safe-area-inset-top);
}

.md-auth-page .van-nav-bar__content {
    height: 52px;
    margin-top: 4px;
}

.md-auth-page .van-nav-bar__title {
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .9);
}

.md-auth-page .van-nav-bar__left {
    left: 14px;
    padding: 0 4px;
}

.md-auth-page .van-nav-bar__arrow {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-right: 0;
    font-size: 19px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .13);
    background: rgba(255, 255, 255, .075);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .16);
}

.md-auth-page .van-nav-bar__left:active .van-nav-bar__arrow {
    background: rgba(255, 255, 255, .13);
}

/* ------------------------------- 表单容器 ------------------------------- */
.md-auth-shell {
    position: relative;
    z-index: 1;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    max-width: 440px;
    min-height: calc(100vh - 120px);
    margin: 0 auto;
    padding: 34px 20px 40px;
    box-sizing: border-box;
}

/* 品牌标识 */
.md-auth-brand {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    margin: 0 0 26px;
}

.md-auth-brand__mark {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 12px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(138deg, var(--auth-hot) 0%, var(--auth-hot-2) 46%, var(--auth-violet) 100%);
    box-shadow:
        0 14px 30px -14px rgba(255, 47, 158, .8),
        inset 0 1px 0 rgba(255, 255, 255, .42);
}

.md-auth-brand__mark svg {
    display: block;
    width: 19px;
    height: 19px;
}

.md-auth-brand__name {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .14em;
    color: rgba(255, 255, 255, .86);
}

/* 标题与副标题：字重 800 + 收紧字距 + 放大留白节奏 */
.md-auth-title {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.01em;
    color: #fff;
    text-shadow: 0 16px 34px rgba(139, 92, 255, .22);
}

.md-auth-sub {
    margin: 0 0 30px;
    font-size: 13.5px;
    line-height: 1.72;
    font-weight: 400;
    letter-spacing: .01em;
    color: rgba(244, 242, 255, .54);
}

/* --------------------------------- 输入框 --------------------------------- */
.md-auth-page .md-auth-form {
    margin: 0;
}

.md-auth-page .van-form .md-field {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 0 13px;
    padding: 0;
    border-radius: var(--auth-radius);
    background: transparent !important;
    overflow: visible;
}

.md-auth-page .van-form .md-field:after {
    display: none !important;
}

.md-auth-page .van-form .md-field:last-child {
    margin-bottom: 0;
}

.md-auth-page .van-form .md-field .van-cell__value {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    width: 100%;
    overflow: visible;
}

/* 真毛玻璃：半透明白底 + 双向渐变光泽 + 22px 高斯模糊 + 1px 亮边 */
.md-auth-page .van-form .md-field .md-field__box {
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    min-height: 56px;
    padding: 0 14px 0 14px;
    border-radius: var(--auth-radius);
    border: 1px solid var(--auth-line);
    background-color: var(--auth-glass);
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, .11) 0%, rgba(255, 255, 255, .03) 52%, rgba(255, 255, 255, .06) 100%),
        radial-gradient(120% 100% at 0% 0%, rgba(139, 92, 255, .16), rgba(139, 92, 255, 0) 60%);
    -webkit-backdrop-filter: blur(var(--auth-blur)) saturate(170%);
    backdrop-filter: blur(var(--auth-blur)) saturate(170%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .22),
        inset 0 -1px 0 rgba(4, 6, 16, .38),
        0 16px 30px -24px rgba(0, 0, 0, .95);
    -webkit-transition: border-color .24s ease, box-shadow .24s ease, background-color .24s ease, -webkit-transform .24s ease;
    transition: border-color .24s ease, box-shadow .24s ease, background-color .24s ease, transform .24s ease;
}

/* 聚焦：柔和发光边框 + 轻微抬升 */
.md-auth-page .van-form .md-field .md-field__box:focus-within,
.md-auth-page .van-form .md-field .md-field__box.is-focus {
    border-color: rgba(255, 110, 168, .70);
    background-color: rgba(255, 255, 255, .105);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .28),
        0 0 0 1px rgba(255, 110, 168, .26),
        0 0 22px rgba(255, 60, 150, .22),
        0 16px 30px -22px rgba(0, 0, 0, .95);
    -webkit-transform: translateY(-1px);
    transform: translateY(-1px);
}

/* 图标：置于玻璃小方块中，形成第二层质感 */
.md-auth-page .van-form .md-field .md-field__icon {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-right: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .07);
    background: rgba(255, 255, 255, .055);
    color: rgba(244, 242, 255, .52);
    -webkit-transition: color .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
    transition: color .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.md-auth-page .van-form .md-field .md-field__icon svg {
    display: block;
    width: 17px;
    height: 17px;
}

.md-auth-page .van-form .md-field .md-field__box:focus-within .md-field__icon,
.md-auth-page .van-form .md-field .md-field__box.is-focus .md-field__icon {
    color: #ff9ab8;
    background: rgba(255, 79, 139, .16);
    border-color: rgba(255, 110, 168, .34);
    box-shadow: 0 0 16px rgba(255, 60, 150, .22);
}

.md-auth-page .van-form .md-field .md-field__box .van-field__control,
.md-auth-page .van-form .md-field .md-field__box .md-field__input {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 54px;
    min-height: 54px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    background-color: transparent;
    color: #fff;
    font-size: 15px;
    line-height: 54px;
    letter-spacing: .01em;
    outline: none;
    -webkit-appearance: none;
}

.md-auth-page .van-form .md-field .md-field__box .van-field__control::-webkit-input-placeholder,
.md-auth-page .van-form .md-field .md-field__box .md-field__input::-webkit-input-placeholder {
    color: rgba(244, 242, 255, .46);
    font-size: 14px;
}

.md-auth-page .van-form .md-field .md-field__box .van-field__control::placeholder,
.md-auth-page .van-form .md-field .md-field__box .md-field__input::placeholder {
    color: rgba(244, 242, 255, .46);
    font-size: 14px;
}

/* 浏览器自动填充时的深色兜底 */
.md-auth-page .van-form .md-field .md-field__box .md-field__input:-webkit-autofill {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0 1000px #1b1830 inset;
    -webkit-transition: background-color 100000s ease-in-out 0s;
}

/* 密码可见切换 */
.md-auth-page .md-field__eye {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-left: 6px;
    padding: 0;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: rgba(244, 242, 255, .42);
    cursor: pointer;
    -webkit-transition: color .18s ease, background .18s ease;
    transition: color .18s ease, background .18s ease;
}

.md-auth-page .md-field__eye svg {
    display: block;
    width: 19px;
    height: 19px;
}

.md-auth-page .md-field__eye .md-eye-off {
    display: none;
}

.md-auth-page .md-field__eye.is-on {
    color: #ff9ab8;
    background: rgba(255, 79, 139, .16);
}

.md-auth-page .md-field__eye.is-on .md-eye-on {
    display: none;
}

.md-auth-page .md-field__eye.is-on .md-eye-off {
    display: block;
}

/* 图形验证码 / 短信验证码 内联控件 */
.md-auth-page .van-field__button {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    padding-left: 10px;
    line-height: normal;
}

.md-auth-page .captcha-button {
    width: 92px;
    height: 36px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 18px -12px rgba(0, 0, 0, .95);
}

.md-auth-page .captcha-button .captcha-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.md-auth-page .code {
    position: static;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    margin-left: 10px;
    padding: 7px 0;
    font-size: 13px;
    line-height: 1.2;
    color: #ff8fb0;
    white-space: nowrap;
    cursor: pointer;
}

.md-auth-page .code[disabled] {
    color: rgba(244, 242, 255, .34);
}

/* ------------------------------ 邀请码折叠区 ------------------------------ */
.md-invite {
    margin: 0;
}

.md-invite__toggle {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    box-sizing: border-box;
    border: 1px dashed rgba(255, 255, 255, .16);
    border-radius: 14px;
    background: rgba(255, 255, 255, .035);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: rgba(244, 242, 255, .66);
    font-family: inherit;
    font-size: 13px;
    letter-spacing: .02em;
    text-align: left;
    cursor: pointer;
    -webkit-appearance: none;
    -webkit-transition: border-color .22s ease, background .22s ease, color .22s ease;
    transition: border-color .22s ease, background .22s ease, color .22s ease;
}

.md-invite__label {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
}

.md-invite__tag {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 79, 139, .14);
    color: rgba(255, 143, 176, .92);
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: .02em;
}

.md-invite__hint {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
    margin-left: 10px;
    font-size: 12px;
    color: rgba(244, 242, 255, .38);
}

.md-invite__chev {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    display: block;
    width: 15px;
    height: 15px;
    margin-left: 8px;
    color: rgba(244, 242, 255, .40);
    -webkit-transition: -webkit-transform .26s ease, color .22s ease;
    transition: transform .26s ease, color .22s ease;
}

.md-invite__body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    -webkit-transition: max-height .3s cubic-bezier(.32, .8, .3, 1), opacity .2s ease, margin .3s ease;
    transition: max-height .3s cubic-bezier(.32, .8, .3, 1), opacity .2s ease, margin .3s ease;
}

.md-invite.is-open .md-invite__toggle {
    border-style: solid;
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    color: rgba(244, 242, 255, .82);
}

.md-invite.is-open .md-invite__chev {
    color: rgba(255, 143, 176, .9);
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

.md-invite.is-open .md-invite__body {
    max-height: 96px;
    opacity: 1;
    margin-top: 11px;
}

/* 折叠区内的输入框不参与外层节奏的底边距 */
.md-invite .md-field {
    margin-bottom: 0 !important;
}

/* -------------------------------- 辅助链接 -------------------------------- */
.md-auth-assist {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
    justify-content: flex-end;
    margin: 2px 0 0;
}

.md-auth-assist__link {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    min-height: 44px;
    padding: 0 8px;
    color: rgba(244, 242, 255, .64);
    font-size: 13px;
    letter-spacing: .03em;
    text-decoration: none;
    -webkit-transition: color .18s ease;
    transition: color .18s ease;
}

.md-auth-assist__link svg {
    display: block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    opacity: .82;
}

.md-auth-assist__link:active {
    color: #ff9ab8;
}

/* --------------------------------- 主按钮 --------------------------------- */
/* 渐变胶囊：本体线性渐变 + 顶部内高光 + 底部内阴影造厚度 + 低透明度大模糊弥散投影 */
.md-auth-actions {
    margin-top: 28px;
    text-align: center;
}

.md-auth-page .md-cta {
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    width: 100% !important;
    height: 56px;
    padding: 0 24px;
    box-sizing: border-box;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .14em;
    text-shadow: 0 1px 2px rgba(110, 0, 55, .28);
    background-color: #f5398f;
    background-image: linear-gradient(96deg, #ff6f9c 0%, #ff3d95 44%, #9d5bff 100%);
    box-shadow:
        0 18px 34px -16px rgba(232, 52, 150, .52),
        0 8px 18px -12px rgba(112, 70, 235, .44),
        inset 0 1px 0 rgba(255, 255, 255, .40),
        inset 0 -12px 22px -14px rgba(70, 0, 50, .52);
    -webkit-transition: -webkit-transform .16s ease, box-shadow .24s ease, -webkit-filter .24s ease;
    transition: transform .16s ease, box-shadow .24s ease, filter .24s ease;
}

/* 顶部渐隐高光（柔化，不做硬边） */
.md-auth-page .md-cta::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 52%;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0));
    pointer-events: none;
}

/* 缓慢流光：低透明度、长周期，避免生硬 */
.md-auth-page .md-cta::after {
    content: "";
    position: absolute;
    top: -70%;
    left: -45%;
    width: 42%;
    height: 240%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .22), rgba(255, 255, 255, 0));
    -webkit-transform: rotate(16deg) translateX(0);
    transform: rotate(16deg) translateX(0);
    -webkit-animation: md-cta-sweep 7.2s ease-in-out infinite;
    animation: md-cta-sweep 7.2s ease-in-out infinite;
    pointer-events: none;
}

@-webkit-keyframes md-cta-sweep {
    0%, 64% { -webkit-transform: rotate(16deg) translateX(0); }
    100% { -webkit-transform: rotate(16deg) translateX(400%); }
}

@keyframes md-cta-sweep {
    0%, 64% { transform: rotate(16deg) translateX(0); }
    100% { transform: rotate(16deg) translateX(400%); }
}

.md-auth-page .md-cta:active {
    -webkit-transform: translateY(1px) scale(.995);
    transform: translateY(1px) scale(.995);
    box-shadow:
        0 8px 18px -14px rgba(232, 52, 150, .5),
        inset 0 1px 0 rgba(255, 255, 255, .34);
}

/* ------------------------------ 切换登录/注册 ------------------------------ */
.md-auth-switch {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    min-height: 40px;
    margin: 8px auto 0;
    padding: 0 10px;
    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    background: none;
    color: rgba(244, 242, 255, .58);
    font-size: 13.5px;
    letter-spacing: .03em;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-transition: color .18s ease;
    transition: color .18s ease;
}

.md-auth-switch b {
    font-weight: 600;
    color: #ff8fb0;
    border-bottom: 1px solid rgba(255, 143, 176, .3);
    padding-bottom: 1px;
}

.md-auth-switch svg {
    display: block;
    width: 14px;
    height: 14px;
    margin-left: 5px;
    color: rgba(244, 242, 255, .38);
    -webkit-transition: color .18s ease, -webkit-transform .18s ease;
    transition: color .18s ease, transform .18s ease;
}

.md-auth-switch:active {
    color: rgba(244, 242, 255, .76);
}

.md-auth-switch:active b {
    color: #ffb3c9;
}

.md-auth-switch:active svg {
    color: rgba(244, 242, 255, .62);
    -webkit-transform: translateX(2px);
    transform: translateX(2px);
}

@media (hover: hover) and (pointer: fine) {
    .md-auth-switch:hover {
        color: rgba(244, 242, 255, .8);
    }

    .md-auth-switch:hover b {
        color: #ffb3c9;
        border-bottom-color: rgba(255, 179, 201, .5);
    }

    .md-auth-switch:hover svg {
        color: rgba(244, 242, 255, .62);
        -webkit-transform: translateX(2px);
        transform: translateX(2px);
    }

    .md-auth-page .md-cta:hover {
        -webkit-filter: brightness(1.06) saturate(1.04);
        filter: brightness(1.06) saturate(1.04);
        box-shadow:
            0 20px 38px -16px rgba(232, 52, 150, .56),
            0 8px 18px -12px rgba(112, 70, 235, .46),
            inset 0 1px 0 rgba(255, 255, 255, .44),
            inset 0 -12px 22px -14px rgba(70, 0, 50, .52);
    }

    .md-invite__toggle:hover {
        border-color: rgba(255, 255, 255, .24);
        background: rgba(255, 255, 255, .06);
        color: rgba(244, 242, 255, .82);
    }
}

/* -------------------------------- 底部导航 -------------------------------- */
.md-auth-page .van-tabbar {
    background: rgba(9, 10, 20, .72) !important;
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    border-top: 1px solid rgba(255, 255, 255, .07);
    box-shadow: 0 -14px 32px -20px rgba(0, 0, 0, .95);
}

.md-auth-page .van-tabbar-item {
    color: rgba(244, 242, 255, .54);
}

.md-auth-page .van-tabbar-item--active {
    color: var(--auth-hot) !important;
    background-color: transparent !important;
}

/* -------------------------------- 响应式微调 -------------------------------- */
@media (max-width: 359.98px) {
    .md-auth-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

    .md-auth-title {
        font-size: 26px;
    }

    .md-auth-sub {
        font-size: 13px;
        margin-bottom: 24px;
    }

    .md-auth-page .van-form .md-field .md-field__box {
        min-height: 52px;
        padding: 0 12px;
    }

    .md-auth-page .van-form .md-field .md-field__box .van-field__control,
    .md-auth-page .van-form .md-field .md-field__box .md-field__input {
        height: 50px;
        min-height: 50px;
        line-height: 50px;
        font-size: 14.5px;
    }

    .md-auth-page .van-form .md-field .md-field__icon {
        width: 28px;
        height: 28px;
        margin-right: 10px;
    }

    .md-auth-page .md-cta {
        height: 52px;
        font-size: 15.5px;
    }

    .md-invite__toggle {
        padding: 0 12px;
        font-size: 12.5px;
    }
}

@media (min-width: 768px) {
    .md-auth-shell {
        min-height: calc(100vh - 120px);
        padding-top: 44px;
        padding-bottom: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .md-auth-page .md-cta::after {
        -webkit-animation: none;
        animation: none;
        opacity: .3;
    }

    .md-auth-page .van-form .md-field .md-field__box,
    .md-auth-page .md-cta,
    .md-invite__body,
    .md-invite__chev {
        -webkit-transition: none;
        transition: none;
    }
}

/* 键盘可达性：CTA 与折叠按钮的键盘焦点环 */
.md-auth-page .md-cta:focus-visible {
    outline: 2px solid rgba(255, 143, 176, .78);
    outline-offset: 3px;
}

.md-invite__toggle:focus-visible {
    outline: 2px solid rgba(255, 143, 176, .62);
    outline-offset: 2px;
}
