:root {
  --forest-night: #092a22;
  --forest-deep: #123d31;
  --fern: #497767;
  --mist: #dcebe1;
  --paper: #f6faf7;
  --amber: #d59a5f;
  --ink: #173129;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--paper);
  background: var(--forest-night);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body { min-height: 100dvh; margin: 0; overflow: hidden; background: var(--forest-night); }
button, input { font: inherit; }
button { cursor: pointer; }

.forest-scene { position: fixed; inset: 0; overflow: hidden; background:
  radial-gradient(ellipse at 71% -12%, rgba(221, 237, 209, .78) 0%, rgba(144, 184, 150, .2) 26%, transparent 52%),
  linear-gradient(132deg, #061f1a 0%, #123a2f 47%, #1d4a3a 67%, #0a2a22 100%); }
.forest-scene::before { content: ""; position: absolute; inset: 0; opacity: .3; background-image:
  repeating-linear-gradient(103deg, transparent 0 42px, rgba(228, 242, 229, .025) 43px 44px),
  radial-gradient(circle at 20% 80%, rgba(132, 173, 145, .22), transparent 34%); }
.forest-haze { position: absolute; inset: 42% -15% -26%; background: radial-gradient(ellipse, rgba(175, 206, 180, .22), transparent 64%); filter: blur(18px); }
.forest-light { position: absolute; top: -25%; width: 24vw; height: 145%; opacity: .2; transform: rotate(17deg); background: linear-gradient(90deg, transparent, rgba(231, 240, 211, .72), transparent); filter: blur(20px); animation: light-breathe 12s cubic-bezier(.37, 0, .63, 1) infinite alternate; }
.forest-light--one { left: 55%; }
.forest-light--two { left: 76%; width: 10vw; opacity: .12; animation-delay: -7s; }
.forest-shadow { position: absolute; inset: -18% -12%; opacity: .48; transform-origin: 0 0; background:
  radial-gradient(ellipse at 8% 8%, #031812 0 4%, transparent 4.6%),
  radial-gradient(ellipse at 20% 17%, #06221a 0 6%, transparent 6.7%),
  radial-gradient(ellipse at 38% 3%, #031812 0 8%, transparent 8.7%),
  radial-gradient(ellipse at 80% 14%, #05241b 0 8%, transparent 8.8%),
  radial-gradient(ellipse at 97% 5%, #031812 0 9%, transparent 9.8%); filter: blur(9px); }
.forest-shadow--near { animation: canopy-near 15s cubic-bezier(.37, 0, .63, 1) infinite alternate; }
.forest-shadow--far { opacity: .23; transform: translate3d(-2%, 3%, 0) scale(1.12); animation: canopy-far 19s cubic-bezier(.37, 0, .63, 1) infinite alternate; }
.petals { position: absolute; inset: 0; overflow: hidden; }
.petals i { position: absolute; top: -6%; left: var(--x); width: 10px; height: 6px; border-radius: 9px 1px 9px 1px; opacity: .48; background: #efc6b9; filter: blur(.15px); animation: petal-fall var(--duration) linear var(--delay) infinite; }
.petals i:nth-child(1) { --x:12%;--delay:-3s;--drift:54px;--duration:13s; }
.petals i:nth-child(2) { --x:31%;--delay:-9s;--drift:-38px;--duration:17s; }
.petals i:nth-child(3) { --x:57%;--delay:-5s;--drift:42px;--duration:15s; }
.petals i:nth-child(4) { --x:76%;--delay:-12s;--drift:-52px;--duration:18s; }
.petals i:nth-child(5) { --x:91%;--delay:-7s;--drift:33px;--duration:14s; }

.login-layout { position: relative; z-index: 2; min-height: 100dvh; display: grid; grid-template-columns: minmax(420px, 1.15fr) minmax(390px, .85fr); align-items: center; gap: clamp(40px, 8vw, 150px); width: min(1320px, calc(100% - 96px)); margin: auto; }
.brand-story { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 8vh 0; text-shadow: 0 4px 32px rgba(0, 22, 16, .25); }
.brand-kicker { margin: 0 0 27px; color: #a8c6b4; font: 600 .69rem/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .21em; }
.brand-story h1 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: clamp(3rem, 6vw, 6.3rem); font-weight: 400; line-height: .98; letter-spacing: -.055em; text-wrap: balance; }
.brand-story h1 span { color: #dceadf; font-family: "Avenir Next", Avenir, sans-serif; font-weight: 500; letter-spacing: -.07em; }
.brand-story h1 em { color: #f0f6f1; font-family: "Iowan Old Style", "Baskerville", Georgia, serif; font-size: .83em; font-style: italic; font-weight: 400; letter-spacing: -.045em; }
.brand-intro { margin: 38px 0 0; color: #bdd1c5; font: 400 clamp(.86rem, 1.3vw, 1.02rem)/1.9 "Iowan Old Style", Baskerville, Georgia, serif; letter-spacing: .055em; }

.field-index { width: min(455px, 100%); display: grid; grid-template-columns: 152px minmax(0, 1fr); align-items: center; gap: 30px; margin-top: clamp(48px, 7vh, 78px); color: #bfd3c7; }
.field-index__dial { position: relative; width: 152px; height: 152px; opacity: .86; }
.field-index__ring, .field-index__axis, .field-index__dial b { position: absolute; display: block; }
.field-index__ring { border: 1px solid rgba(198, 222, 207, .26); border-radius: 50%; }
.field-index__ring--outer { inset: 0; box-shadow: inset 0 0 36px rgba(171, 205, 182, .04); }
.field-index__ring--middle { inset: 23px; border-style: dashed; opacity: .72; }
.field-index__ring--inner { inset: 53px; border-color: rgba(216, 235, 222, .48); }
.field-index__axis--x { left: 0; right: 0; top: 50%; border-top: 1px solid rgba(198, 222, 207, .19); }
.field-index__axis--y { top: 0; bottom: 0; left: 50%; border-left: 1px solid rgba(198, 222, 207, .19); }
.field-index__dial::before, .field-index__dial::after { content: ""; position: absolute; z-index: 1; width: 5px; height: 5px; border: 1px solid rgba(222, 237, 227, .55); border-radius: 50%; background: #244f40; }
.field-index__dial::before { left: 31px; top: 33px; }
.field-index__dial::after { right: 25px; bottom: 36px; }
.field-index__dial b { left: 50%; top: 50%; width: 18px; height: 18px; border: 1px solid rgba(222, 237, 227, .58); border-radius: 7px 2px 7px 2px; transform: translate(-50%, -50%) rotate(45deg); box-shadow: 0 0 24px rgba(180, 218, 191, .18); }
.field-index__readout { min-width: 0; padding: 4px 0 4px 24px; border-left: 1px solid rgba(199, 222, 208, .24); }
.field-index__readout > small { color: #88ad9b; font: 600 .6rem/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .18em; }
.field-index__readout > strong { display: block; margin-top: 13px; color: #dce9e1; font: 400 1.08rem/1.5 "Iowan Old Style", Baskerville, Georgia, serif; letter-spacing: .01em; }
.field-index__channels { display: flex; flex-wrap: wrap; gap: 6px 13px; margin-top: 17px; color: #9cbcac; font: 500 .56rem/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .11em; }
.field-index__channels span { position: relative; padding-left: 9px; }
.field-index__channels span::before { content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: #c58a52; transform: translateY(-50%); }
.field-index time { display: block; margin-top: 15px; color: #729887; font: 500 .58rem/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .09em; font-variant-numeric: tabular-nums; }

.login-card { position: relative; width: min(440px, 100%); justify-self: end; color: var(--ink); background: rgba(244, 249, 245, .9); border-radius: 28px 7px 28px 7px; box-shadow: 0 36px 90px rgba(0, 24, 17, .34), inset 0 0 0 1px rgba(255, 255, 255, .68); backdrop-filter: blur(18px); }
.login-card__topline { display: flex; justify-content: space-between; align-items: center; padding: 20px 25px 14px; border-bottom: 1px solid rgba(38, 76, 62, .12); color: #6c8178; font-size: .65rem; letter-spacing: .14em; }
.login-card__topline i { color: #a76b36; font: 500 .68rem "SFMono-Regular", Consolas, monospace; font-style: normal; }
form { display: grid; gap: 21px; padding: 35px 34px 30px; }
form header { margin-bottom: 5px; }
form h2 { margin: 0; font-family: "Iowan Old Style", Baskerville, Georgia, serif; font-size: 2rem; font-weight: 500; letter-spacing: -.02em; }
label { display: grid; gap: 8px; color: #5c7168; font-size: .74rem; }
input { width: 100%; height: 47px; padding: 10px 13px; border: 1px solid rgba(39, 79, 64, .22); border-radius: 9px 3px 9px 3px; outline: 0; color: var(--ink); background: rgba(255, 255, 255, .7); transition: border-color 180ms cubic-bezier(.22, 1, .36, 1), box-shadow 180ms cubic-bezier(.22, 1, .36, 1), background 180ms cubic-bezier(.22, 1, .36, 1); }
input:focus { border-color: #3f725f; background: #fff; box-shadow: 0 0 0 3px rgba(57, 108, 87, .11); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 60px; }
.password-field button { position: absolute; top: 5px; right: 5px; bottom: 5px; padding: 0 9px; border: 0; border-radius: 6px 2px 6px 2px; color: #386451; background: transparent; font-size: .7rem; }
.password-field button:hover { background: #e8f0eb; }
.form-error { margin: -5px 0 0; padding: 10px 12px; border-left: 3px solid #a4483f; color: #913d35; background: #f5e7e4; font-size: .73rem; line-height: 1.5; }
.login-action { height: 49px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border: 0; border-radius: 9px 3px 9px 3px; color: #f5faf7; background: #1f5947; box-shadow: 0 10px 22px rgba(31, 89, 71, .18); transition: transform 150ms cubic-bezier(.22, 1, .36, 1), background 180ms cubic-bezier(.22, 1, .36, 1); }
.login-action:hover { background: #164a3a; }
.login-action:active { transform: scale(.98); }
.login-action:disabled { cursor: wait; opacity: .68; }
.login-action i { font-size: 1.1rem; font-style: normal; }
.security-note { margin: -2px 0 0; color: #71847b; text-align: center; font-size: .66rem; }
.security-note span { display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: #4f7b67; }
button:focus-visible { outline: 2px solid #d59a5f; outline-offset: 3px; }

.motion-control { position: fixed; right: 20px; bottom: 18px; z-index: 4; padding: 7px 10px; border: 1px solid rgba(220, 235, 225, .22); border-radius: 7px 2px 7px 2px; color: #b9cec1; background: rgba(7, 31, 24, .3); font-size: .66rem; backdrop-filter: blur(8px); }
.motion-control:hover { color: #fff; background: rgba(7, 31, 24, .55); }
.motion-paused .forest-scene * { animation-play-state: paused !important; }

.opening { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; overflow: hidden; background: #092a22; }
.opening__veil { position: absolute; inset: -10%; opacity: 0; background: radial-gradient(circle at 63% 25%, #aac9ad 0%, #2c604e 22%, #092a22 58%); animation: opening-light 3.2s cubic-bezier(.22, 1, .36, 1) both; }
.opening__name { position: relative; z-index: 1; display: grid; justify-items: center; gap: 11px; opacity: 0; transform: translate3d(0, 12px, 0); filter: blur(5px); animation: opening-name 2.4s .35s cubic-bezier(.22, 1, .36, 1) both; }
.opening__name small { color: #9bbbaa; font-size: .63rem; letter-spacing: .32em; }
.opening__name strong { font: 500 clamp(1.8rem, 4vw, 3.7rem)/1.2 "Songti SC", "STSong", serif; letter-spacing: .08em; }
.opening__name span { width: 0; border-top: 1px solid #c58a52; animation: opening-line 1.5s .8s cubic-bezier(.22, 1, .36, 1) both; }
.login-transition { position: fixed; inset: 0; z-index: 18; pointer-events: none; visibility: hidden; opacity: 0; background: #0a2d24; }
.login-transition span { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(194, 222, 199, .5), transparent 36%); transform: scale(1.08); }
.login-transition i { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px; border: 1px solid rgba(224, 239, 228, .52); border-radius: 12px 4px 12px 4px; }
.login-transition.is-active { visibility: visible; animation: login-cover 850ms cubic-bezier(.22, 1, .36, 1) both; }
.login-transition.is-active span { animation: login-focus 850ms cubic-bezier(.22, 1, .36, 1) both; }

@keyframes light-breathe { to { opacity: .31; transform: translate3d(3vw, 0, 0) rotate(18deg); } }
@keyframes canopy-near { to { transform: translate3d(2.2%, 1.2%, 0) rotate(.7deg); } }
@keyframes canopy-far { to { transform: translate3d(-4%, 4%, 0) scale(1.12) rotate(-.6deg); } }
@keyframes petal-fall { 0% { opacity: 0; transform: translate3d(0, -8vh, 0) rotate(0); } 12% { opacity: .48; } 85% { opacity: .4; } 100% { opacity: 0; transform: translate3d(var(--drift), 112vh, 0) rotate(330deg); } }
@keyframes opening-light { 0% { opacity: 0; transform: scale(1.08); } 35%, 72% { opacity: 1; } 100% { opacity: 0; transform: scale(1); } }
@keyframes opening-name { 0% { opacity: 0; transform: translate3d(0, 12px, 0); filter: blur(5px); } 25%, 75% { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); } 100% { opacity: 0; transform: translate3d(0, -6px, 0); filter: blur(3px); } }
@keyframes opening-line { to { width: 84px; } }
@keyframes login-cover { 0% { opacity: 0; } 45%, 100% { opacity: 1; } }
@keyframes login-focus { to { transform: scale(1); } }

@media (max-width: 820px) {
  body { overflow-y: auto; }
  .login-layout { min-height: 100dvh; grid-template-columns: 1fr; align-content: center; gap: 26px; width: min(100% - 32px, 460px); padding: 60px 0; }
  .brand-story { align-self: auto; padding: 0; }
  .brand-kicker { margin-bottom: 14px; }
  .brand-story h1 { font-size: clamp(2.4rem, 14vw, 4rem); line-height: 1.04; }
  .brand-intro, .field-index { display: none; }
  .login-card { justify-self: stretch; }
  form { padding: 27px 24px 25px; }
  .motion-control { right: 12px; bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .forest-light, .forest-shadow, .petals i, .opening__veil, .opening__name, .opening__name span,
  .login-transition, .login-transition span { animation: none !important; }
  .opening { display: none !important; }
  .motion-control { display: none; }
  input, .login-action { transition: none; }
}
