/* =========================================================
   铝天幕风压自适应防护系统 · 认证页样式
   佛山市派科纳德建材科技有限公司
   ========================================================= */
:root {
    --ink-950: #070D13;
    --ink-900: #0B1219;
    --ink-800: #101B25;
    --ink-700: #17252F;
    --steel-500: #5D7182;
    --steel-400: #8496A5;
    --wind: #16B8AA;
    --wind-bright: #5FE0D2;
    --wind-deep: #087C75;
    --paper: #FFFFFF;
    --mist: #F2F5F7;
    --line: #E1E8EE;
    --text: #16232D;
    --muted: #6B7C8A;
    --danger: #D64545;
    --shadow-lg: 0 40px 90px -30px rgba(11, 18, 25, .38), 0 18px 36px -22px rgba(11, 18, 25, .22);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --font-num: "Rajdhani", "DIN Alternate", "Bahnschrift", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body.auth-body {
    font-family: var(--font);
    background: var(--mist);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input { font-family: inherit; }

.auth-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(480px, .84fr);
    min-height: 100vh;
}

/* ---------- 左侧视觉区 ---------- */
.auth-visual {
    position: relative;
    background:
        radial-gradient(900px 620px at 78% 8%, rgba(22, 184, 170, .20), transparent 62%),
        radial-gradient(620px 520px at 8% 92%, rgba(47, 127, 209, .12), transparent 60%),
        linear-gradient(155deg, #0C151D 0%, #091017 52%, #060B10 100%);
    color: #EAF3F6;
    padding: 42px 56px 34px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    isolation: isolate;
}
.visual-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(126, 231, 219, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126, 231, 219, .045) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 50% 46%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 46%, #000 20%, transparent 78%);
    z-index: -1;
}
.visual-glow {
    position: absolute;
    width: 760px; height: 760px;
    right: -240px; top: 8%;
    background: radial-gradient(circle, rgba(22, 184, 170, .20), transparent 66%);
    filter: blur(10px);
    animation: glowPulse 9s ease-in-out infinite;
    z-index: -1;
}
@keyframes glowPulse { 0%,100% { opacity: .55; transform: scale(1); } 50% { opacity: .95; transform: scale(1.08); } }

.visual-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; position: relative; z-index: 3; }
.auth-brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
    width: 46px; height: 46px; display: grid; place-items: center;
    color: var(--wind-bright);
    border: 1px solid rgba(95, 224, 210, .28);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(95, 224, 210, .14), rgba(95, 224, 210, .02));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 20px -12px rgba(95, 224, 210, .6);
}
.brand-mark svg { width: 30px; height: 30px; }
.brand-words { display: flex; flex-direction: column; gap: 3px; }
.brand-words strong { font-size: 19px; letter-spacing: 2px; font-weight: 650; }
.brand-words em { font-style: normal; font-size: 9px; letter-spacing: 2.6px; color: rgba(160, 196, 201, .62); }
.version-pill {
    font-size: 9.5px; letter-spacing: 1.6px; color: rgba(159, 203, 205, .65);
    border: 1px solid rgba(126, 231, 219, .18);
    padding: 7px 12px; border-radius: 999px;
    background: rgba(11, 22, 30, .4);
    white-space: nowrap;
}
.canopy-art {
    position: absolute; inset: 6% -4% 16% -2%;
    z-index: 0; opacity: .95;
    mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 86%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 86%, transparent 100%);
}
.canopy-art svg { width: 100%; height: 100%; }
.canopy-blades path { animation: bladeShift 12s ease-in-out infinite; transform-origin: center; }
.canopy-blades path:nth-child(2n) { animation-delay: -1.4s; }
.canopy-blades path:nth-child(3n) { animation-delay: -2.8s; }
@keyframes bladeShift { 0%,100% { transform: translateY(0); opacity: .9; } 50% { transform: translateY(-4px); opacity: 1; } }
.wind-arcs path { stroke-dasharray: 6 10; animation: dashMove 18s linear infinite; }
@keyframes dashMove { to { stroke-dashoffset: -320; } }

