﻿/* ==========================================================================
   TaiQi Auth — 登录 / 注册 页面样式
   仅服务于 Login.aspx、Register.aspx（PC 前台，两者都不使用母版页）
   依赖：css/tokens.css 必须先于本文件加载（色板 / 字号 / 间距 / 阴影 / 动效）
   ========================================================================== */

/* ---------- 1. 认证页专属 token（可移植的原始量在 css/tokens.css） ---------- */
:root {
    --ctl-h: 48px;
    --icon-size: 19px;
    --brand-col: minmax(360px, 44%);
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body.auth-body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--fs-14);
    line-height: 1.6;
    color: hsl(var(--ink-800));
    background: hsl(var(--surface));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.auth-body ::selection {
    background: hsl(var(--brand-500) / .22);
    color: hsl(var(--ink-900));
}

body.auth-body :focus {
    outline: 0;
}

body.auth-body a {
    color: hsl(var(--brand-600));
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease-out);
}

    body.auth-body a:hover {
        color: hsl(var(--brand-700));
        text-decoration: none;
    }

    body.auth-body a:focus-visible {
        outline: 2px solid hsl(var(--brand-500));
        outline-offset: 3px;
        border-radius: var(--sp-1);
    }

.auth-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- 3. Shell ---------- */
.auth-shell {
    display: grid;
    grid-template-columns: var(--brand-col) minmax(0, 1fr);
    grid-template-areas: "brand panel";
    min-height: 100vh;
    min-height: 100svh;
}

.auth-shell--wide-form {
    --brand-col: minmax(340px, 38%);
}

/* ---------- 4. Brand Panel ---------- */
.auth-brand {
    grid-area: brand;
    position: sticky;
    top: 0;
    align-self: start;
    display: flex;
    height: 100vh;
    height: 100svh;
    padding: var(--sp-12) clamp(36px, 4vw, 64px);
    overflow: hidden;
    isolation: isolate;
    color: hsl(0 0% 100%);
    background:
        radial-gradient(115% 85% at 8% 4%, hsl(var(--brand-500) / .55) 0%, transparent 56%),
        radial-gradient(95% 75% at 96% 96%, hsl(var(--accent-400) / .38) 0%, transparent 58%),
        linear-gradient(157deg, hsl(var(--brand-950)) 0%, hsl(var(--brand-900)) 38%, hsl(var(--brand-800)) 76%, hsl(var(--brand-700)) 100%);
}

