:root {
  color-scheme: dark;
  --ink: #071416;
  --panel: #0b1f21;
  --panel-soft: #10292a;
  --jade: #39a68f;
  --jade-light: #6ad7b8;
  --gold: #d9a852;
  --gold-light: #f3d48d;
  --text: #edf5ef;
  --muted: #98aaa4;
  --danger: #e98a78;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  overflow-x: hidden;
}

button, input { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

.shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(380px, 1.08fr) minmax(440px, .92fr);
}

.hero {
  position: relative;
  min-height: 100%;
  padding: clamp(36px, 7vw, 92px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(118deg, rgba(5, 24, 25, .18), rgba(3, 12, 14, .82)),
    radial-gradient(circle at 28% 30%, rgba(47, 142, 119, .38), transparent 37%),
    linear-gradient(145deg, #163b37 0%, #0d2828 45%, #071416 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: .34;
  background-image:
    linear-gradient(30deg, transparent 24%, rgba(213, 178, 105, .12) 25%, transparent 26%),
    linear-gradient(150deg, transparent 24%, rgba(213, 178, 105, .08) 25%, transparent 26%);
  background-size: 72px 126px;
}

.hero::after {
  content: "";
  position: absolute;
  width: min(60vw, 720px);
  aspect-ratio: 1;
  right: -24%;
  bottom: -34%;
  z-index: -2;
  border: 1px solid rgba(219, 176, 85, .25);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(219, 176, 85, .025), 0 0 0 96px rgba(219, 176, 85, .018);
}

.hero__mist {
  position: absolute;
  z-index: -1;
  height: 160px;
  width: 75%;
  border-radius: 50%;
  background: rgba(178, 220, 200, .075);
  filter: blur(28px);
  transform: rotate(-9deg);
}

.hero__mist--one { left: -18%; bottom: 21%; }
.hero__mist--two { right: -25%; top: 16%; opacity: .55; }

.hero__content { position: relative; max-width: 660px; }

.eyebrow, .section-kicker {
  margin: 0 0 18px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .28em;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 8vw, 118px);
  font-weight: 500;
  line-height: .87;
  letter-spacing: -.055em;
  text-shadow: 0 14px 34px rgba(0, 0, 0, .34);
}

.hero h1 span { display: block; color: var(--gold-light); }

.hero__copy {
  margin: 34px 0 0;
  color: #bfd0c7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.55;
}

.seal {
  position: absolute;
  right: clamp(-40px, -3vw, -8px);
  top: 15%;
  width: 82px;
  height: 82px;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  color: rgba(242, 208, 132, .75);
  border: 1px solid rgba(229, 186, 95, .38);
  transform: rotate(7deg);
  font-family: serif;
  font-size: 27px;
}

.hero__footer {
  position: absolute;
  left: clamp(36px, 7vw, 92px);
  bottom: 30px;
  color: rgba(205, 221, 213, .52);
  font-size: 12px;
  letter-spacing: .08em;
}

.account-panel {
  position: relative;
  display: grid;
  place-items: center;
  padding: 34px clamp(24px, 5vw, 80px);
  background:
    radial-gradient(circle at 100% 0, rgba(42, 136, 112, .12), transparent 42%),
    #081719;
}

.account-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8%;
  bottom: 8%;
  width: 1px;
  background: linear-gradient(transparent, rgba(220, 179, 92, .45), transparent);
}

.account-card { width: min(100%, 510px); }

.account-card__heading {
  position: relative;
  padding-right: 130px;
  margin-bottom: 30px;
}

.section-kicker { margin-bottom: 8px; color: var(--jade-light); }

.account-card h2 {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(30px, 3.5vw, 40px);
  font-weight: 620;
  letter-spacing: -.035em;
  line-height: 1.15;
}

.panel-copy {
  margin: -14px 0 24px;
  max-width: 430px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.server-status {
  position: absolute;
  right: 0;
  top: 5px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  color: #a9bbb5;
  font-size: 11px;
}

.server-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5ed196;
  box-shadow: 0 0 12px #5ed196;
}

.server-status[data-state="checking"] i {
  background: var(--gold);
  box-shadow: 0 0 12px rgba(217, 168, 82, .8);
}

.server-status[data-state="offline"] { color: var(--danger); }
.server-status[data-state="offline"] i {
  background: var(--danger);
  box-shadow: 0 0 12px rgba(233, 138, 120, .7);
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(187, 214, 201, .13);
}

