:root {
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
    color: #17233b;
    background: #edf3fb;
    font-synthesis: none;
    --auth-blue: #1769ff;
    --auth-cyan: #42d9ff;
    --auth-navy: #07152d;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
button, input { font: inherit; }
.auth-page { min-height: 100vh; background: #edf3fb; -webkit-font-smoothing: antialiased; }

.auth-shell {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(600px, 1.12fr) minmax(470px, .88fr);
    overflow: hidden;
    background: #fff;
}

.auth-intro {
    --pointer-x: 0;
    --pointer-y: 0;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 38px clamp(42px, 5vw, 82px) 30px;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 74% 22%, rgba(34, 125, 255, .26), transparent 32%),
        radial-gradient(circle at 20% 78%, rgba(22, 207, 218, .12), transparent 28%),
        linear-gradient(142deg, #07152d 0%, #0a1e3d 55%, #0b2850 100%);
}

.auth-intro::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0;
    opacity: .38;
    background-image:
        linear-gradient(rgba(124, 167, 224, .09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 167, 224, .08) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(100deg, transparent 2%, #000 46%, #000 100%);
    animation: authGridDrift 18s linear infinite;
}

.auth-intro::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 620px;
    height: 620px;
    right: -250px;
    top: -260px;
    border: 1px solid rgba(93, 167, 255, .18);
    border-radius: 50%;
    box-shadow: 0 0 0 88px rgba(56, 133, 255, .035), 0 0 0 180px rgba(56, 133, 255, .022);
}

.auth-atmosphere, .auth-form-atmosphere { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.auth-orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.auth-orb-a { width: 380px; height: 380px; right: -120px; top: 13%; background: rgba(31, 117, 255, .13); animation: authOrbA 12s ease-in-out infinite; }
.auth-orb-b { width: 300px; height: 300px; left: -160px; bottom: -90px; background: rgba(54, 221, 255, .08); animation: authOrbB 15s ease-in-out infinite; }
.auth-beam { position: absolute; width: 760px; height: 1px; right: -200px; background: linear-gradient(90deg, transparent, rgba(94, 193, 255, .58), transparent); transform-origin: right center; opacity: .42; }
.auth-beam-a { top: 30%; transform: rotate(-22deg); animation: authBeamA 7s ease-in-out infinite; }
.auth-beam-b { top: 61%; transform: rotate(14deg); animation: authBeamB 8.5s ease-in-out infinite reverse; }
.auth-grid { position: absolute; right: -160px; bottom: -140px; width: 760px; height: 420px; opacity: .22; transform: perspective(680px) rotateX(68deg) rotateZ(-9deg); background-image: linear-gradient(rgba(78, 160, 255, .32) 1px, transparent 1px), linear-gradient(90deg, rgba(78, 160, 255, .32) 1px, transparent 1px); background-size: 42px 42px; animation: authFloor 10s linear infinite; }

.auth-orbit { position: absolute; width: 410px; height: 410px; right: -100px; top: 20%; border: 1px solid rgba(102, 177, 255, .17); border-radius: 50%; animation: authOrbitRotate 28s linear infinite; }
.auth-orbit::before, .auth-orbit::after { content: ""; position: absolute; border: 1px solid rgba(74, 156, 255, .13); border-radius: 50%; }
.auth-orbit::before { inset: 48px; }
.auth-orbit::after { inset: 105px; }
.auth-orbit > i { position: absolute; width: 7px; height: 7px; border: 2px solid #68dfff; border-radius: 50%; background: #0b2142; box-shadow: 0 0 18px rgba(73, 220, 255, .85); }
.auth-orbit > i:nth-child(1) { left: 47px; top: 93px; }
.auth-orbit > i:nth-child(2) { right: 42px; top: 158px; }
.auth-orbit > i:nth-child(3) { left: 152px; bottom: 2px; }
.auth-orbit > b { position: absolute; inset: 158px; border-radius: 50%; background: #2c85ff; box-shadow: 0 0 0 8px rgba(44, 133, 255, .08), 0 0 30px rgba(44, 133, 255, .7); }

.auth-stream { position: absolute; inset: 0; }
.auth-stream i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #7ee5ff; box-shadow: 0 0 10px #4ad9ff; animation: authPacket 7s linear infinite; opacity: 0; }
.auth-stream i:nth-child(1) { top: 16%; left: 8%; animation-delay: 0s; }
.auth-stream i:nth-child(2) { top: 28%; left: 23%; animation-delay: 1.6s; }
.auth-stream i:nth-child(3) { top: 55%; left: 13%; animation-delay: 3.2s; }
.auth-stream i:nth-child(4) { top: 72%; left: 37%; animation-delay: 4.7s; }
.auth-stream i:nth-child(5) { top: 42%; left: 52%; animation-delay: 5.8s; }

.auth-brand {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    color: #fff;
    text-decoration: none;
}

.auth-brand > span, .mobile-brand > span {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(145deg, #2780ff, #0b58df);
    box-shadow: 0 9px 24px rgba(8, 91, 232, .38), inset 0 1px rgba(255, 255, 255, .22);
    font-size: 18px;
}

.auth-brand strong, .auth-brand small { display: block; }
.auth-brand strong { font-size: 15px; letter-spacing: .2px; }
.auth-brand small { margin-top: 5px; color: #8297b7; font-size: 10px; letter-spacing: .6px; }

.intro-main {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 214px;
    align-items: center;
    gap: 28px;
    margin: auto 0 38px;
}

.intro-copy { max-width: 570px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #6ca9ff; font-size: 11px; font-weight: 700; letter-spacing: 1.8px; }
.eyebrow i { width: 17px; height: 1px; background: #4ddcff; box-shadow: 0 0 8px #4ddcff; }
.intro-copy h1 { margin: 20px 0 18px; font-size: clamp(40px, 4vw, 61px); line-height: 1.16; letter-spacing: -2.2px; }
.intro-copy h1 em { color: #fff; font-style: normal; background: linear-gradient(100deg, #fff 12%, #73dfff 48%, #77a9ff 82%); background-size: 180% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: authTitleGlow 7s ease-in-out infinite; }
.intro-copy p { max-width: 520px; margin: 0; color: #a2b4ce; font-size: 14px; line-height: 1.9; }

.auth-live-card {
    position: relative;
    width: 214px;
    padding: 17px;
    border: 1px solid rgba(132, 184, 255, .2);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(25, 55, 98, .82), rgba(12, 34, 67, .7));
    box-shadow: 0 22px 50px rgba(0, 9, 28, .22), inset 0 1px rgba(255, 255, 255, .05);
    backdrop-filter: blur(12px);
    transform: translate3d(calc(var(--pointer-x) * -5px), calc(var(--pointer-y) * -5px), 0);
    animation: authCardFloat 6s ease-in-out infinite;
    will-change: transform;
}
.auth-live-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.auth-live-card header span { display: flex; align-items: center; gap: 6px; color: #72e4c0; font-size: 8px; font-weight: 700; letter-spacing: .8px; }
.auth-live-card header span i { width: 6px; height: 6px; border-radius: 50%; background: #39d4a3; box-shadow: 0 0 0 0 rgba(57, 212, 163, .4); animation: authStatusPulse 2.2s infinite; }
.auth-live-card header b { color: #b8c8de; font-size: 9px; }
.auth-live-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.auth-live-metrics article { padding: 10px; border: 1px solid rgba(146, 184, 230, .11); border-radius: 8px; background: rgba(255, 255, 255, .035); }
.auth-live-metrics small, .auth-live-metrics strong { display: block; }
.auth-live-metrics small { color: #7189aa; font-size: 8px; }
.auth-live-metrics strong { margin-top: 5px; color: #f5f9ff; font-size: 12px; }
.auth-pulse-chart { height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 4px; margin: 15px 0 13px; padding: 0 2px; border-bottom: 1px solid rgba(126, 166, 219, .12); }
.auth-pulse-chart i { width: 3px; height: 20%; border-radius: 3px 3px 0 0; background: linear-gradient(#58dfff, #2479ff); transform-origin: bottom; animation: authChart 1.8s ease-in-out infinite; }
.auth-pulse-chart i:nth-child(2) { animation-delay: -.3s; }.auth-pulse-chart i:nth-child(3) { animation-delay: -.7s; }.auth-pulse-chart i:nth-child(4) { animation-delay: -1.1s; }.auth-pulse-chart i:nth-child(5) { animation-delay: -.5s; }.auth-pulse-chart i:nth-child(6) { animation-delay: -1.4s; }.auth-pulse-chart i:nth-child(7) { animation-delay: -.9s; }.auth-pulse-chart i:nth-child(8) { animation-delay: -.2s; }.auth-pulse-chart i:nth-child(9) { animation-delay: -1.25s; }
.auth-live-card footer { display: flex; align-items: center; justify-content: space-between; color: #738aaa; font-size: 8px; }
.auth-live-card footer i { color: #55c9ff; animation: authSpin 5s linear infinite; }

.intro-points { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.intro-points article { position: relative; min-height: 106px; display: grid; grid-template-columns: 31px 1fr; align-items: start; gap: 10px; padding: 15px; overflow: hidden; border: 1px solid rgba(132, 160, 201, .16); border-radius: 10px; background: rgba(20, 43, 78, .72); backdrop-filter: blur(8px); transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.intro-points article::after { content: ""; position: absolute; width: 80px; height: 80px; right: -45px; bottom: -55px; border-radius: 50%; background: rgba(57, 144, 255, .12); transition: transform .3s ease; }
.intro-points article:hover { transform: translateY(-3px); border-color: rgba(95, 164, 255, .3); background: rgba(23, 50, 90, .88); }
.intro-points article:hover::after { transform: scale(1.5); }
.intro-points article > i { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; color: #73b5ff; background: rgba(51, 128, 235, .12); font-size: 14px; }
.intro-points strong, .intro-points span { display: block; }
.intro-points strong { margin-top: 1px; font-size: 12px; }
.intro-points span { margin-top: 6px; color: #879bb9; font-size: 10px; line-height: 1.55; }
.intro-foot { position: relative; z-index: 2; display: flex; align-items: center; gap: 7px; margin-top: 22px; color: #7185a4; font-size: 10px; }

.auth-form-panel {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 58px clamp(38px, 6vw, 96px);
    overflow: hidden;
    background: linear-gradient(145deg, #f8fbff 0%, #fff 54%, #f5f9ff 100%);
}
.auth-form-panel::before { content: ""; position: absolute; width: 520px; height: 520px; right: -260px; top: -280px; border: 1px solid rgba(27, 105, 242, .07); border-radius: 50%; box-shadow: 0 0 0 80px rgba(27, 105, 242, .02), 0 0 0 160px rgba(27, 105, 242, .012); }
.auth-form-atmosphere i { position: absolute; border-radius: 50%; filter: blur(1px); animation: authFormOrb 12s ease-in-out infinite; }
.auth-form-atmosphere i:nth-child(1) { width: 220px; height: 220px; right: 4%; top: 8%; background: rgba(38, 126, 255, .055); }
.auth-form-atmosphere i:nth-child(2) { width: 150px; height: 150px; left: 8%; bottom: 7%; background: rgba(66, 217, 255, .05); animation-delay: -4s; }
.auth-form-atmosphere i:nth-child(3) { width: 5px; height: 5px; left: 18%; top: 20%; background: #4aa3ff; box-shadow: 105px 52px #a7ccff, 280px -34px #d0e3ff, 360px 180px #87c7ff, 45px 390px #d6e7ff; animation: authTinyPulse 4s ease-in-out infinite; }

.auth-form-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 470px;
    padding: 42px 42px 34px;
    border: 1px solid rgba(216, 226, 240, .92);
    border-radius: 18px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 28px 70px rgba(35, 66, 108, .1), 0 3px 12px rgba(35, 66, 108, .035), inset 0 1px #fff;
    backdrop-filter: blur(18px);
    animation: authFormEnter .72s cubic-bezier(.2, .8, .2, 1) both;
}
.auth-form-wrap::before { content: ""; position: absolute; height: 2px; top: -1px; right: 64px; left: 64px; border-radius: 2px; background: linear-gradient(90deg, transparent, #3a92ff, #56dfff, transparent); opacity: .72; }
.mobile-brand { display: none; }
.auth-kicker { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-kicker > span { color: var(--auth-blue); font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.auth-kicker > small { display: flex; align-items: center; gap: 6px; color: #6f849f; font-size: 10px; }
.auth-kicker > small i { width: 6px; height: 6px; border-radius: 50%; background: #28b788; box-shadow: 0 0 0 4px rgba(40, 183, 136, .1); }
.auth-form-wrap h2 { margin: 15px 0 8px; color: #12203a; font-size: 33px; letter-spacing: -1px; }
.auth-form-wrap header p { margin: 0; color: #8492a7; font-size: 12px; line-height: 1.6; }
.auth-alert { display: flex; align-items: flex-start; gap: 9px; margin-top: 22px; padding: 12px 14px; border: 1px solid #ffd3d8; border-radius: 9px; color: #c84351; background: #fff3f4; font-size: 11px; line-height: 1.55; animation: authAlertIn .28s ease-out both; }
.auth-alert i { margin-top: 2px; }

.auth-form { display: grid; gap: 19px; margin-top: 31px; }
.auth-form label > span { display: block; margin-bottom: 8px; color: #43526a; font-size: 11px; font-weight: 600; }
.auth-input { height: 50px; display: flex; align-items: center; padding: 0 14px; border: 1px solid #d9e2ee; border-radius: 9px; color: #8e9caf; background: rgba(255, 255, 255, .92); box-shadow: inset 0 1px 2px rgba(30, 57, 92, .025); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.auth-input:hover { border-color: #c4d2e5; }
.auth-input:focus-within { border-color: #75a8ff; box-shadow: 0 0 0 4px rgba(23, 105, 255, .085), 0 8px 24px rgba(35, 100, 206, .06); transform: translateY(-1px); }
.auth-input > i { font-size: 15px; transition: color .18s ease; }
.auth-input:focus-within > i { color: var(--auth-blue); }
.auth-input input { min-width: 0; flex: 1; height: 100%; padding: 0 11px; border: 0; outline: 0; color: #24344e; background: transparent; font-size: 13px; }
.auth-input input::placeholder { color: #adb7c4; }
.auth-input button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 7px; color: #8897aa; background: transparent; cursor: pointer; transition: color .18s ease, background .18s ease; }
.auth-input button:hover { color: var(--auth-blue); background: #f0f5ff; }

.auth-submit { position: relative; height: 50px; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 3px; overflow: hidden; border: 0; border-radius: 9px; color: #fff; background: linear-gradient(100deg, #0e5be9, #1e78ff 60%, #1689f3); box-shadow: 0 12px 26px rgba(23, 105, 255, .25), inset 0 1px rgba(255, 255, 255, .2); cursor: pointer; font-size: 13px; font-weight: 700; letter-spacing: .2px; transition: transform .18s ease, box-shadow .18s ease; }
.auth-submit::before { content: ""; position: absolute; top: -40%; bottom: -40%; left: -28%; width: 20%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .44), transparent); transform: skewX(-18deg); animation: authButtonShine 4.6s ease-in-out infinite; }
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(23, 105, 255, .31), inset 0 1px rgba(255, 255, 255, .2); }
.auth-submit:active { transform: translateY(0); }
.auth-submit i { transition: transform .2s ease; }
.auth-submit:hover i { transform: translateX(3px); }
.auth-submit.is-submitting { transform: none; opacity: .8; }
.auth-submit.is-submitting i { transform: none; }
.auth-submit:focus-visible, .auth-input button:focus-visible { outline: 3px solid rgba(23, 105, 255, .22); outline-offset: 2px; }

.auth-security-meta { display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: 16px; color: #8090a6; font-size: 10px; }
.auth-security-meta span { display: inline-flex; align-items: center; gap: 6px; }
.auth-security-meta i { color: #5190ea; }
.auth-help { display: flex; align-items: flex-start; gap: 8px; margin-top: 23px; padding-top: 19px; border-top: 1px solid #e9eef5; color: #8b98ab; font-size: 10px; line-height: 1.65; }
.auth-help i { margin-top: 2px; color: #7c9fcc; }
.auth-shell > footer { position: absolute; z-index: 3; right: clamp(38px, 6vw, 96px); bottom: 23px; color: #a9b4c2; font-size: 9px; }

@keyframes authGridDrift { to { background-position: 72px 72px; } }
@keyframes authFloor { to { background-position: 0 42px, 42px 0; } }
@keyframes authOrbA { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-42px, 28px, 0) scale(1.08); } }
@keyframes authOrbB { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(52px, -24px, 0); } }
@keyframes authBeamA { 0%, 100% { opacity: .18; transform: rotate(-22deg) translateX(4%); } 50% { opacity: .56; transform: rotate(-22deg) translateX(-8%); } }
@keyframes authBeamB { 0%, 100% { opacity: .18; transform: rotate(14deg) translateX(4%); } 50% { opacity: .56; transform: rotate(14deg) translateX(-8%); } }
@keyframes authOrbitRotate { to { transform: rotate(360deg); } }
@keyframes authPacket { 0% { opacity: 0; transform: translate3d(0, 90px, 0) scale(.6); } 12% { opacity: .85; } 72% { opacity: .35; } 100% { opacity: 0; transform: translate3d(520px, -170px, 0) scale(1.2); } }
@keyframes authTitleGlow { 0%, 100% { background-position: 0 50%; } 50% { background-position: 100% 50%; } }
@keyframes authCardFloat { 0%, 100% { margin-top: 0; } 50% { margin-top: -8px; } }
@keyframes authStatusPulse { 0% { box-shadow: 0 0 0 0 rgba(57, 212, 163, .45); } 80%, 100% { box-shadow: 0 0 0 8px rgba(57, 212, 163, 0); } }
@keyframes authChart { 0%, 100% { height: 20%; opacity: .55; } 50% { height: 88%; opacity: 1; } }
@keyframes authSpin { to { transform: rotate(360deg); } }
@keyframes authFormOrb { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-22px, 18px, 0) scale(1.06); } }
@keyframes authTinyPulse { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes authFormEnter { from { opacity: 0; transform: translate3d(24px, 14px, 0) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes authAlertIn { from { opacity: 0; transform: translateY(-5px); } }
@keyframes authButtonShine { 0%, 68% { left: -28%; opacity: 0; } 74% { opacity: 1; } 88%, 100% { left: 115%; opacity: 0; } }

@media (max-width: 1300px) {
    .auth-shell { grid-template-columns: minmax(520px, 1.02fr) minmax(440px, .98fr); }
    .intro-main { grid-template-columns: 1fr; }
    .auth-live-card { position: absolute; width: 190px; right: -22px; top: -84px; opacity: .68; }
    .intro-copy { position: relative; z-index: 1; }
    .intro-copy p { max-width: 430px; }
}

@media (max-width: 1040px) {
    .auth-shell { grid-template-columns: minmax(450px, .95fr) minmax(420px, 1.05fr); }
    .auth-intro { padding-inline: 38px; }
    .auth-live-card { display: none; }
    .intro-copy h1 { font-size: 42px; }
    .intro-points { grid-template-columns: 1fr; gap: 8px; }
    .intro-points article { min-height: auto; }
    .intro-points article:nth-child(3) { display: none; }
}

@media (max-width: 900px) {
    .auth-shell { display: block; min-height: 100vh; }
    .auth-intro { display: none; }
    .auth-form-panel { min-height: 100vh; padding: 40px 24px 78px; }
    .auth-form-wrap { max-width: 480px; }
    .mobile-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 44px; }
    .mobile-brand > span { width: 36px; height: 36px; font-size: 16px; }
    .mobile-brand strong { color: #1e2c43; font-size: 14px; }
    .auth-shell > footer { right: auto; left: 50%; bottom: 21px; transform: translateX(-50%); white-space: nowrap; }
}

@media (max-width: 540px) {
    .auth-form-panel { place-items: start center; padding: 22px 14px 70px; }
    .auth-form-wrap { padding: 29px 22px 25px; border-radius: 15px; }
    .mobile-brand { margin-bottom: 36px; }
    .auth-form-wrap h2 { font-size: 28px; }
    .auth-security-meta { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
    .auth-live-card { transform: none; }
}