.brand-layer {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.brand-grid {
    background-image:
        linear-gradient(to right, hsl(0 0% 100% / .075) 1px, transparent 1px),
        linear-gradient(to bottom, hsl(0 0% 100% / .075) 1px, transparent 1px);
    background-size: 68px 68px;
    -webkit-mask-image: radial-gradient(130% 105% at 18% 12%, #000 18%, transparent 76%);
    mask-image: radial-gradient(130% 105% at 18% 12%, #000 18%, transparent 76%);
}

.brand-noise {
    opacity: .17;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.brand-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    will-change: transform;
}

.brand-orb--a {
    top: -12%;
    left: -18%;
    width: 440px;
    height: 440px;
    background: hsl(var(--brand-400) / .5);
    animation: auth-orb-a 24s var(--ease-in-out) infinite alternate;
}

.brand-orb--b {
    right: -16%;
    bottom: -14%;
    width: 380px;
    height: 380px;
    background: hsl(var(--accent-400) / .4);
    animation: auth-orb-b 30s var(--ease-in-out) infinite alternate;
}

.brand-inner {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Logo 芯片 */
.brand-logo {
    display: inline-flex;
    align-self: flex-start;
    padding: var(--sp-2) var(--sp-4);
    border: 1px solid hsl(0 0% 100% / .55);
    border-radius: var(--r-full);
    background: hsl(0 0% 100% / .95);
    box-shadow: 0 10px 26px -14px hsl(var(--brand-950) / .9);
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
    animation: auth-rise var(--dur-slow) var(--ease-out) both;
}

    .brand-logo:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 32px -14px hsl(var(--brand-950) / .95);
    }

    .brand-logo img {
        display: block;
        height: 30px;
        width: auto;
    }

/* 文案区 */
.brand-copy {
    padding: var(--sp-10) 0;
}

    .brand-copy > * {
        animation: auth-rise var(--dur-slow) var(--ease-out) both;
    }

    .brand-copy > *:nth-child(1) {
        animation-delay: 90ms;
    }

    .brand-copy > *:nth-child(2) {
        animation-delay: 170ms;
    }

    .brand-copy > *:nth-child(3) {
        animation-delay: 250ms;
    }

    .brand-copy > *:nth-child(4) {
        animation-delay: 330ms;
    }

    .brand-copy > *:nth-child(5) {
        animation-delay: 410ms;
    }

.brand-kicker {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    margin: 0 0 var(--sp-5);
    padding: 5px var(--sp-3);
    border: 1px solid hsl(0 0% 100% / .28);
    border-radius: var(--r-full);
    background: hsl(0 0% 100% / .1);
    font-size: var(--fs-12);
    letter-spacing: .16em;
    color: hsl(var(--brand-100));
    text-transform: uppercase;
}

.brand-kicker-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: hsl(var(--accent-300));
    box-shadow: 0 0 0 0 hsl(var(--accent-300) / .7);
    animation: auth-pulse 2.6s var(--ease-in-out) infinite;
}

.brand-title {
    margin: 0;
    font-size: clamp(28px, 2.5vw, var(--fs-34));
    font-weight: 600;
    line-height: 1.24;
    letter-spacing: .01em;
    color: hsl(0 0% 100%);
    text-wrap: balance;
}

.brand-sub {
    margin: var(--sp-4) 0 0;
    font-size: var(--fs-16);
    font-weight: 300;
    line-height: 1.7;
    letter-spacing: .04em;
    color: hsl(0 0% 100% / .78);
}

.brand-features {
    margin: var(--sp-8) 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: var(--sp-4);
}

.brand-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    font-size: var(--fs-14);
    line-height: 1.65;
    color: hsl(0 0% 100% / .84);
    transition: color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

    .brand-feature:hover {
        color: hsl(0 0% 100%);
        transform: translateX(3px);
    }

.brand-feature-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    border-radius: var(--r-full);
    border: 1px solid hsl(0 0% 100% / .32);
    background: hsl(0 0% 100% / .12);
    color: hsl(var(--brand-100));
}

    .brand-feature-icon svg {
        width: 12px;
        height: 12px;
        stroke: currentColor;
        stroke-width: 2.6;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* 底部：文档卡片 + 版权 */
.brand-bottom {
    animation: auth-rise var(--dur-slow) var(--ease-out) 320ms both;
}

.brand-stage {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: var(--sp-4);
    height: 196px;
    margin: 0 0 var(--sp-6);
}

.doc-slot {
    flex: 0 1 158px;
    min-width: 0;
    animation: auth-float 7s var(--ease-in-out) infinite;
}

.doc-slot--a {
    animation-duration: 8.5s;
    animation-delay: -1.2s;
}

.doc-slot--b {
    animation-duration: 7.2s;
    animation-delay: -3.4s;
}

.doc-slot--c {
    animation-duration: 9.4s;
    animation-delay: -5s;
}

.doc-card {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    height: 172px;
    padding: var(--sp-4);
    border: 1px solid hsl(0 0% 100% / .82);
    border-radius: var(--r-md);
    background: hsl(0 0% 100% / .9);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.doc-slot--b .doc-card {
    height: 196px;
    background: hsl(0 0% 100% / .98);
    box-shadow: var(--shadow-card), 0 12px 28px -18px hsl(var(--brand-950) / .9);
}

.doc-bar {
    flex: none;
    width: 30px;
    height: 4px;
    border-radius: var(--r-full);
    background: linear-gradient(90deg, hsl(var(--brand-500)), hsl(var(--accent-400)));
}

.doc-h {
    margin-top: var(--sp-1);
    font-size: var(--fs-14);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .02em;
    color: hsl(var(--ink-900));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-tags {
    font-size: var(--fs-11);
    line-height: 1.5;
    letter-spacing: .01em;
    color: hsl(var(--ink-500));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-line {
    flex: none;
    height: 5px;
    border-radius: var(--r-full);
    background: hsl(var(--line));
}

.doc-line--1 {
    width: 92%;
}

.doc-line--2 {
    width: 68%;
}

.doc-chart {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 32px;
    margin-top: auto;
    padding-top: var(--sp-2);
    border-top: 1px solid hsl(var(--line-soft));
}

    .doc-chart i {
        flex: 1;
        border-radius: 3px 3px 1px 1px;
        background: linear-gradient(180deg, hsl(var(--brand-400)), hsl(var(--brand-600)));
        opacity: .82;
        transform-origin: bottom;
        animation: auth-bar 3.6s var(--ease-in-out) infinite;
    }

        .doc-chart i:nth-child(1) {
            height: 44%;
            animation-delay: 0s;
        }

        .doc-chart i:nth-child(2) {
            height: 72%;
            animation-delay: .28s;
        }

        .doc-chart i:nth-child(3) {
            height: 55%;
            animation-delay: .56s;
        }

        .doc-chart i:nth-child(4) {
            height: 90%;
            animation-delay: .84s;
        }

.brand-foot {
    font-size: var(--fs-12);
    letter-spacing: .03em;
    color: hsl(0 0% 100% / .58);
}

/* ---------- 5. Form Panel ---------- */
.auth-panel {
    grid-area: panel;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: var(--sp-8) clamp(28px, 5vw, 80px) var(--sp-8);
    background:
        radial-gradient(90% 60% at 100% 0%, hsl(var(--brand-50)) 0%, transparent 62%),
        hsl(var(--surface));
    animation: auth-panel-in var(--dur-slow) var(--ease-out) both;
}

.auth-panel-inner {
    width: 100%;
    max-width: 420px;
    margin: auto;
}

.auth-shell--wide-form .auth-panel-inner {
    max-width: 560px;
}

.auth-title {
    margin: 0;
    font-size: var(--fs-26);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.01em;
    color: hsl(var(--ink-900));
}

.auth-sub {
    margin: var(--sp-3) 0 0;
    font-size: var(--fs-14);
    line-height: 1.7;
    color: hsl(var(--ink-500));
}

.auth-form {
    margin-top: var(--sp-8);
}

/* 分组标签 */
.form-section + .form-section {
    margin-top: var(--sp-6);
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin: 0 0 var(--sp-4);
    font-size: var(--fs-12);
    font-weight: 600;
    letter-spacing: .14em;
    color: hsl(var(--ink-400));
    text-transform: uppercase;
}

    .form-section-title::after {
        content: "";
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, hsl(var(--line)), transparent);
    }

/* 两列栅格 */
.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--sp-5);
}

/* ---------- 6. Field ---------- */
.field {
    position: relative;
    margin-bottom: var(--sp-6);
}

.field-label {
    display: block;
    margin-bottom: var(--sp-2);
    font-size: var(--fs-13);
    font-weight: 500;
    letter-spacing: .02em;
    color: hsl(var(--ink-700));
}

.field-label-hint {
    margin-left: var(--sp-2);
    font-size: var(--fs-12);
    font-weight: 400;
    color: hsl(var(--ink-400));
}

.field-icon {
    position: absolute;
    left: var(--sp-4);
    bottom: calc((var(--ctl-h) - var(--icon-size)) / 2);
    width: var(--icon-size);
    height: var(--icon-size);
    color: hsl(var(--ink-400));
    pointer-events: none;
    transition: color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

    .field-icon svg {
        display: block;
        width: 100%;
        height: 100%;
        stroke: currentColor;
        stroke-width: 1.7;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.field:focus-within .field-icon {
    color: hsl(var(--brand-600));
    transform: scale(1.06);
}

.field--area .field-icon {
    top: 40px;
    bottom: auto;
}

/* 输入控件：保留 pass-text-input 钩子 */
.pass-text-input {
    display: block;
    width: 100%;
    height: var(--ctl-h);
    padding: 0 var(--sp-4) 0 calc(var(--sp-4) + var(--icon-size) + 11px);
    border: 1px solid hsl(var(--line));
    border-radius: var(--r-input);
    background: hsl(var(--surface));
    font-family: inherit;
    font-size: var(--fs-14);
    color: hsl(var(--ink-900));
    box-shadow: 0 1px 2px hsl(var(--ink-900) / .03);
    transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
    -webkit-appearance: none;
    appearance: none;
}

    .pass-text-input::placeholder {
        color: hsl(var(--ink-500));
        opacity: .78;
    }

    .pass-text-input:hover {
        border-color: hsl(var(--brand-300));
    }

    .pass-text-input:focus {
        border-color: hsl(var(--brand-500));
        background: hsl(var(--surface));
        box-shadow: var(--shadow-focus);
    }

textarea.pass-text-input {
    height: 84px;
    min-height: 84px;
    padding-top: var(--sp-3);
    padding-bottom: var(--sp-3);
    line-height: 1.65;
    resize: vertical;
}

.field--toggle .pass-text-input {
    padding-right: calc(var(--sp-4) + 34px);
}

/* 密码可见性切换 */
.field-suffix {
    position: absolute;
    right: var(--sp-2);
    bottom: calc((var(--ctl-h) - 34px) / 2);
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    color: hsl(var(--ink-400));
    cursor: pointer;
    transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

    .field-suffix:hover {
        color: hsl(var(--brand-600));
        background: hsl(var(--brand-50));
    }

    .field-suffix:focus-visible {
        outline: 2px solid hsl(var(--brand-500));
        outline-offset: 1px;
    }

    .field-suffix svg {
        width: 18px;
        height: 18px;
        stroke: currentColor;
        stroke-width: 1.7;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .field-suffix .icon-eye-off {
        display: none;
    }

    .field-suffix[aria-pressed="true"] .icon-eye {
        display: none;
    }

    .field-suffix[aria-pressed="true"] .icon-eye-off {
        display: block;
    }

/* 校验错误：保留 pass-item-error 钩子，绝对定位不引起布局抖动 */
.pass-item-error {
    position: absolute;
    top: 100%;
    left: 2px;
    margin-top: 6px;
    font-size: var(--fs-12);
    line-height: 1.5;
    color: hsl(var(--danger));
    pointer-events: none;
}

    .pass-item-error:not(:empty) {
        animation: auth-error-in var(--dur) var(--ease-out) both;
    }

.field:has(.pass-item-error:not(:empty)) .pass-text-input {
    border-color: hsl(var(--danger));
    background: hsl(var(--danger-soft));
}

.field:has(.pass-item-error:not(:empty)) .field-icon {
    color: hsl(var(--danger));
}

.field:has(.pass-item-error:not(:empty)) .pass-text-input:focus {
    box-shadow: var(--shadow-focus-danger);
}

/* ---------- 7. 验证码行 ---------- */
.field--code {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    column-gap: var(--sp-2);
    row-gap: 0;
}

    .field--code .field-label {
        flex: 0 0 100%;
    }

    .field--code .pass-text-input {
        flex: 1 1 0;
        min-width: 0;
    }

.pass-button-verifyCodeSend {
    flex: 0 0 128px;
    height: var(--ctl-h);
    border: 1px solid hsl(var(--brand-200));
    border-radius: var(--r-input);
    background: hsl(var(--brand-50));
    font-family: inherit;
    font-size: var(--fs-13);
    font-weight: 500;
    color: hsl(var(--brand-600));
    cursor: pointer;
    transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out);
    -webkit-appearance: none;
    appearance: none;
}

    .pass-button-verifyCodeSend:hover:not(:disabled) {
        border-color: hsl(var(--brand-400));
        background: hsl(var(--brand-100));
        color: hsl(var(--brand-700));
        transform: translateY(-1px);
    }

    .pass-button-verifyCodeSend:active:not(:disabled) {
        transform: translateY(0);
    }

    .pass-button-verifyCodeSend:disabled {
        border-color: hsl(var(--line));
        background: hsl(var(--surface-muted));
        color: hsl(var(--ink-400));
        cursor: not-allowed;
    }

/* ---------- 8. 辅助行 / 勾选 ---------- */
.field-aux {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    margin: calc(-1 * var(--sp-1)) 0 var(--sp-5);
    font-size: var(--fs-13);
}

.field-aux-link {
    color: hsl(var(--ink-500));
    position: relative;
}

    .field-aux-link::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -2px;
        height: 1px;
        background: currentColor;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform var(--dur) var(--ease-out);
    }

    .field-aux-link:hover {
        color: hsl(var(--brand-600));
    }

        .field-aux-link:hover::after {
            transform: scaleX(1);
        }

.check {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: hsl(var(--ink-600));
    line-height: 1.55;
    user-select: none;
}

    .check input {
        position: absolute;
        width: 1px;
        height: 1px;
        opacity: 0;
        pointer-events: none;
    }

.check-box {
    flex: none;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border: 1.5px solid hsl(var(--line-strong));
    border-radius: 5px;
    background: hsl(var(--surface));
    transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

    .check-box svg {
        width: 11px;
        height: 11px;
        stroke: hsl(0 0% 100%);
        stroke-width: 3.2;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
        opacity: 0;
        transform: scale(.4);
        transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur) var(--ease-spring);
    }

.check:hover .check-box {
    border-color: hsl(var(--brand-400));
}

.check input:checked + .check-box {
    border-color: hsl(var(--brand-600));
    background: hsl(var(--brand-600));
}

    .check input:checked + .check-box svg {
        opacity: 1;
        transform: scale(1);
    }

.check input:focus-visible + .check-box {
    box-shadow: var(--shadow-focus);
}

.check-text a {
    font-weight: 500;
}

.field--agree {
    margin: 0 0 var(--sp-5);
}

    .field--agree .pass-item-error {
        top: calc(100% - 2px);
    }

/* ---------- 9. 主按钮 ---------- */
.pass-button-submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    width: 100%;
    height: 52px;
    padding: 0 var(--sp-6);
    border: 0;
    border-radius: var(--r-input);
    background: linear-gradient(135deg, hsl(var(--brand-600)) 0%, hsl(var(--brand-700)) 100%);
    font-family: inherit;
    font-size: var(--fs-15);
    font-weight: 600;
    letter-spacing: .1em;
    color: hsl(0 0% 100%);
    cursor: pointer;
    overflow: hidden;
    box-shadow: var(--shadow-btn);
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), filter var(--dur) var(--ease-out);
    -webkit-appearance: none;
    appearance: none;
}

    .pass-button-submit::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: -60%;
        width: 45%;
        background: linear-gradient(100deg, transparent, hsl(0 0% 100% / .3), transparent);
        transform: skewX(-18deg);
        transition: left var(--dur-slow) var(--ease-out);
    }

    .pass-button-submit:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-btn-hover);
        filter: saturate(1.08);
    }

        .pass-button-submit:hover::before {
            left: 115%;
        }

    .pass-button-submit:active {
        transform: translateY(0) scale(.994);
        box-shadow: var(--shadow-btn);
    }

    .pass-button-submit:focus-visible {
        outline: 2px solid hsl(var(--brand-700));
        outline-offset: 3px;
    }

