:root {
  color-scheme: light;
  --primary: #5046e5;
  --text: #172033;
  --muted: #667085;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: #fff; }
button, input { font: inherit; }
@media (max-width: 850px) {
  input {
    font-size: 16px !important;
  }
}
button { cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.login-page { min-height: 100svh; display: grid; grid-template-columns: minmax(480px, 1.05fr) minmax(450px, .95fr); }
.login-visual { position: relative; overflow: hidden; padding: 44px 9%; color: #fff; background: #111827; }
.login-visual::before { content: ""; position: absolute; width: 520px; height: 520px; top: -220px; left: -160px; border-radius: 50%; background: #4f46e548; filter: blur(20px); }
.login-visual::after { content: ""; position: absolute; width: 460px; height: 460px; right: -220px; bottom: -200px; border-radius: 50%; background: #2563eb2e; filter: blur(10px); }
.visual-content { position: relative; z-index: 1; min-height: calc(100svh - 88px); display: flex; flex-direction: column; }
.brand { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; color: #fff; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg, #7168f6, #4338ca); box-shadow: 0 8px 25px #4f46e54d; }
.brand-mark svg { width: 23px; height: 23px; }
.brand > span:last-child { display: flex; flex-direction: column; }
.brand strong { font-size: 16px; }
.brand small { margin-top: 3px; color: #8e98aa; font-size: 10px; }
.visual-copy { margin-top: auto; padding-top: 58px; }
.visual-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid #ffffff17; border-radius: 20px; color: #c7d2fe; background: #ffffff0a; font-size: 10px; }
.visual-pill i, .network-head i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px #34d39918; }
.visual-copy h1 { margin: 19px 0 15px; font-size: clamp(35px, 4vw, 53px); line-height: 1.13; letter-spacing: -.055em; }
.visual-copy p { max-width: 490px; margin: 0; color: #98a2b3; font-size: 13px; line-height: 1.85; }
.network-card { width: min(490px, 100%); margin-top: 38px; padding: 18px; border: 1px solid #ffffff12; border-radius: 13px; background: #ffffff08; box-shadow: 0 20px 50px #0002; backdrop-filter: blur(10px); }
.network-head { display: flex; align-items: center; justify-content: space-between; color: #d0d5dd; font-size: 10px; }
.network-head span { display: flex; align-items: center; gap: 8px; }
.network-head small { color: #667085; font-size: 9px; }
.network-map { position: relative; height: 112px; margin: 10px 0; }
.node { position: absolute; z-index: 2; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #536078; border-radius: 8px; color: #98a2b3; background: #263043; font-size: 8px; }
.node.central { top: 37px; left: calc(50% - 21px); width: 42px; height: 42px; color: #fff; border-color: #6860ec; background: #5046e5; box-shadow: 0 0 30px #4f46e55c; font-size: 10px; font-weight: 700; }
.n1 { top: 3px; left: 9%; }.n2 { top: 75px; left: 18%; }.n3 { top: 3px; right: 13%; }.n4 { top: 76px; right: 7%; }
.line { position: absolute; z-index: 1; height: 1px; background: linear-gradient(90deg, #536078, #6961eb); transform-origin: left center; }
.l1 { width: 37%; top: 27px; left: 15%; transform: rotate(13deg); }
.l2 { width: 30%; top: 84px; left: 23%; transform: rotate(-12deg); }
.l3 { width: 34%; top: 56px; left: 51%; transform: rotate(-17deg); }
.l4 { width: 37%; top: 61px; left: 51%; transform: rotate(18deg); }
.network-stats { padding-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #ffffff0d; }
.network-stats span { display: flex; flex-direction: column; }
.network-stats span + span { padding-left: 18px; border-left: 1px solid #ffffff0d; }
.network-stats strong { font-size: 15px; }
.network-stats small { margin-top: 3px; color: #667085; font-size: 8px; }
.register-features { width: min(490px, 100%); margin-top: 38px; display: grid; gap: 10px; }
.register-features > div { padding: 13px 15px; display: flex; align-items: center; gap: 13px; border: 1px solid #ffffff10; border-radius: 10px; background: #ffffff08; }
.register-features b { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; color: #c7d2fe; background: #4f46e52e; font-size: 9px; }
.register-features span { display: flex; flex-direction: column; }
.register-features strong { font-size: 10px; }
.register-features small { margin-top: 3px; color: #7f899b; font-size: 8px; }
.visual-footer { margin: auto 0 0; padding-top: 35px; color: #596376; font-size: 9px; }

.login-panel { position: relative; padding: 48px 10%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; }
.login-card { width: min(390px, 100%); }
.login-heading { margin-bottom: 30px; }
.login-heading p { margin: 0 0 9px; color: var(--primary); font-size: 11px; font-weight: 700; }
.login-heading h2 { margin: 0; font-size: 29px; letter-spacing: -.035em; }
.login-heading span { display: block; margin-top: 9px; color: var(--muted); font-size: 12px; }
.login-card > label { display: block; margin-bottom: 17px; }
.login-card > label > span { display: block; margin-bottom: 7px; color: #344054; font-size: 11px; font-weight: 600; }
.input-wrap { height: 45px; padding: 0 12px; display: flex; align-items: center; gap: 9px; border: 1px solid #d9dde5; border-radius: 8px; transition: .15s; }
.input-wrap:focus-within { border-color: #8d86f4; box-shadow: 0 0 0 3px #eef2ff; }
.input-wrap > svg { width: 17px; color: #98a2b3; }
.input-wrap input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 12px; }
.input-wrap input::placeholder { color: #b5bbc5; }
.password-toggle { width: 28px; height: 28px; display: grid; place-items: center; flex: none; border: 0; color: #98a2b3; background: transparent; }
.password-toggle svg { width: 17px; }
.form-options { margin: -2px 0 22px; display: flex; align-items: center; justify-content: space-between; }
.remember { display: flex; align-items: center; gap: 7px; color: #475467; font-size: 10px; }
.remember input { width: 14px; height: 14px; accent-color: var(--primary); }
.text-button { border: 0; color: var(--primary); background: transparent; font-size: 10px; font-weight: 600; }
.login-button { width: 100%; height: 45px; padding: 0 17px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; color: #fff; background: var(--primary); box-shadow: 0 7px 18px #4f46e52f; font-size: 12px; font-weight: 700; transition: .15s; }
.login-button:hover { background: #4338ca; transform: translateY(-1px); }
.login-button:disabled { cursor: wait; opacity: .72; transform: none; }
.login-button b { position: absolute; margin-left: 325px; font-size: 17px; font-weight: 400; }
.auth-switch { margin: 18px 0 0; color: #667085; text-align: center; font-size: 11px; }
.auth-switch a { margin-left: 4px; color: var(--primary); font-weight: 700; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.form-alert { display: none; margin: -14px 0 17px; padding: 10px 12px; border: 1px solid #fecdca; border-radius: 7px; color: #b42318; background: #fef3f2; font-size: 10px; }
.form-alert.show { display: block; }
.login-footer { position: absolute; right: 0; bottom: 25px; left: 0; display: flex; justify-content: center; gap: 8px; color: #b0b6c0; font-size: 9px; }
.login-footer button { border: 0; color: #98a2b3; background: transparent; font-size: 9px; }
.mobile-brand { display: none; }
.toast { position: fixed; right: 22px; bottom: 22px; padding: 11px 15px; border-radius: 8px; color: #fff; background: #172033; box-shadow: 0 10px 30px #10182835; font-size: 11px; opacity: 0; transform: translateY(15px); transition: .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 850px) {
  .login-page { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-panel { min-height: 100svh; padding: 80px 24px; }
  .mobile-brand { position: absolute; top: 27px; left: 26px; display: flex; align-items: center; gap: 10px; color: #344054; }
  .mobile-brand .brand-mark { width: 33px; height: 33px; color: #fff; font-size: 13px; }
  .login-button b { right: calc(50% - 165px); }
}
