/* ===== 登录 / 注册 · 工业流转视觉 ===== */
:root {
    --auth-bg: #060d16;
    --auth-panel: rgba(17, 28, 43, .82);
    --auth-line: rgba(151, 178, 210, .16);
    --auth-text: #e9f1fa;
    --auth-muted: #8ba0b8;
    --auth-teal: #2de1c2;
    --auth-blue: #2f7cff;
    --auth-amber: #f5b23c;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body.auth-body {
    margin: 0;
    background: var(--auth-bg);
    color: var(--auth-text);
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(440px, .95fr);
    min-height: 100vh;
    position: relative;
}
.auth-shell::after {
    content: "";
    position: fixed; inset: 0;
    background: radial-gradient(900px 500px at 12% 10%, rgba(45, 225, 194, .10), transparent 60%),
                radial-gradient(800px 500px at 85% 90%, rgba(47, 124, 255, .12), transparent 60%);
    pointer-events: none;
}

/* 左侧视觉 */
.auth-visual {
    position: relative;
    padding: 44px 56px 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, .05);
}
.grid-layer {
    position: absolute; inset: -10%;
    background-image: linear-gradient(rgba(120, 170, 220, .055) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(120, 170, 220, .055) 1px, transparent 1px);
    background-size: 46px 46px;
    transform: perspective(800px) rotateX(18deg);
    mask-image: radial-gradient(ellipse at 45% 45%, #000 30%, transparent 78%);
    pointer-events: none;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}
.orb-a {
    width: 520px; height: 520px;
    right: -180px; top: -140px;
    background: radial-gradient(circle at 35% 35%, rgba(45, 225, 194, .24), rgba(45, 225, 194, .02) 65%, transparent 70%);
    animation: orbFloat 12s ease-in-out infinite;
}
.orb-b {
    width: 420px; height: 420px;
    left: -150px; bottom: -120px;
    background: radial-gradient(circle at 60% 40%, rgba(47, 124, 255, .28), rgba(47, 124, 255, .03) 65%, transparent 70%);
    animation: orbFloat 15s ease-in-out infinite reverse;
}
@keyframes orbFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-18px, 26px, 0) scale(1.04); }
}
.auth-brand {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: 13px;
}
.auth-brand strong { display: block; font-size: 18px; letter-spacing: .5px; }
.auth-brand span { display: block; margin-top: 3px; font-size: 10px; letter-spacing: 2.4px; color: #6f88a3; }

.auth-hero {
    position: relative; z-index: 2;
    max-width: 620px;
    animation: fadeUp .8s .1s both;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px;
    border: 1px solid rgba(45, 225, 194, .28);
    border-radius: 100px;
    background: rgba(45, 225, 194, .07);
    color: #7ff0da;
    font-size: 12px; letter-spacing: .6px;
}
.auth-hero h1 {
    margin: 24px 0 18px;
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1.16;
    font-weight: 700;
    letter-spacing: -1px;
}
.auth-hero h1 em {
    font-style: normal;
    background: linear-gradient(100deg, #5cf3d8, #59b6ff 58%, #a6c8ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.auth-hero > p {
    max-width: 540px;
    margin: 0;
    color: #93a9c2;
    font-size: 14.5px;
    line-height: 1.9;
}
.hero-flow {
    display: flex; align-items: center; gap: 10px;
    margin: 34px 0 30px;
    flex-wrap: wrap;
}
.flow-node {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid rgba(151, 178, 210, .16);
    background: linear-gradient(180deg, rgba(28, 44, 64, .82), rgba(17, 28, 43, .62));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
    font-size: 12.5px; color: #c8d8e9;
}
.flow-node i { color: var(--auth-teal); font-size: 16px; }
.flow-arrow { color: #3d5872; font-size: 15px; }
.hero-stats {
    display: flex; gap: 48px;
    padding-top: 26px;
    border-top: 1px dashed rgba(151, 178, 210, .18);
}
.hero-stats div strong {
    display: block;
    font-size: 30px;
    font-family: "Bahnschrift", "DIN Alternate", "Consolas", sans-serif;
    letter-spacing: 1px;
    background: linear-gradient(180deg, #fff, #9fc4e5);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stats div span { font-size: 11.5px; color: #6f88a3; letter-spacing: .8px; }

.register-steps { margin-top: 34px; display: grid; gap: 14px; max-width: 480px; }
.rstep {
    display: flex; gap: 15px; align-items: center;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(151, 178, 210, .12);
    background: rgba(19, 32, 48, .5);
}
.rstep > span {
    font-family: "Bahnschrift", "Consolas", sans-serif;
    font-size: 18px; color: var(--auth-amber);
    letter-spacing: 1px;
}
.rstep strong { display: block; font-size: 13.5px; font-weight: 600; }
.rstep small { display: block; margin-top: 4px; color: #7d93aa; font-size: 11.5px; }
.hero-quote {
    margin-top: 32px; display: flex; gap: 12px;
    color: #7790a9; font-size: 12.5px; line-height: 1.8;
}
.hero-quote i { color: var(--auth-teal); font-size: 20px; opacity: .8; }

.auth-visual-foot {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: 22px;
    font-size: 11.5px; color: #5f778f;
}
.auth-visual-foot i { color: #4ba99a; margin-right: 5px; }
.auth-visual-foot .copy { margin-left: auto; }

/* 右侧表单 */
.auth-panel {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    padding: 42px 40px;
    background: linear-gradient(180deg, rgba(8, 16, 26, .55), rgba(6, 13, 22, .2));
}
.auth-card {
    width: 100%; max-width: 432px;
    padding: 40px 38px 28px;
    border-radius: 22px;
    border: 1px solid rgba(151, 178, 210, .14);
    background: var(--auth-panel);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 40px 90px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
    position: relative;
    animation: fadeUp .7s both;
}
.auth-card::before {
    content: "";
    position: absolute; top: 0; left: 38px; right: 38px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(45, 225, 194, .8), transparent);
}
.auth-card-register { max-width: 500px; padding-top: 34px; }
.auth-card-head .eyebrow {
    font-size: 10px; letter-spacing: 3px; color: #52708c;
}
.auth-card-head h2 { margin: 10px 0 8px; font-size: 26px; letter-spacing: -.4px; }
.auth-card-head p { margin: 0 0 26px; color: #7e95ad; font-size: 12.5px; line-height: 1.7; }

.field { margin-bottom: 17px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label {
    display: block; margin-bottom: 8px;
    font-size: 12px; color: #9db2c8; letter-spacing: .4px;
}
.input-wrap {
    display: flex; align-items: center;
    height: 46px;
    padding: 0 13px;
    border-radius: 11px;
    border: 1px solid rgba(151, 178, 210, .18);
    background: rgba(8, 17, 28, .68);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.input-wrap:focus-within {
    border-color: rgba(45, 225, 194, .65);
    box-shadow: 0 0 0 3px rgba(45, 225, 194, .10);
    background: rgba(10, 23, 37, .9);
}
.input-wrap > i { color: #5b7590; font-size: 17px; margin-right: 10px; }
.input-wrap input, .input-wrap select {
    flex: 1; min-width: 0;
    height: 100%;
    border: 0; outline: 0; background: transparent;
    color: var(--auth-text);
    font-size: 13.5px;
    font-family: inherit;
}
.input-wrap input::placeholder { color: #4d6680; }
.input-wrap select { appearance: none; cursor: pointer; }
.input-wrap select option { background: #101c2a; color: #dce8f5; }
.select-wrap { position: relative; }
.select-arrow { margin-right: 0 !important; margin-left: 6px; font-size: 15px !important; }
.eye-btn {
    border: 0; background: transparent; color: #5b7590;
    cursor: pointer; padding: 4px; font-size: 16px; line-height: 1;
}
.eye-btn:hover { color: var(--auth-teal); }

.auth-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 18px; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: #8ea4bb; cursor: pointer; }
.check input { accent-color: #2de1c2; width: 14px; height: 14px; }
.agree { margin: 6px 0 18px; line-height: 1.5; }
.auth-hint { font-size: 11.5px; color: #587088; }

.auth-alert {
    display: none;
    align-items: flex-start; gap: 8px;
    margin-bottom: 16px; padding: 10px 12px;
    border-radius: 10px;
    background: rgba(239, 68, 68, .1);
    border: 1px solid rgba(239, 68, 68, .28);
    color: #fca5a5; font-size: 12px; line-height: 1.5;
}
.auth-alert.is-show { display: flex; animation: fadeUp .25s both; }
.auth-alert.is-ok { background: rgba(45, 225, 194, .1); border-color: rgba(45, 225, 194, .3); color: #7ff0da; }
.auth-alert i { font-size: 15px; margin-top: 1px; }

.auth-submit {
    width: 100%; height: 48px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    border: 0; border-radius: 12px;
    background: linear-gradient(100deg, #1fbfa8, #2f7cff);
    color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(47, 124, 255, .25), inset 0 1px 0 rgba(255, 255, 255, .22);
    transition: transform .18s, box-shadow .18s, filter .18s;
    position: relative; overflow: hidden;
}
.auth-submit:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 18px 38px rgba(47, 124, 255, .32); }
.auth-submit:active { transform: translateY(0); }
.auth-submit i { font-size: 17px; transition: transform .2s; }
.auth-submit:hover i { transform: translateX(3px); }
.auth-submit.is-loading { pointer-events: none; opacity: .82; }
.auth-submit.is-loading::after {
    content: ""; width: 15px; height: 15px;
    margin-left: 6px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.auth-switch { margin-top: 20px; text-align: center; font-size: 12.5px; color: #7e95ad; }
.auth-switch a { color: var(--auth-teal); text-decoration: none; margin-left: 4px; }
.auth-switch a:hover { text-decoration: underline; }
.auth-meta {
    display: flex; justify-content: space-between;
    margin-top: 24px; padding-top: 16px;
    border-top: 1px solid rgba(151, 178, 210, .1);
    font-size: 10.5px; color: #4e657c;
}
.auth-secure {
    margin-top: 14px; text-align: center;
    font-size: 10.5px; color: #476076; letter-spacing: .4px;
}
.auth-secure i { margin-right: 5px; color: #4a8f86; }

.shake { animation: shake .4s; }
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-7px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(3px); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1080px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .auth-panel { min-height: 100vh; padding: 26px 20px; }
    .auth-card { max-width: 460px; padding: 30px 24px 22px; }
    .field-grid { grid-template-columns: 1fr; gap: 0; }
}