.submit-arrow {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform var(--dur) var(--ease-out);
}

.pass-button-submit:hover .submit-arrow {
    transform: translateX(4px);
}

/* ---------- 10. 切换 / 页脚 ---------- */
.auth-switch {
    margin: var(--sp-5) 0 0;
    padding-top: var(--sp-5);
    border-top: 1px solid hsl(var(--line-soft));
    font-size: var(--fs-13);
    text-align: center;
    color: hsl(var(--ink-500));
}

    .auth-switch a {
        margin-left: var(--sp-1);
        font-weight: 600;
    }

.auth-foot {
    width: 100%;
    max-width: 560px;
    margin: var(--sp-6) auto 0;
    padding-top: var(--sp-5);
    font-size: var(--fs-12);
    line-height: 1.8;
    color: hsl(var(--ink-400));
    text-align: center;
}

.auth-foot-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-1);
}

    .auth-foot-links a {
        color: hsl(var(--ink-500));
    }

        .auth-foot-links a:hover {
            color: hsl(var(--brand-600));
        }

.auth-foot-sep {
    width: 1px;
    height: 10px;
    background: hsl(var(--line));
}

/* ---------- 11. Element UI 消息浮层微调 ---------- */
.el-message {
    min-width: 320px;
    padding: 13px 20px;
    border-radius: var(--r-md);
    border-width: 1px;
    box-shadow: var(--shadow-pop);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

/* ---------- 12. Keyframes ---------- */
@keyframes auth-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes auth-panel-in {
    from {
        opacity: 0;
        transform: translateX(22px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes auth-error-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes auth-float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-11px);
    }
}

@keyframes auth-orb-a {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(58px, 74px, 0) scale(1.14);
    }
}

