: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;
}

.login-background {
  display: block;
  width: 100%;
  height: 100%;
}

.desktop-brand,
.login-panel-surface,
.interaction-layer {
  transition: opacity 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.desktop-brand {
  position: absolute;
  left: 6.25%;
  top: 36.7%;
  z-index: 2;
  width: 40.8%;
  color: #f4fbff;
  text-shadow: 0 4px 8px rgba(0, 8, 28, 0.48);
}

.desktop-brand h1,
.desktop-brand p,
.desktop-brand ul {
  margin: 0;
}

.desktop-brand h1 {
  display: flex;
  align-items: baseline;
  gap: min(1.05vw, 1.5vh);
  font-size: min(4vw, 5.65vh);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.08;
  white-space: nowrap;
}

.desktop-brand h1 span {
  color: #ffffff;
}

.desktop-brand h1 strong {
  color: #62dff4;
}

.desktop-brand > p {
  margin-top: min(2vw, 2.8vh);
  color: rgba(240, 249, 255, 0.94);
  font-size: min(1.55vw, 2.2vh);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.desktop-brand ul {
  display: flex;
  align-items: stretch;
  width: 76%;
  margin-top: min(2.7vw, 3.8vh);
  padding: 0;
  list-style: none;
}

.desktop-brand li {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 0 min(1.35vw, 1.9vh);
  text-align: center;
}

.desktop-brand li:first-child {
  padding-left: 0;
}

.desktop-brand li + li::before {
  position: absolute;
  content: "";
  left: 0;
  top: 8%;
  width: 1px;
  height: 84%;
  background: rgba(132, 202, 245, 0.28);
}

.desktop-brand li strong,
.desktop-brand li span {
  display: block;
  white-space: nowrap;
}

.desktop-brand li strong {
  color: #edf8ff;
  font-size: min(1.05vw, 1.48vh);
  line-height: 1.4;
}

.desktop-brand li span {
  margin-top: min(0.35vw, 0.5vh);
  color: rgba(190, 218, 239, 0.78);
  font-size: min(0.88vw, 1.24vh);
  line-height: 1.35;
}

.login-panel-surface {
  position: absolute;
  left: 53.8%;
  top: 18.2%;
  z-index: 2;
  width: 38.5%;
  height: 64%;
  border: 1px solid rgba(143, 211, 255, 0.58);
  border-radius: clamp(14px, min(1.25vw, 1.75vh), 20px);
  background: linear-gradient(145deg, rgba(10, 42, 84, 0.95), rgba(4, 20, 48, 0.97));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.login-heading {
  position: absolute;
  left: 57.95%;
  top: 27.6%;
  width: 30.05%;
  margin: 0;
  color: #f6fbff;
  font-size: min(2.15vw, 3.02vh);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}

.auth-resume-status {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  margin: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: rgba(5, 24, 54, 0.82);
  color: rgba(235, 248, 255, 0.92);
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 160ms ease;
}

body.auth-pending .desktop-brand,
body.auth-pending .login-panel-surface,
body.auth-pending .interaction-layer {
  opacity: 0;
  pointer-events: none;
}

body.auth-pending .auth-resume-status {
  opacity: 1;
}

.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;
  left: 0;
  bottom: calc(100% + min(0.75vw, 1.05vh));
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  color: rgba(238, 248, 255, 0.9);
  font-size: min(1.08vw, 1.52vh);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.hot-input input {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(173, 220, 255, 0.38);
  border-radius: 0.65vw;
  outline: none;
  background: #0a1b38;
  color: #eef9ff;
  padding: 0 3.6vw 0 1.35vw;
  font-size: clamp(14px, 1.42vw, 22px);
  line-height: 1;
  caret-color: #7ee9ff;
  box-shadow: none;
  backdrop-filter: none;
}

.hot-input input::placeholder {
  color: rgba(224, 240, 255, 0.64);
  opacity: 1;
}

.hot-input input:focus {
  border-color: var(--focus);
  background: #0d254a;
  box-shadow: none !important;
}

.hot-input input:-webkit-autofill {
  animation: browserCredentialAutofill 0.01ms both;
}

@media (min-width: 761px) and (min-height: 521px) {
  body.login-shell .hot-input input:-webkit-autofill,
  body.login-shell .hot-input input:-webkit-autofill:hover {
    animation: browserCredentialAutofill 0.01ms both;
    -webkit-text-fill-color: #eef9ff;
    caret-color: #7ee9ff;
    -webkit-box-shadow: 0 0 0 1000px #0a1b38 inset !important;
    box-shadow: 0 0 0 1000px #0a1b38 inset !important;
  }

  body.login-shell .hot-input input:-webkit-autofill:focus {
    animation: browserCredentialAutofill 0.01ms both;
    -webkit-text-fill-color: #eef9ff;
    caret-color: #7ee9ff;
    -webkit-box-shadow: 0 0 0 1000px #0d254a inset !important;
    box-shadow: 0 0 0 1000px #0d254a inset !important;
  }
}

.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;
  padding: 0;
  color: rgba(210, 236, 255, 0.82);
  font-size: clamp(11px, 0.78vw, 13px);
  line-height: 1;
  white-space: nowrap;
}

.login-preferences {
  position: absolute;
  left: 57.95%;
  top: 58%;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: clamp(18px, 1.5vw, 26px);
  width: 30.05%;
  min-height: 28px;
}

.login-preference-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(224, 240, 255, 0.88);
  font-size: clamp(12px, 0.88vw, 14px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.login-preference-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #2eafff;
  cursor: pointer;
}

.login-preference-option:focus-within {
  color: #ffffff;
}

.login-preference-option input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.login-button {
  left: 57.95%;
  top: 61.94%;
  width: 30.05%;
  height: 6.78%;
  border: 1px solid rgba(134, 222, 255, 0.72);
  background: linear-gradient(180deg, #2e9cf4, #115fd8);
  color: #ffffff;
  font-size: min(1.65vw, 2.32vh);
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.login-actions {
  position: absolute;
  left: 57.95%;
  top: 70.45%;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 1.2vw, 22px);
  width: 30.05%;
  min-width: 0;
  height: 4.05%;
  border-radius: 8px;
  background: #071a3a;
}

.login-actions button {
  border: 0;
  background: transparent;
  color: rgba(213, 234, 255, 0.9);
  min-height: 34px;
  padding: 0 0.7vw;
  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);
}

.modal-form .shortcut-guide-button {
  margin-top: -4px;
  border-color: rgba(142, 236, 255, 0.52);
  background: rgba(85, 205, 255, 0.12);
  color: #dff8ff;
}

.shortcut-panel {
  width: min(460px, 100%);
}

.shortcut-brand {
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.shortcut-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shortcut-panel h2 {
  margin-bottom: 12px;
}

.shortcut-summary,
.shortcut-note {
  color: rgba(226, 242, 255, 0.86);
  font-size: 14px;
  line-height: 1.7;
}

.shortcut-summary {
  margin: 0 0 14px;
}

.shortcut-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 26px;
  color: #f2fbff;
  font-size: 15px;
  line-height: 1.65;
}

.shortcut-note {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(105, 213, 255, 0.1);
}

.shortcut-done {
  width: 100%;
  height: 48px;
  margin-top: 20px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(180deg, #38b7ff, #1163ff);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

@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);
  }
}

@keyframes browserCredentialAutofill {
  from {
    filter: brightness(1);
  }

  to {
    filter: brightness(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), (max-height: 520px) and (orientation: landscape) {
  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;
  }

  .desktop-brand,
  .login-panel-surface,
  .login-heading {
    display: 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))
      max(22px, env(safe-area-inset-right))
      max(24px, env(safe-area-inset-bottom))
      max(22px, env(safe-area-inset-left));
  }

  .mobile-brand {
    display: block;
    width: min(100%, 390px);
    margin-bottom: clamp(20px, 4vh, 36px);
    padding-top: clamp(64px, 8vh, 82px);
    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: 44px;
    margin-top: -66px;
    margin-bottom: 8px;
    border-radius: 999px;
    color: rgba(210, 236, 255, 0.82);
    font-size: 13px;
    background: rgba(255, 255, 255, 0.08);
    touch-action: manipulation;
    transform: translateX(calc(min(100vw - 44px, 390px) / 2 - 66px));
  }

  .login-preferences {
    position: relative;
    left: auto;
    top: auto;
    width: min(100%, 390px);
    min-height: 30px;
    margin-top: -4px;
    gap: 24px;
  }

  .login-preference-option {
    min-height: 44px;
    font-size: 14px;
    touch-action: manipulation;
  }

  .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: transparent;
  }

  .login-actions button {
    min-height: 44px;
    font-size: 15px;
  }

  .form-message {
    bottom: max(16px, env(safe-area-inset-bottom));
    max-width: calc(100vw - max(20px, env(safe-area-inset-left)) - max(20px, env(safe-area-inset-right)));
    font-size: 14px;
  }

  .modal {
    align-items: end;
    padding:
      max(14px, env(safe-area-inset-top))
      max(14px, env(safe-area-inset-right))
      max(14px, env(safe-area-inset-bottom))
      max(14px, env(safe-area-inset-left));
  }

  .modal-panel {
    width: 100%;
    max-height: calc(100dvh - max(14px, env(safe-area-inset-top)) - max(14px, env(safe-area-inset-bottom)));
    border-radius: 16px;
    padding: 26px 20px 22px;
  }

  .modal-close {
    width: 44px;
    height: 44px;
  }

  .shortcut-brand {
    width: 56px;
    height: 56px;
  }
}