.visual-copy { position: relative; z-index: 2; margin-top: auto; margin-bottom: 58px; max-width: 620px; }
.eyebrow { font-size: 10px; letter-spacing: 3.4px; color: var(--wind-bright); opacity: .8; margin-bottom: 22px; }
.visual-copy h1 {
    font-size: clamp(38px, 4vw, 56px);
    line-height: 1.16;
    letter-spacing: .5px;
    font-weight: 620;
    text-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.visual-copy h1 span {
    color: var(--wind-bright);
    position: relative;
    display: inline-block;
}
.visual-copy h1 span::after {
    content: ""; position: absolute; left: 2px; right: 2px; bottom: 3px; height: 8px;
    background: linear-gradient(90deg, rgba(95, 224, 210, .28), rgba(95, 224, 210, 0));
    z-index: -1;
}
.visual-copy p {
    margin-top: 24px;
    max-width: 520px;
    color: rgba(196, 215, 222, .68);
    line-height: 1.95;
    font-size: 13.5px;
}
.visual-stats {
    display: flex; gap: 44px; margin-top: 38px;
    padding-top: 26px; border-top: 1px solid rgba(126, 231, 219, .12);
}
.visual-stats div { display: flex; flex-direction: column; gap: 6px; }
.visual-stats strong { font-family: var(--font-num); font-size: 28px; letter-spacing: 1px; color: #EAFBF8; font-weight: 600; }
.visual-stats span { font-size: 10.5px; letter-spacing: .8px; color: rgba(158, 187, 195, .58); }
.visual-foot {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 10px; letter-spacing: 1.2px;
    color: rgba(138, 168, 178, .48);
    border-top: 1px solid rgba(126, 231, 219, .08);
    padding-top: 18px;
}
.signal { display: inline-flex; align-items: center; gap: 8px; color: rgba(159, 224, 216, .7); }
.signal i { width: 6px; height: 6px; border-radius: 50%; background: var(--wind-bright); box-shadow: 0 0 0 0 rgba(95, 224, 210, .6); animation: signalPulse 2.2s infinite; }
@keyframes signalPulse { 0% { box-shadow: 0 0 0 0 rgba(95,224,210,.45); } 70% { box-shadow: 0 0 0 9px rgba(95,224,210,0); } 100% { box-shadow: 0 0 0 0 rgba(95,224,210,0); } }

.visual-list { list-style: none; margin-top: 28px; display: grid; gap: 13px; }
.visual-list li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: rgba(196, 215, 222, .72); }
.visual-list li svg { width: 15px; height: 15px; color: var(--wind-bright); opacity: .8; }

/* ---------- 右侧表单区 ---------- */
.auth-panel {
    position: relative;
    background:
        radial-gradient(680px 420px at 100% 0%, rgba(22, 184, 170, .09), transparent 60%),
        linear-gradient(180deg, #F7F9FA 0%, #EEF2F5 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 64px 30px;
    overflow-y: auto;
}
.auth-panel::before {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(11,18,25,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(11,18,25,.028) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 75%);
    pointer-events: none;
}
.auth-panel-inner {
    position: relative; z-index: 2;
    width: 100%; max-width: 430px;
    margin: auto;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(225, 232, 238, .9);
    border-radius: 26px;
    padding: 38px 38px 30px;
    box-shadow: var(--shadow-lg), inset 0 1px 0 #fff;
    backdrop-filter: blur(14px);
    animation: cardIn .7s cubic-bezier(.2, .8, .2, 1) both;
}
.auth-panel-inner::before, .auth-panel-inner::after {
    content: ""; position: absolute; z-index: -1; border-radius: 26px;
    background: rgba(255, 255, 255, .55); border: 1px solid rgba(225, 232, 238, .7);
}
.auth-panel-inner::before { inset: 10px -10px -10px 10px; }
.auth-panel-inner::after { inset: 18px -18px -18px 18px; opacity: .45; }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }

.panel-head { margin-bottom: 28px; }
.panel-eyebrow { font-size: 9.5px; letter-spacing: 2.8px; color: var(--wind-deep); opacity: .7; margin-bottom: 10px; }
.panel-head h2 { font-size: 27px; font-weight: 650; letter-spacing: .4px; }
.panel-head p { margin-top: 9px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

.auth-form { display: flex; flex-direction: column; gap: 17px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 11.5px; font-weight: 600; color: #42525F; letter-spacing: .3px; }
.form-field label em { color: var(--danger); font-style: normal; }
.input-wrap {
    display: flex; align-items: center; gap: 10px;
    height: 48px; padding: 0 14px;
    border: 1px solid #DCE5EC; border-radius: 12px;
    background: #FBFCFD;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.input-wrap > svg { width: 16px; height: 16px; color: #8B9AA7; flex: 0 0 auto; }
.input-wrap:focus-within {
    border-color: rgba(22, 184, 170, .65);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(22, 184, 170, .10);
}
.input-wrap:focus-within > svg { color: var(--wind-deep); }
.input-wrap input {
    flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
    font-size: 13.5px; color: var(--text); height: 100%;
}
.input-wrap input::placeholder { color: #A6B3BE; font-size: 12.5px; }
.pwd-toggle { width: 28px; height: 28px; display: grid; place-items: center; color: #8B9AA7; border-radius: 8px; }
.pwd-toggle:hover { background: #EEF4F5; color: var(--wind-deep); }
.pwd-toggle svg { width: 16px; height: 16px; }

.form-row { display: flex; align-items: center; justify-content: space-between; margin-top: -2px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; color: #667785; cursor: pointer; user-select: none; }
.check input { display: none; }
.check span {
    width: 15px; height: 15px; border-radius: 5px; border: 1px solid #C9D6DF; background: #fff;
    display: inline-grid; place-items: center; transition: all .15s;
}
.check input:checked + span { background: var(--wind-deep); border-color: var(--wind-deep); }
.check input:checked + span::after { content: ""; width: 7px; height: 4px; border-left: 1.6px solid #fff; border-bottom: 1.6px solid #fff; transform: rotate(-45deg) translateY(-1px); }
.link-btn { font-size: 11.5px; color: var(--wind-deep); font-weight: 600; }
.link-btn:hover { text-decoration: underline; }

.form-error {
    background: #FFF2F2; border: 1px solid #F6D5D5; color: #B93A3A;
    border-radius: 10px; padding: 10px 12px; font-size: 11.5px; line-height: 1.6;
}
.btn-auth {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    height: 50px; border-radius: 13px;
    background: linear-gradient(120deg, #0C1922 0%, #13303A 58%, #0E514E 100%);
    color: #F2FFFC; font-size: 13.5px; font-weight: 600; letter-spacing: .8px;
    box-shadow: 0 16px 28px -16px rgba(8, 78, 74, .75), inset 0 1px 0 rgba(255, 255, 255, .10);
    transition: transform .18s, box-shadow .18s, filter .18s;
}
.btn-auth::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(95, 224, 210, .24) 48%, transparent 72%);
    transform: translateX(-120%);
    transition: transform .7s;
}
.btn-auth:hover { transform: translateY(-1px); box-shadow: 0 22px 38px -18px rgba(8, 78, 74, .85); }
.btn-auth:hover::after { transform: translateX(120%); }
.btn-auth:active { transform: translateY(0); }
.btn-auth svg { width: 17px; height: 17px; }
.btn-auth.loading { pointer-events: none; filter: saturate(.7); }
.btn-auth.loading span::after {
    content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%;
    vertical-align: -2px; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.security-line {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    color: #93A2AE; font-size: 10.5px; letter-spacing: .3px; margin-top: 2px;
}
.security-line svg { width: 13px; height: 13px; color: #7FB6AF; }
.panel-foot {
    margin-top: 24px; padding-top: 20px; border-top: 1px dashed #E4EBF0;
    display: flex; justify-content: center; gap: 6px; font-size: 11.5px; color: #7C8C99;
}
.panel-foot a { color: var(--wind-deep); font-weight: 650; }
.panel-foot a:hover { text-decoration: underline; }
.panel-copyright {
    position: relative; z-index: 2;
    display: flex; justify-content: space-between; gap: 12px;
    max-width: 430px; margin: 28px auto 0;
    font-size: 9.5px; letter-spacing: .4px; color: #9AA9B4;
}

/* ---------- 注册页 ---------- */
.register-panel .auth-panel-inner { max-width: 520px; padding: 32px 36px 26px; }
.register-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.register-form { gap: 15px; }
.register-row { margin-top: 2px; }
.register-row .check { font-size: 10.5px; }
.register-success { text-align: center; padding: 22px 6px 10px; }
.success-mark {
    width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 20px;
    display: grid; place-items: center;
    color: var(--wind-deep);
    background: linear-gradient(145deg, rgba(22, 184, 170, .14), rgba(22, 184, 170, .04));
    border: 1px solid rgba(22, 184, 170, .25);
}
.success-mark svg { width: 30px; height: 30px; }
.register-success h3 { font-size: 19px; margin-bottom: 10px; }
.register-success p { font-size: 12px; color: var(--muted); line-height: 1.8; margin-bottom: 22px; }
.success-link { max-width: 220px; margin: 0 auto; }

.auth-toast {
    position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 16px);
    background: rgba(12, 25, 34, .94); color: #E9F6F4;
    padding: 12px 20px; border-radius: 12px; font-size: 12px;
    border: 1px solid rgba(95, 224, 210, .25);
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55);
    opacity: 0; pointer-events: none; transition: all .25s; z-index: 90;
}
.auth-toast.show { opacity: 1; transform: translate(-50%, 0); }

.auth-leaving .auth-stage { opacity: 0; transform: scale(.995); transition: opacity .26s, transform .26s; }

@media (max-width: 1180px) {
    .auth-stage { grid-template-columns: minmax(0, 1fr) minmax(430px, .9fr); }
    .auth-visual { padding: 36px 40px 30px; }
    .visual-copy h1 { font-size: 40px; }
    .visual-stats { gap: 28px; }
    .auth-panel { padding: 40px 34px 24px; }
}
@media (max-width: 960px) {
    .auth-stage { grid-template-columns: 1fr; }
    .auth-visual { min-height: 300px; padding: 30px 34px; }
    .canopy-art { inset: -10% -10% 0 34%; opacity: .6; }
    .visual-copy { margin: 42px 0 20px; }
    .visual-copy h1 { font-size: 34px; }
    .visual-copy p { display: none; }
    .visual-stats { display: none; }
    .visual-foot { margin-top: 26px; }
    .auth-panel { padding: 34px 22px 26px; }
    .auth-panel-inner { max-width: 480px; }
}
@media (max-width: 620px) {
    .auth-visual { min-height: 230px; }
    .version-pill { display: none; }
    .visual-copy { margin-top: 32px; }
    .visual-copy h1 { font-size: 27px; }
    .visual-copy .eyebrow { margin-bottom: 14px; }
    .visual-list, .visual-foot { display: none; }
    .auth-panel-inner { padding: 28px 22px 24px; border-radius: 20px; }
    .auth-panel-inner::before, .auth-panel-inner::after { display: none; }
    .register-form .form-grid { grid-template-columns: 1fr; }
    .panel-copyright { flex-direction: column; gap: 4px; text-align: center; }
}