@keyframes auth-orb-b {
    from {
        transform: translate3d(0, 0, 0) scale(1.06);
    }

    to {
        transform: translate3d(-64px, -52px, 0) scale(.92);
    }
}

@keyframes auth-pulse {
    0% {
        box-shadow: 0 0 0 0 hsl(var(--accent-300) / .65);
    }

    70% {
        box-shadow: 0 0 0 7px hsl(var(--accent-300) / 0);
    }

    100% {
        box-shadow: 0 0 0 0 hsl(var(--accent-300) / 0);
    }
}

@keyframes auth-bar {
    0%, 100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(.72);
    }
}

/* 表单逐项入场 */
.auth-form > *,
.auth-title,
.auth-sub {
    animation: auth-rise var(--dur-slow) var(--ease-out) both;
}

.auth-title {
    animation-delay: 60ms;
}

.auth-sub {
    animation-delay: 130ms;
}

.auth-form > *:nth-child(1) {
    animation-delay: 190ms;
}

.auth-form > *:nth-child(2) {
    animation-delay: 250ms;
}

.auth-form > *:nth-child(3) {
    animation-delay: 310ms;
}

.auth-form > *:nth-child(4) {
    animation-delay: 370ms;
}

.auth-form > *:nth-child(5) {
    animation-delay: 430ms;
}

