:root {
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  color: #eef3ff;
  background: #080d1c;
  color-scheme: dark;
  --muted: #adbbd7;
  --edge: #9eb7ee42;
  --focus: #aac7ff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-block-size: 100vh;
  min-block-size: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 420px);
  place-content: center;
  margin: 0;
  padding: 24px clamp(16px, 5vw, 40px);
  isolation: isolate;
}

.account-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 47% 18%, #284c926b, transparent 57%),
    radial-gradient(ellipse at 102% 84%, #39327160, transparent 51%),
    radial-gradient(ellipse at 4% 93%, #173b666d, transparent 52%),
    linear-gradient(137deg, #0b142c, #0a1124 50%, #101730);
}

.account-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, #070b1794, transparent 64%);
}

.nexa-marquee {
  --step: max(156px, 23vw);
  --angle: -10deg;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  color: #9fbeff;
  font: 760 italic clamp(28px, min(4.2vw, 12dvh), 66px)/1.12 "Bahnschrift", "Segoe UI", sans-serif;
  letter-spacing: .015em;
}

.nexa-marquee__row {
  inline-size: calc(100vw + 10rem);
  overflow: hidden;
  transform: rotate(var(--angle));
  opacity: .28;
}

.nexa-marquee__row:nth-child(even) { --delay: -6s; opacity: .23; }

.nexa-marquee__track {
  display: flex;
  inline-size: max-content;
  animation: nexa-scroll 72s linear var(--delay, 0s) infinite;
}

.nexa-marquee__track span {
  display: grid;
  grid-template-columns: repeat(3, var(--step));
  justify-items: center;
}

.nexa-marquee__track span::before,
.nexa-marquee__track span::after { content: "NEXA"; }

@keyframes nexa-scroll {
  to { transform: translateX(-50%); }
}

main {
  width: 100%;
  padding: clamp(22px, 5vw, 38px);
  border: 1px solid var(--edge);
  border-radius: 24px;
  background: linear-gradient(154deg, #1b2842f2, #10182bf2);
  box-shadow: 0 24px 80px #02050e9c, inset 0 1px #e0ebff16;
  backdrop-filter: blur(12px);
}

.brand {
  width: max-content;
  margin: 0 0 12px;
  color: transparent;
  background: linear-gradient(108deg, #d6e4ff, #a8caff 60%, #ceb3f5);
  background-clip: text;
  font: 760 italic 2.25rem/1 "Bahnschrift", "Segoe UI", sans-serif;
  letter-spacing: -.045em;
}

h1 { margin: 0 0 21px; font-size: 1.38rem; line-height: 1.3; }

.account-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: #0b1426b8;
}

.account-tabs button {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
}

.account-tabs button[aria-pressed=true] {
  color: #f0f5ff;
  background: #35517c;
  border-color: #aac7ff4d;
}

form, label { display: grid; }
form { gap: 16px; }
label { gap: 6px; font-size: .875rem; }
input, button, a { font: inherit; }

input {
  min-width: 0;
  width: 100%;
  min-height: 43px;
  padding: 9px 12px;
  color: inherit;
  background: #0d1628;
  border: 1px solid #9eb7ee55;
  border-radius: 9px;
  font-size: 1rem;
}

button, .actions a {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 14px;
  color: #152542;
  background: #d4e2ff;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}

form button[type=submit] { min-height: 43px; margin-top: 2px; }
.quiet { color: #d5e3ff; background: transparent; border-color: var(--edge); }
button:hover:not(:disabled), .actions a:hover { filter: brightness(1.13); }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; }
#access-status, #message { color: var(--muted); font-size: .875rem; line-height: 1.5; }
#message { min-height: 1.5em; margin: 14px 0 0; }

@media (min-aspect-ratio: 5/2) {
  .nexa-marquee { --angle: -6deg; }
}

@media (prefers-reduced-motion: reduce) {
  .nexa-marquee__track { animation: none; }
}
