/* =========================================================
   登录 / 注册 — 建筑金属蓝图视觉
   ========================================================= */
.auth-body {
    background: #070A0E;
    overflow-x: hidden;
}

.auth-page {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(440px, .82fr);
    min-height: 100vh;
}

/* ---------------- 左侧视觉 ---------------- */
.auth-visual {
    position: relative;
    overflow: hidden;
    padding: 34px 46px 26px;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(900px 600px at 18% 24%, rgba(223, 169, 107, .10), transparent 62%),
        radial-gradient(700px 500px at 88% 88%, rgba(104, 195, 204, .07), transparent 62%),
        linear-gradient(155deg, #0C1218 0%, #080C11 58%, #06090D 100%);
    border-right: 1px solid rgba(154, 177, 193, .12);
}

.visual-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(154, 177, 193, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(154, 177, 193, .045) 1px, transparent 1px);
    background-size: 76px 76px;
    mask-image: radial-gradient(ellipse at 42% 48%, #000 10%, transparent 78%);
    opacity: .7;
}

.visual-grid::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(154, 177, 193, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(154, 177, 193, .07) 1px, transparent 1px);
    background-size: 19px 19px;
    mask-image: radial-gradient(ellipse at 60% 60%, #000 0%, transparent 55%);
    opacity: .35;
}

.visual-scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 160px;
    top: -160px;
    background: linear-gradient(180deg, transparent, rgba(223, 169, 107, .055), transparent);
    animation: scanMove 9s linear infinite;
    pointer-events: none;
}
@keyframes scanMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(calc(100vh + 320px)); }
}

.visual-glow {
    position: absolute;
    left: 8%;
    top: 34%;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(223, 169, 107, .10), transparent 65%);
    filter: blur(20px);
    pointer-events: none;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    position: relative;
    z-index: 3;
    animation: authFade .7s ease both;
}

.auth-brand .brand-mark { width: 40px; height: 40px; }
.brand-name { display: flex; flex-direction: column; gap: 1px; }
.brand-name strong { font-size: 16px; font-weight: 600; letter-spacing: .1em; color: #F3F0E9; }
.brand-name em {
    font-family: var(--font-display);
    font-style: normal;
    font-size: 9px;
    letter-spacing: .28em;
    color: #6E8090;
}

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

.canopy-blueprint {
    position: absolute;
    right: -12%;
    bottom: -6%;
    width: 96%;
    max-width: 980px;
    opacity: .9;
    filter: drop-shadow(0 0 30px rgba(223, 169, 107, .05));
}

.visual-copy {
    position: relative;
    z-index: 3;
    margin: auto 0;
    max-width: 560px;
    padding: 40px 0 30px;
}

.visual-copy .eyebrow {
    color: #8B9DA9;
    letter-spacing: .24em;
    font-size: 9.5px;
    margin-bottom: 18px;
    animation: authFade .8s .08s ease both;
}
.visual-copy .eyebrow i { width: 26px; background: var(--amber); }

.visual-copy h1 {
    font-size: clamp(38px, 4.2vw, 56px);
    line-height: 1.14;
    font-weight: 500;
    letter-spacing: .02em;
    color: #EDF2F5;
    animation: authFade .8s .16s ease both;
}

.visual-copy h1 em {
    font-style: normal;
    color: var(--amber-2);
    position: relative;
    white-space: nowrap;
}
.visual-copy h1 em::after {
    content: "";
    position: absolute;
    left: 2px;
    right: 2px;
    bottom: 4px;
    height: 8px;
    background: linear-gradient(90deg, rgba(223, 169, 107, .26), transparent);
    z-index: -1;
}

.visual-copy p {
    margin-top: 20px;
    max-width: 460px;
    font-size: 12.5px;
    line-height: 1.9;
    color: #8FA0AC;
    animation: authFade .8s .24s ease both;
}

.visual-stats {
    display: flex;
    gap: 0;
    margin-top: 34px;
    border-top: 1px solid rgba(154, 177, 193, .14);
    padding-top: 20px;
    animation: authFade .8s .32s ease both;
}

.visual-stats > div {
    padding-right: 36px;
    margin-right: 36px;
    border-right: 1px solid rgba(154, 177, 193, .12);
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.visual-stats > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }

.visual-stats strong {
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 500;
    color: #F0E4D0;
    letter-spacing: .02em;
}
.visual-stats span { font-size: 9.5px; color: #788996; letter-spacing: .14em; }

.visual-foot {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 9.5px;
    letter-spacing: .06em;
    color: #5E6E7A;
    border-top: 1px solid rgba(154, 177, 193, .08);
    padding-top: 14px;
}
.visual-foot .foot-tag {
    font-family: var(--font-display);
    letter-spacing: .22em;
    color: #6E5A40;
}

/* ---------------- 右侧表单 ---------------- */
.auth-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 38px;
    background:
        radial-gradient(600px 400px at 100% 0, rgba(223, 169, 107, .05), transparent 60%),
        #090D12;
    overflow: hidden;
}

.auth-panel-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(154, 177, 193, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(154, 177, 193, .03) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse at 70% 50%, #000, transparent 75%);
    pointer-events: none;
}

.auth-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    padding: 34px 34px 28px;
    background:
        linear-gradient(140deg, rgba(255, 255, 255, .05), transparent 32%),
        rgba(15, 22, 30, .82);
    border: 1px solid rgba(154, 177, 193, .16);
    border-radius: 4px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .04);
    backdrop-filter: blur(22px);
    animation: cardIn .7s cubic-bezier(.2, .8, .2, 1) both;
}

