:root {
  color-scheme: dark;
  --stage-ratio: 1487 / 1058;
  --focus: rgba(104, 220, 255, 0.78);
  --text: #f3fbff;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 78%, rgba(30, 126, 255, 0.2), transparent 34%),
    #020b1d;
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

.page {
  position: relative;
  width: 100vw;
  height: 100svh;
  display: grid;
  place-items: center;
}

.visual-stage {
  position: relative;
  width: min(100vw, calc(100svh * (1487 / 1058)));
  aspect-ratio: var(--stage-ratio);
  max-height: 100svh;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
}

.visual-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.particle-canvas,
.ambient-motion {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle-canvas {
  opacity: 0.62;
  mix-blend-mode: screen;
}

.ambient-motion {
  overflow: hidden;
  mix-blend-mode: screen;
}

.flow-line {
  position: absolute;
  left: -18%;
  height: 0.22%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(130, 232, 255, 0.95), rgba(24, 116, 255, 0.58), transparent);
  box-shadow: 0 0 0.7vw rgba(103, 219, 255, 0.9), 0 0 2.2vw rgba(20, 123, 255, 0.72);
  opacity: 0;
  transform-origin: left center;
}

.flow-one {
  bottom: 25.5%;
  width: 54%;
  transform: rotate(-8deg);
  animation: flowSweep 5.8s ease-in-out infinite;
}

.flow-two {
  bottom: 19.4%;
  width: 66%;
  transform: rotate(3deg);
  animation: flowSweep 7.2s ease-in-out infinite 1.2s;
}

.flow-three {
  bottom: 13.2%;
  width: 46%;
  transform: rotate(-3deg);
  animation: flowSweep 8.8s ease-in-out infinite 2.7s;
  opacity: 0.45;
}

.card-shine {
  position: absolute;
  top: 18.2%;
  left: 53.8%;
  width: 38.5%;
  height: 64%;
  border-radius: 2.2vw;
  background: linear-gradient(105deg, transparent 26%, rgba(167, 238, 255, 0.12) 43%, transparent 60%);
  transform: translateX(-70%);
  animation: cardShimmer 7.5s ease-in-out infinite;
  opacity: 0;
}

.title-glow {
  position: absolute;
  left: 6.1%;
  top: 45.7%;
  width: 40%;
  height: 0.22%;
  border-radius: 999px;
  background: rgba(99, 227, 255, 0.95);
  box-shadow: 0 0 1vw rgba(100, 224, 255, 0.9), 0 0 2.4vw rgba(20, 114, 255, 0.7);
  animation: titlePulse 3.8s ease-in-out infinite;
}

.interaction-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.mobile-brand {
  display: none;
}

.hot-input {
  position: absolute;
  display: block;
}

.hot-input span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.hot-input input {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(173, 220, 255, 0.3);
  border-radius: 0.65vw;
  outline: none;
  background: rgba(5, 18, 42, 0.76);
  color: #eef9ff;
  padding: 0 3.6vw 0 1.35vw;
  font-size: clamp(14px, 1.42vw, 22px);
  line-height: 1;
  caret-color: #7ee9ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(5px);
}

.hot-input input:focus {
  border-color: var(--focus);
  background: rgba(8, 32, 72, 0.84);
  box-shadow: 0 0 0 0.28vw rgba(67, 184, 255, 0.12), 0 0 1.2vw rgba(83, 205, 255, 0.28);
}

.account-field {
  left: 57.95%;
  top: 38.65%;
  width: 30.05%;
  height: 6.22%;
}

.password-field {
  left: 57.95%;
  top: 51.58%;
  width: 30.05%;
  height: 6.22%;
}

.hot-button {
  position: absolute;
  border: 0;
  border-radius: 0.65vw;
  background: transparent;
  color: transparent;
  font-size: 0;
  cursor: pointer;
}

.hot-button:focus-visible {
  outline: 0.22vw solid var(--focus);
  outline-offset: 0.18vw;
}

.hot-button:hover {
  background: rgba(119, 224, 255, 0.08);
}

.hot-button:active {
  background: rgba(119, 224, 255, 0.14);
}

.eye-button {
  left: 84.75%;
  top: 53.04%;
  width: 2.4%;
  height: 3.6%;
  border-radius: 999px;
}

.login-button {
  left: 57.95%;
  top: 61.94%;
  width: 30.05%;
  height: 6.78%;
}

.login-actions {
  position: absolute;
  left: 70.7%;
  top: 71.58%;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.02vw;
  min-width: 18.8%;
  height: 4.2%;
  border-radius: 999px;
  background: rgba(7, 26, 58, 0.36);
  box-shadow: 0 0 1.2vw rgba(3, 13, 32, 0.32);
  backdrop-filter: blur(3px);
}

.login-actions button {
  border: 0;
  background: transparent;
  color: rgba(213, 234, 255, 0.9);
  min-height: 28px;
  padding: 0 0.2vw;
  font-size: clamp(14px, 1.02vw, 16px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.login-actions button:hover {
  color: #ffffff;
}

.login-actions button:focus-visible {
  outline: 0.18vw solid var(--focus);
  outline-offset: 0.2vw;
  border-radius: 999px;
}

.login-actions span {
  width: 1px;
  height: 1.08em;
  background: rgba(213, 234, 255, 0.42);
}

.demo-accounts {
  position: absolute;
  right: 4%;
  bottom: 3.6%;
  z-index: 4;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(128, 221, 255, 0.26);
  border-radius: 12px;
  background: rgba(3, 16, 38, 0.54);
  padding: 10px 12px;
  color: rgba(221, 241, 255, 0.78);
  font-size: clamp(10px, 0.82vw, 13px);
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.demo-accounts[hidden] {
  display: none;
}

.demo-accounts strong {
  color: #ffffff;
}

.form-message {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 5;
  max-width: min(520px, calc(100vw - 40px));
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  color: #eaf9ff;
  font-size: 15px;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.form-message:not(:empty) {
  padding: 10px 18px;
  border: 1px solid rgba(128, 221, 255, 0.38);
  background: rgba(6, 26, 60, 0.72);
  box-shadow: 0 12px 34px rgba(0, 8, 28, 0.34);
  backdrop-filter: blur(14px);
}

.form-message.error {
  color: #ffdada;
  border-color: rgba(255, 176, 176, 0.45);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(1, 9, 24, 0.62);
  backdrop-filter: blur(12px);
}

.modal-panel {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100svh - 44px);
  overflow: auto;
  border: 1px solid rgba(169, 226, 255, 0.45);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(16, 54, 104, 0.94), rgba(5, 18, 43, 0.96));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  padding: 30px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #dff7ff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.modal-kicker {
  margin: 0 0 8px;
  color: #71dfff;
  font-size: 13px;
  font-weight: 800;
}

.modal-panel h2 {
  margin: 0 0 24px;
  font-size: 28px;
}

.register-note {
  margin: -12px 0 20px;
  color: rgba(210, 235, 255, 0.78);
  font-size: 14px;
  line-height: 1.7;
}

.modal-form {
  display: grid;
  gap: 16px;
}

.modal-form label span {
  display: block;
  margin-bottom: 8px;
  color: rgba(238, 249, 255, 0.86);
  font-size: 14px;
  font-weight: 700;
}

.field-tip {
  display: block;
  margin-top: 7px;
  color: rgba(210, 235, 255, 0.68);
  font-size: 12px;
  font-style: normal;
  line-height: 1.55;
}

.modal-form input {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(183, 224, 255, 0.34);
  border-radius: 10px;
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0 14px;
}

.modal-form input:focus {
  border-color: rgba(101, 217, 255, 0.9);
  box-shadow: 0 0 0 4px rgba(65, 193, 255, 0.12);
}

.modal-form button {
  height: 48px;
  margin-top: 6px;
  border: 1px solid rgba(134, 222, 255, 0.72);
  border-radius: 11px;
  background: linear-gradient(180deg, #38b7ff, #1163ff);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

.modal-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.register-message {
  min-height: 0;
  margin: 0;
  border-radius: 10px;
  color: rgba(226, 242, 255, 0.9);
  font-size: 13px;
  line-height: 1.65;
}

.register-message:not(:empty) {
  padding: 11px 12px;
  background: rgba(105, 213, 255, 0.1);
}

.register-message.success {
  color: #c7ffe0;
  background: rgba(46, 204, 113, 0.14);
}

.register-message.error {
  color: #ffdada;
  background: rgba(255, 107, 107, 0.13);
}

@keyframes flowSweep {
  0% {
    translate: -18% 0;
    opacity: 0;
  }

  16%,
  72% {
    opacity: 0.72;
  }

  100% {
    translate: 138% 0;
    opacity: 0;
  }
}

@keyframes cardShimmer {
  0%,
  42% {
    transform: translateX(-76%) skewX(-12deg);
    opacity: 0;
  }

  56% {
    opacity: 0.75;
  }

  74%,
  100% {
    transform: translateX(72%) skewX(-12deg);
    opacity: 0;
  }
}

@keyframes titlePulse {
  0%,
  100% {
    opacity: 0.38;
    transform: scaleX(0.92);
  }

  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (max-aspect-ratio: 1487 / 1058) {
  .hot-input input {
    padding-left: 5.1vh;
    padding-right: 4.8vh;
    border-radius: 0.8vh;
  }

  .hot-button {
    border-radius: 0.8vh;
  }
}

@media (max-width: 760px) {
  body {
    overflow: hidden;
  }

  .page {
    min-height: 100svh;
  }

  .visual-stage {
    width: 100vw;
    height: 100svh;
    max-height: none;
    aspect-ratio: auto;
    transform-origin: top left;
    box-shadow: none;
  }

  .visual-stage img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 18% center;
    filter: brightness(0.42) saturate(1.08) blur(1px);
    transform: scale(1.08);
  }

  .visual-stage::after {
    position: absolute;
    content: "";
    inset: 0;
    z-index: 0;
    background:
      linear-gradient(180deg, rgba(2, 11, 29, 0.16), rgba(2, 11, 29, 0.68) 42%, rgba(2, 11, 29, 0.96)),
      linear-gradient(90deg, rgba(2, 11, 29, 0.22), rgba(2, 11, 29, 0.68)),
      radial-gradient(circle at 50% 22%, rgba(50, 161, 255, 0.22), transparent 42%);
    pointer-events: none;
  }

  .particle-canvas,
  .ambient-motion,
  .interaction-layer {
    z-index: 1;
  }

  .title-glow {
    left: 22px;
    top: 226px;
    width: min(62vw, 310px);
  }

  .card-shine {
    display: none;
  }

  .demo-accounts {
    display: none;
  }

  .flow-one {
    bottom: 31%;
    width: 86%;
  }

  .flow-two {
    bottom: 24%;
    width: 96%;
  }

  .flow-three {
    bottom: 17%;
    width: 76%;
  }

  .interaction-layer {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 14px;
    padding: max(30px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom));
  }

  .mobile-brand {
    display: block;
    width: min(100%, 390px);
    margin-bottom: clamp(34px, 8vh, 74px);
    padding-top: clamp(18px, 3vh, 36px);
    text-align: center;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
  }

  .mobile-brand p,
  .mobile-brand h1,
  .mobile-brand span {
    margin: 0;
  }

  .mobile-brand p {
    color: #ffffff;
    font-size: clamp(36px, 11vw, 52px);
    line-height: 1.08;
    font-weight: 900;
  }

  .mobile-brand h1 {
    margin-top: 4px;
    color: #64e8ff;
    font-size: clamp(44px, 13vw, 64px);
    line-height: 1.04;
    font-weight: 900;
  }

  .mobile-brand span {
    display: block;
    max-width: 320px;
    margin: 14px auto 0;
    color: rgba(238, 249, 255, 0.88);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
  }

  .hot-input,
  .hot-button {
    position: relative;
    left: auto;
    top: auto;
    width: min(100%, 390px);
    height: auto;
  }

  .hot-input {
    display: block;
  }

  .account-field {
    margin-top: auto;
  }

  .hot-input span {
    position: static;
    display: block;
    width: auto;
    height: auto;
    margin-bottom: 9px;
    overflow: visible;
    clip: auto;
    color: rgba(244, 250, 255, 0.94);
    font-size: 15px;
    font-weight: 800;
  }

  .hot-input input {
    height: 56px;
    border: 1px solid rgba(191, 229, 255, 0.48);
    border-radius: 12px;
    background: rgba(8, 24, 56, 0.82);
    padding: 0 18px;
    font-size: 16px;
    box-shadow: 0 16px 36px rgba(0, 8, 28, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
  }

  .password-field input {
    padding-right: 74px;
  }

  .eye-button {
    position: relative;
    z-index: 4;
    align-self: center;
    width: 54px;
    height: 32px;
    margin-top: -60px;
    margin-bottom: 14px;
    border-radius: 999px;
    color: rgba(210, 236, 255, 0.82);
    font-size: 13px;
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(calc(min(100vw - 44px, 390px) / 2 - 66px));
  }

  .login-button {
    height: 58px;
    margin-top: 4px;
    border: 1px solid rgba(134, 222, 255, 0.72);
    border-radius: 13px;
    background: linear-gradient(180deg, #38b7ff, #1163ff);
    color: #fff;
    font-size: 21px;
    font-weight: 900;
    box-shadow: 0 18px 34px rgba(4, 72, 200, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.32);
  }

  .login-actions {
    position: relative;
    left: auto;
    top: auto;
    width: min(100%, 390px);
    min-width: 0;
    height: 32px;
    gap: 18px;
    margin-top: -2px;
    background: rgba(7, 26, 58, 0.22);
  }

  .login-actions button {
    font-size: 15px;
  }

  .form-message {
    bottom: max(16px, env(safe-area-inset-bottom));
    font-size: 14px;
  }
}

@media (max-width: 760px) and (max-height: 720px) {
  .interaction-layer {
    gap: 10px;
    padding-top: max(20px, env(safe-area-inset-top));
  }

  .mobile-brand {
    margin-bottom: 22px;
    padding-top: 6px;
  }

  .mobile-brand p {
    font-size: 34px;
  }

  .mobile-brand h1 {
    font-size: 42px;
  }

  .mobile-brand span {
    margin-top: 8px;
    font-size: 12px;
  }

  .hot-input span {
    margin-bottom: 6px;
    font-size: 14px;
  }

  .hot-input input {
    height: 50px;
  }

  .eye-button {
    bottom: auto;
    margin-top: -56px;
  }

  .login-button {
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