@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: 12px;
    padding-top: clamp(46px, 7vh, 56px);
  }

  .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: -62px;
  }

  .login-button {
    height: 52px;
  }

}

@media (max-width: 360px) {
  .interaction-layer {
    padding-right: max(16px, env(safe-area-inset-right));
    padding-left: max(16px, env(safe-area-inset-left));
  }

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

}

@media (max-height: 520px) and (orientation: landscape) {
  .visual-stage img {
    object-position: center;
  }

  .interaction-layer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(220px, 42vw, 360px);
    grid-template-rows: auto auto auto auto auto auto;
    align-content: center;
    column-gap: clamp(12px, 4vw, 88px);
    row-gap: 8px;
    padding: max(12px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  }

  .mobile-brand {
    grid-column: 1;
    grid-row: 1 / 7;
    align-self: center;
    margin: 0;
    padding: 0;
  }

  .mobile-brand p {
    font-size: clamp(34px, 5.4vw, 50px);
  }

  .mobile-brand h1 {
    font-size: clamp(40px, 6.4vw, 58px);
  }

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

  .account-field,
  .password-field,
  .login-preferences,
  .login-button,
  .login-actions {
    grid-column: 2;
    width: 100%;
    margin: 0;
  }

  .account-field {
    grid-row: 1;
  }

  .password-field {
    grid-row: 2;
  }

  .hot-input span {
    margin-bottom: 5px;
    font-size: 12px;
  }

  .hot-input input {
    height: 44px;
    border-radius: 10px;
  }

  .eye-button {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    justify-self: end;
    width: 50px;
    height: 44px;
    margin: 0 10px 0 0;
    transform: none;
  }

  .login-button {
    grid-row: 4;
    height: 46px;
  }

  .login-preferences {
    grid-column: 2;
    grid-row: 3;
    width: 100%;
    min-height: 28px;
    margin: 0;
    gap: 22px;
  }

  .login-actions {
    grid-row: 5;
    height: 36px;
  }

  .modal {
    align-items: center;
    padding:
      max(12px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
  }

  .modal-panel {
    width: min(620px, 100%);
    max-height: calc(100dvh - max(12px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom)));
    padding: 22px 24px;
  }
}

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

  .particle-canvas {
    display: none;
  }

}