.auth-form > *:nth-child(6) {
    animation-delay: 490ms;
}

.auth-switch,
.auth-foot {
    animation: auth-rise var(--dur-slow) var(--ease-out) 540ms both;
}

/* ---------- 13. Responsive ---------- */
@media (max-width: 1180px) {
    :root {
        --brand-col: minmax(320px, 42%);
    }

    .auth-shell--wide-form {
        --brand-col: minmax(300px, 36%);
    }
}

@media (max-width: 1280px) {
    .brand-title {
        font-size: clamp(24px, 2.2vw, 30px);
    }

    .brand-sub {
        font-size: var(--fs-15);
    }

    .brand-features {
        gap: var(--sp-3);
        margin-top: var(--sp-6);
    }

    .brand-feature {
        font-size: var(--fs-13);
        line-height: 1.6;
    }
}

@media (max-height: 820px), (max-width: 1280px) {
    .brand-copy {
        padding: var(--sp-6) 0;
    }

    .brand-stage {
        gap: var(--sp-3);
        height: 112px;
        margin-bottom: var(--sp-4);
    }

    .doc-slot {
        flex-basis: 128px;
    }

    .doc-card {
        height: 96px;
        padding: var(--sp-3);
    }

    .doc-slot--b .doc-card {
        height: 112px;
    }

    .doc-h {
        font-size: var(--fs-13);
    }

    .doc-line,
    .doc-chart {
        display: none;
    }
}

