@font-face {
  font-family: "Smiley";
  src: url("../assets/font-lab/SmileySans-Oblique.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "WenKai";
  src: url("../assets/font-lab/LXGWWenKai-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #EEF1F2;
  --surface: #FAFBFC;
  --ink: #16191D;
  --blue: #2457F5;
  --coral: #FF6B4A;
  --muted: #626A73;
  --faint: #9299A1;
  --line: rgba(22, 25, 29, .14);
  --line-strong: rgba(22, 25, 29, .28);
  --display: "Smiley", sans-serif;
  --body: "WenKai", serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-inout: cubic-bezier(.76, 0, .24, 1);
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-width: 320px; min-height: 100vh; min-height: 100dvh; color: var(--ink); background: var(--bg); font-family: var(--body); font-size: 17px; line-height: 1.75; letter-spacing: .02em; overflow-x: hidden; }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
[hidden] { display: none !important; }
::selection { color: white; background: var(--blue); }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 300; padding: 10px 16px; color: white; background: var(--ink); }
.skip-link:focus { top: 16px; }
.login-grid { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .25; background-image: linear-gradient(rgba(22,25,29,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(22,25,29,.08) 1px, transparent 1px); background-size: 9vw 9vw; mask-image: linear-gradient(90deg, transparent 38%, black 70%); }

.login-topbar { position: fixed; left: 0; right: 0; top: 0; z-index: 20; height: 94px; padding: 0 clamp(24px, 3.3vw, 58px); display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.login-topbar a { pointer-events: auto; }
.login-brand { display: flex; align-items: center; gap: 15px; color: white; text-decoration: none; }
.login-brand > span { font-family: var(--display); font-size: 31px; letter-spacing: .09em; line-height: 1; }
.login-brand small { max-width: 80px; color: rgba(255,255,255,.65); font-size: 10px; line-height: 1.45; letter-spacing: .08em; }
.preview-link { display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: 14px; text-decoration: none; transition: color .25s, transform .35s var(--ease-out); }
.preview-link:hover { color: var(--blue); transform: translateX(4px); }
.preview-link span { font-family: sans-serif; font-size: 19px; }

.login-main { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(430px, .88fr); }
.login-visual { position: relative; min-height: 680px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 125px clamp(35px, 6vw, 108px) 65px; color: white; background: var(--blue); isolation: isolate; clip-path: inset(0 0 0 0); }
.visual-glow { position: absolute; width: 68vw; height: 68vw; left: -30vw; top: -35vw; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.16), transparent 64%); animation: glowBreathe 8s ease-in-out infinite alternate; }
.visual-copy { position: relative; z-index: 4; transform: translate3d(var(--copy-x, 0), var(--copy-y, 0), 0); transition: transform .25s ease-out; }
.visual-kicker, .login-kicker { display: block; font-family: sans-serif; font-size: 10px; letter-spacing: .22em; }
.visual-kicker { color: rgba(255,255,255,.65); }
.visual-title { display: flex; gap: .08em; margin: 28px 0 32px; font-family: var(--display); font-weight: 400; font-size: clamp(142px, 17vw, 285px); line-height: .8; letter-spacing: .06em; }
.visual-title > span { display: block; transform-origin: left bottom; animation: titleArrive 1.15s var(--ease-out) both; }
.visual-title > span:nth-child(2) { color: var(--coral); animation-delay: .13s; }
.visual-intro { margin: 0; max-width: 450px; color: rgba(255,255,255,.86); font-size: clamp(19px, 1.55vw, 25px); line-height: 1.8; letter-spacing: .055em; }
.visual-foot { position: relative; z-index: 4; display: flex; align-items: flex-start; gap: 20px; margin-top: auto; padding-top: 45px; }
.visual-foot > span { color: var(--coral); font-family: var(--display); font-size: 30px; line-height: 1; }
.visual-foot p { margin: 0; color: rgba(255,255,255,.68); font-size: 13px; line-height: 1.65; }

.login-orbit { position: absolute; inset: 11% -15% 4% -13%; z-index: 1; pointer-events: none; transform: translate3d(var(--orbit-x, 0), var(--orbit-y, 0), 0); transition: transform .35s ease-out; }
.login-orbit svg { width: 100%; height: 100%; overflow: visible; }
.orbit-line { fill: none; stroke: rgba(255,255,255,.37); stroke-width: 1.1; vector-effect: non-scaling-stroke; stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: lineDraw 2.1s var(--ease-inout) .25s forwards; }
.orbit-b { stroke: rgba(255,255,255,.18); stroke-dasharray: 6 10; animation: lineDraw 2.1s var(--ease-inout) .4s forwards, dashTravel 24s linear 2.5s infinite; }
.orbit-c { stroke: rgba(255,107,74,.55); animation-delay: .55s; }
.orbit-node { fill: var(--surface); transform-box: fill-box; transform-origin: center; animation: nodePulse 3s ease-in-out infinite alternate; }
.node-coral { fill: var(--coral); animation-delay: -1.3s; }
.orbit-traveller { fill: white; filter: drop-shadow(0 0 8px rgba(255,255,255,.9)); }
.orbit-label { position: absolute; padding: 6px 13px; border: 1px solid rgba(255,255,255,.35); color: rgba(255,255,255,.82); background: rgba(36,87,245,.4); backdrop-filter: blur(8px); font-size: 12px; letter-spacing: .14em; animation: labelFloat 5s ease-in-out infinite alternate; }
.label-update { left: 18%; top: 43%; }
.label-record { right: 17%; bottom: 27%; animation-delay: -2.5s; }

.login-panel { position: relative; min-height: 680px; display: grid; place-items: center; padding: 122px clamp(34px, 5.2vw, 90px) 55px; background: rgba(250,251,252,.8); }
.login-panel-inner { width: min(100%, 460px); }
.login-heading { margin-bottom: 39px; }
.login-kicker { color: var(--blue); }
.login-heading h2 { margin: 16px 0 15px; font-family: var(--display); font-size: clamp(54px, 5.4vw, 86px); font-weight: 400; line-height: 1; letter-spacing: .055em; }
.login-heading h2 span { color: var(--coral); }
.login-heading p { margin: 0; color: var(--muted); font-size: 16px; }
#login-form { display: grid; gap: 5px; }
.form-field { position: relative; }
.form-field label { display: block; margin-bottom: 9px; color: var(--muted); font-size: 13px; letter-spacing: .08em; }
.input-shell { position: relative; display: flex; align-items: center; border-bottom: 1px solid var(--line-strong); transition: border-color .3s, background .3s; }
.input-shell:focus-within { border-color: var(--blue); background: rgba(36,87,245,.025); }
.input-shell input { width: 100%; min-width: 0; height: 58px; padding: 0 4px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 18px; letter-spacing: .04em; }
.input-shell input::placeholder { color: var(--faint); }
.input-shell input:focus-visible { outline: 0; }
.input-mark { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.input-shell:focus-within .input-mark { transform: scaleX(1); }
.form-field.has-error .input-shell { border-color: var(--coral); }
.form-field.has-error .input-mark { background: var(--coral); transform: scaleX(1); }
.password-shell input { padding-right: 62px; }
.password-toggle { position: absolute; right: 0; min-width: 52px; min-height: 44px; border: 0; color: var(--muted); background: transparent; font-size: 13px; }
.password-toggle:hover { color: var(--blue); }
.field-error { min-height: 27px; margin: 4px 0 0; color: #C6452C; font-size: 12px; line-height: 1.5; }
.form-options { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 5px 0 15px; }
.remember-option { display: flex; align-items: center; gap: 9px; min-height: 44px; color: var(--muted); font-size: 13px; cursor: pointer; }
.remember-option input { appearance: none; width: 17px; height: 17px; margin: 0; display: grid; place-items: center; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; }
.remember-option input::after { content: ""; width: 8px; height: 4px; border-left: 1.5px solid white; border-bottom: 1.5px solid white; transform: rotate(-45deg) scale(0); transition: transform .25s var(--ease-out); }
.remember-option input:checked { border-color: var(--blue); background: var(--blue); }
.remember-option input:checked::after { transform: rotate(-45deg) scale(1); }
.fill-preview { min-height: 44px; border: 0; padding: 0; color: var(--blue); background: none; font-size: 13px; }
.fill-preview:hover { text-decoration: underline; text-underline-offset: 4px; }
.form-status { min-height: 0; margin: 0; color: var(--blue); font-size: 13px; }
.form-status:not(:empty) { min-height: 28px; }
.form-status.is-error { color: #C8371C; }
.login-submit { position: relative; width: 100%; min-height: 62px; overflow: hidden; display: flex; align-items: center; justify-content: space-between; border: 0; padding: 15px 22px; color: white; background: var(--ink); font-size: 17px; letter-spacing: .08em; transition: transform .35s var(--ease-out), background .3s, box-shadow .3s; }
.login-submit:hover:not(:disabled) { background: var(--blue); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(36,87,245,.2); }
.login-submit:active:not(:disabled) { transform: scale(.985); }
.login-submit:disabled { cursor: wait; }
.submit-label, .submit-arrow { position: relative; z-index: 2; }
.submit-arrow { font-family: sans-serif; font-size: 24px; transition: transform .4s var(--ease-out); }
.login-submit:hover .submit-arrow { transform: rotate(45deg); }
.submit-progress { position: absolute; inset: 0; background: var(--blue); transform: translateX(-101%); }
.login-submit.is-loading .submit-progress { animation: submitLoad 1.15s var(--ease-inout) infinite; }
.demo-notice { margin: 24px 0 0; padding-left: 14px; border-left: 2px solid var(--coral); color: var(--faint); font-size: 12px; line-height: 1.75; }
.demo-notice strong { display: block; margin-bottom: 2px; color: var(--muted); font-weight: 400; }
.login-footnote { display: flex; justify-content: space-between; margin-top: 42px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--faint); font-size: 10px; letter-spacing: .12em; }

.intro-item { animation: introRise .85s var(--ease-out) backwards; }
.visual-kicker { animation-delay: .15s; }
.visual-intro { animation-delay: .42s; }
.visual-foot { animation-delay: .65s; }
.login-heading { animation-delay: .22s; }
.form-field:nth-child(1) { animation-delay: .35s; }
.form-field:nth-child(2) { animation-delay: .44s; }
.form-options { animation-delay: .53s; }
.login-submit { animation-delay: .62s; }
.demo-notice { animation-delay: .71s; }
.login-footnote { animation-delay: .8s; }

.entry-transition { position: fixed; inset: 0; z-index: 200; overflow: hidden; }
.entry-trail, .entry-main { position: absolute; inset: -12%; transform: translateX(-140%) skewX(-8deg); }
.entry-trail { background: var(--coral); }
.entry-main { display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; background: var(--blue); }
.entry-kicker, .entry-main strong, .entry-main small { position: relative; z-index: 2; opacity: 0; }
.entry-kicker { margin-bottom: 18px; color: rgba(255,255,255,.7); font-family: sans-serif; font-size: 11px; letter-spacing: .3em; }
.entry-main strong { font-family: var(--display); font-size: clamp(110px, 18vw, 270px); font-weight: 400; line-height: .9; letter-spacing: .1em; }
.entry-main small { margin-top: 28px; color: rgba(255,255,255,.8); font-size: 16px; letter-spacing: .18em; }
.entry-line { position: absolute; left: 18%; right: 18%; bottom: 12%; height: 2px; background: rgba(255,255,255,.25); }
.entry-line i { display: block; height: 100%; background: white; transform: scaleX(0); transform-origin: left; }
.entry-rings { position: absolute; inset: 0; }
.entry-rings i { position: absolute; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; animation: ringTurn 12s linear infinite; }
.entry-rings i:nth-child(1) { width: 50vw; height: 50vw; right: -8vw; top: -18vw; }
.entry-rings i:nth-child(2) { width: 28vw; height: 28vw; left: 2vw; bottom: -10vw; animation-direction: reverse; }
.entry-rings i:nth-child(3) { width: 10px; height: 10px; left: 20%; top: 25%; background: var(--coral); border: 0; }
body.is-entering .login-main, body.is-entering .login-topbar { pointer-events: none; }

@keyframes titleArrive { from { opacity: 0; transform: translateY(70%) rotate(7deg); filter: blur(9px); } to { opacity: 1; transform: translateY(0) rotate(0); filter: blur(0); } }
@keyframes introRise { from { opacity: 0; transform: translateY(28px); filter: blur(7px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes lineDraw { to { stroke-dashoffset: 0; } }
@keyframes dashTravel { to { stroke-dashoffset: -260; } }
@keyframes nodePulse { from { transform: scale(.65); opacity: .65; } to { transform: scale(1.4); opacity: 1; } }
@keyframes labelFloat { from { transform: translateY(-6px); } to { transform: translateY(7px); } }
@keyframes glowBreathe { from { transform: scale(.9) translate(-2%, -2%); } to { transform: scale(1.15) translate(4%, 3%); } }
@keyframes submitLoad { 0% { transform: translateX(-101%); } 55%, 100% { transform: translateX(101%); } }
@keyframes ringTurn { to { transform: rotate(360deg); } }

@media (max-width: 1000px) {
  .login-main { grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); }
  .login-visual { padding-left: 42px; padding-right: 35px; }
  .visual-title { font-size: clamp(120px, 17vw, 185px); }
  .visual-intro { font-size: 19px; }
  .login-panel { padding-left: 48px; padding-right: 48px; }
}
@media (max-width: 760px) {
  .login-topbar { position: absolute; height: 76px; padding: 0 20px; }
  .login-brand small { display: none; }
  .preview-link { gap: 8px; color: rgba(255,255,255,.8); font-size: 12px; }
  .login-main { display: block; }
  .login-visual { min-height: 410px; padding: 105px 25px 30px; justify-content: flex-start; }
  .visual-title { margin: 24px 0 22px; font-size: clamp(112px, 36vw, 155px); }
  .visual-intro { font-size: 17px; }
  .visual-foot { display: none; }
  .login-orbit { inset: 5% -32% -10% -25%; }
  .orbit-label { display: none; }
  .login-panel { min-height: 610px; padding: 55px 25px 35px; }
  .login-panel-inner { width: 100%; max-width: 500px; }
  .login-heading h2 { font-size: 62px; }
  .login-heading p { font-size: 15px; }
  .input-shell input { font-size: 17px; }
  .login-footnote { margin-top: 32px; }
  .entry-main strong { font-size: 115px; }
}
@media (max-width: 380px) {
  .preview-link { font-size: 0; }
  .preview-link span { font-size: 22px; }
  .visual-title { font-size: 108px; }
  .login-panel { padding-left: 20px; padding-right: 20px; }
  .form-options { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .orbit-traveller { display: none; }
}