.auth-card::before, .auth-card::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border-color: rgba(223, 169, 107, .55);
    border-style: solid;
    pointer-events: none;
}
.auth-card::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.auth-card::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.auth-card.register { max-width: 470px; padding-top: 30px; }

.auth-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.auth-index {
    font-family: var(--font-display);
    font-size: 8.5px;
    letter-spacing: .22em;
    color: var(--amber);
    border-left: 2px solid var(--amber);
    padding-left: 8px;
}

.auth-version {
    font-family: var(--font-display);
    font-size: 8.5px;
    letter-spacing: .16em;
    color: #5F707C;
    border: 1px solid rgba(154, 177, 193, .16);
    padding: 1px 6px;
    border-radius: 2px;
}

.auth-card h2 {
    font-size: 25px;
    font-weight: 600;
    letter-spacing: .03em;
    color: #F0F4F7;
}

.auth-sub {
    font-size: 11.5px;
    color: #7C8D99;
    margin-top: 5px;
    margin-bottom: 24px;
    line-height: 1.7;
}

.auth-field { display: block; margin-bottom: 15px; }
.auth-field > span {
    display: block;
    font-size: 10.5px;
    color: #93A4B0;
    letter-spacing: .05em;
    margin-bottom: 6px;
}

.auth-input {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 43px;
    padding: 0 12px;
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(154, 177, 193, .18);
    border-radius: 3px;
    transition: all .2s;
}
.auth-input:focus-within {
    border-color: rgba(223, 169, 107, .55);
    background: rgba(223, 169, 107, .045);
    box-shadow: 0 0 0 3px rgba(223, 169, 107, .07);
}
.auth-input [data-lucide] { width: 15px; height: 15px; color: #6C7E8B; flex: none; }
.auth-input input {
    flex: 1;
    min-width: 0;
    background: none;
    border: 0;
    outline: none;
    font-size: 12.5px;
    color: #E9F0F5;
    height: 100%;
}
.auth-input input::placeholder { color: #566772; }

.pwd-toggle {
    background: none;
    border: 0;
    padding: 0;
    color: #6C7E8B;
    display: grid;
    place-items: center;
    transition: color .18s;
}
.pwd-toggle:hover { color: var(--amber); }
.pwd-toggle [data-lucide] { width: 15px; height: 15px; }

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0 17px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 10.5px;
    color: #8B9CA8;
    cursor: pointer;
    user-select: none;
}
.auth-check input { display: none; }
.auth-check span {
    width: 13px;
    height: 13px;
    border: 1px solid rgba(154, 177, 193, .32);
    border-radius: 2px;
    display: grid;
    place-items: center;
    transition: all .16s;
}
.auth-check input:checked + span {
    background: var(--amber);
    border-color: var(--amber);
}
.auth-check input:checked + span::after {
    content: "";
    width: 6px;
    height: 3px;
    border-left: 1.4px solid #16100A;
    border-bottom: 1.4px solid #16100A;
    transform: rotate(-45deg) translateY(-1px);
}

.auth-hint { font-family: var(--font-display); font-size: 8.5px; letter-spacing: .14em; color: #566772; }

.auth-check.agree { margin: 4px 0 16px; line-height: 1.6; align-items: flex-start; }
.auth-check.agree span { margin-top: 2px; }

.auth-error {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(228, 121, 121, .3);
    background: rgba(228, 121, 121, .08);
    color: #EDA2A2;
    padding: 8px 10px;
    border-radius: 3px;
    font-size: 11px;
    margin-bottom: 12px;
}

.auth-submit {
    width: 100%;
    height: 44px;
    border: 1px solid rgba(245, 214, 166, .4);
    border-radius: 3px;
    background: linear-gradient(135deg, #E9BA80, #C08B4E);
    color: #17110A;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    position: relative;
    overflow: hidden;
    transition: all .2s;
    box-shadow: 0 10px 30px rgba(192, 139, 78, .22);
}
.auth-submit::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent);
    transform: skewX(-20deg);
    transition: left .6s;
}
.auth-submit:hover::before { left: 120%; }
.auth-submit:hover { background: linear-gradient(135deg, #F2C991, #CE9A5C); box-shadow: 0 12px 36px rgba(192, 139, 78, .32); }
.auth-submit [data-lucide] { width: 15px; height: 15px; stroke-width: 2; }
.auth-submit.loading { opacity: .75; pointer-events: none; }
.auth-submit.loading span::after { content: "…"; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 12px;
    color: #566772;
    font-size: 9.5px;
    letter-spacing: .16em;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: rgba(154, 177, 193, .12); }

.auth-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    border: 1px solid rgba(154, 177, 193, .18);
    border-radius: 3px;
    font-size: 11.5px;
    color: #A7B7C3;
    transition: all .18s;
}
.auth-secondary:hover { border-color: rgba(223, 169, 107, .4); color: var(--amber-2); background: rgba(223, 169, 107, .05); }
.auth-secondary [data-lucide] { width: 14px; height: 14px; }

.auth-foot {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 22px;
    padding-top: 15px;
    border-top: 1px solid rgba(154, 177, 193, .1);
    font-size: 9.5px;
    color: #5E6E7A;
    line-height: 1.6;
}
.auth-foot [data-lucide] { width: 12px; height: 12px; color: #6E7F8B; flex: none; }
.auth-foot a { color: var(--amber); margin-left: 2px; }

.auth-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }

@keyframes authFade {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(18px) scale(.99); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 1180px) {
    .auth-page { grid-template-columns: minmax(0, 1fr) minmax(420px, .85fr); }
    .visual-copy h1 { font-size: 42px; }
}

@media (max-width: 980px) {
    .auth-page { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .auth-panel { min-height: 100vh; padding: 30px 20px; }
    .auth-panel::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
            radial-gradient(700px 450px at 20% 0, rgba(223, 169, 107, .08), transparent 60%),
            radial-gradient(500px 400px at 100% 100%, rgba(104, 195, 204, .06), transparent 60%);
    }
    .auth-card { max-width: 440px; }
}

@media (max-width: 520px) {
    .auth-card { padding: 26px 20px 22px; }
    .auth-card.register { padding: 24px 18px; }
    .auth-grid-2 { grid-template-columns: 1fr; }
    .auth-card h2 { font-size: 22px; }
}