@media (max-height: 680px) {
    .brand-stage {
        display: none;
    }
}

@media (max-width: 960px) {
    .auth-shell,
    .auth-shell--wide-form {
        display: flex;
        flex-direction: column;
        --brand-col: auto;
    }

    .auth-brand {
        order: -1;
        position: relative;
        align-self: stretch;
        height: auto;
        min-height: 0;
        padding: var(--sp-6) var(--sp-6) var(--sp-8);
    }

    .brand-inner {
        display: block;
        max-width: none;
    }

    .brand-copy {
        padding: var(--sp-5) 0 0;
    }

    .brand-features,
    .brand-stage,
    .brand-bottom {
        display: none;
    }

    .brand-title {
        font-size: var(--fs-20);
    }

    .brand-sub {
        margin-top: var(--sp-2);
        font-size: var(--fs-14);
    }

    .auth-panel {
        padding: var(--sp-10) var(--sp-6) var(--sp-8);
        animation: none;
    }
}

@media (max-width: 720px) {
    .field-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-panel-inner,
    .auth-shell--wide-form .auth-panel-inner {
        max-width: none;
    }

    .field--code .pass-button-verifyCodeSend {
        flex: 0 0 116px;
    }
}

/* ---------- 14. 降低动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    .brand-orb {
        animation: none;
    }
}