.tab {
  position: relative;
  padding: 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.tab::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -1px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .2s ease;
}

.tab.is-active { color: var(--gold-light); }
.tab.is-active::after { transform: scaleX(1); }

.form-panel { display: none; }
.form-panel.is-active { display: block; animation: rise .24s ease; }

@keyframes rise {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.field {
  display: block;
  margin-bottom: 17px;
  color: #cbd9d2;
  font-size: 13px;
  font-weight: 600;
}

.field > span:first-child { display: block; margin-bottom: 8px; }

.input-wrap {
  min-height: 52px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  background: rgba(21, 53, 53, .62);
  border: 1px solid rgba(147, 186, 170, .17);
  border-radius: 5px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.input-wrap:focus-within {
  border-color: rgba(93, 204, 169, .62);
  box-shadow: 0 0 0 3px rgba(61, 170, 140, .09);
  background: rgba(23, 62, 60, .78);
}

.input-wrap.is-invalid {
  border-color: rgba(233, 138, 120, .72);
  box-shadow: 0 0 0 3px rgba(233, 138, 120, .08);
}

.input-wrap svg {
  width: 20px;
  fill: none;
  stroke: #7ba397;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.input-wrap input {
  min-width: 0;
  width: 100%;
  height: 50px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.input-wrap input::placeholder { color: #68817b; }

.reveal, .text-button {
  border: 0;
  padding: 6px;
  background: none;
  color: var(--gold-light);
  cursor: pointer;
  font-size: 12px;
}

.form-hint, .field-help, .legal {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.form-hint { margin: -2px 0 17px; }
.field-help { display: block; margin-top: 7px; font-weight: 400; }

.requirements {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: -5px 0 17px;
  padding: 0;
  list-style: none;
  color: #708781;
  font-size: 10px;
}

.requirements li {
  position: relative;
  padding-left: 14px;
  line-height: 1.4;
}

.requirements li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.requirements li.is-met { color: var(--jade-light); }
.requirements li.is-met::before { background: currentColor; }

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 4px;
  padding: 0 22px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  transition: transform .15s ease, filter .15s ease, opacity .15s ease;
}

.button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:disabled { cursor: wait; opacity: .62; }
.button--primary { width: 100%; color: #10221e; background: linear-gradient(100deg, #d4a349, #f0d18a 52%, #c7963f); }
.button--primary b { margin-left: auto; font-size: 19px; }
.button--small { min-height: 38px; width: auto; padding: 0 17px; }

.notice {
  margin: 0 0 18px;
  padding: 11px 13px;
  color: #eab2a5;
  background: rgba(150, 57, 44, .16);
  border: 1px solid rgba(226, 116, 95, .26);
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.45;
}

.notice.is-success {
  color: #a9dec8;
  background: rgba(47, 135, 105, .16);
  border-color: rgba(82, 190, 151, .26);
}

.form-switch {
  margin: 17px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.form-switch button {
  border: 0;
  padding: 2px 4px;
  background: transparent;
  color: var(--gold-light);
  cursor: pointer;
  font-weight: 650;
}

.session-banner {
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 18px;
  background: rgba(48, 132, 107, .13);
  border: 1px solid rgba(85, 190, 153, .24);
  border-radius: 5px;
}

.session-banner:not([hidden]) { display: flex; }
.session-banner span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.session-banner strong { color: var(--gold-light); }
.session-actions { display: flex; align-items: center; gap: 10px; }

.legal { margin: 24px 0 0; text-align: center; color: #5d716b; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .hero { min-height: 280px; padding: 48px 30px 62px; }
  .hero h1 { font-size: clamp(54px, 15vw, 86px); }
  .hero__copy { margin-top: 22px; }
  .hero__footer { left: 30px; bottom: 18px; }
  .seal { right: 8px; top: 10%; opacity: .7; }
  .account-panel { padding: 42px 22px 54px; }
  .account-panel::before { display: none; }
}

@media (max-width: 520px) {
  .hero { min-height: 230px; }
  .hero__copy { font-size: 15px; }
  .account-card__heading { padding-right: 0; }
  .server-status { position: static; margin-top: 12px; }
  .session-banner { align-items: flex-start; flex-direction: column; }
  .session-actions { width: 100%; }
  .session-actions .button { flex: 1; }
  .requirements { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
