:root {
  --auth-bg: #040b12;
  --auth-surface: rgba(8, 25, 38, 0.92);
  --auth-line: rgba(122, 190, 224, 0.17);
  --auth-blue: #62bce8;
  --auth-blue-soft: #93d9f6;
  --auth-green: #66d1b5;
  --auth-muted: #7894a5;
  --auth-text: #e8f6fc;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--auth-text);
  background:
    radial-gradient(circle at 18% 25%, rgba(38, 133, 180, 0.18), transparent 31rem),
    radial-gradient(circle at 88% 72%, rgba(34, 93, 128, 0.14), transparent 35rem),
    linear-gradient(135deg, #03080d, #071521 58%, #05101a);
  font-family: Inter, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

.auth-background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.75;
}

.auth-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(101, 188, 232, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101, 188, 232, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.auth-background span {
  position: absolute;
  width: 36rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(115, 200, 241, 0.3), transparent);
  transform: rotate(-38deg);
}

.auth-background span:nth-child(1) { top: 18%; left: -8rem; }
.auth-background span:nth-child(2) { top: 55%; right: -11rem; }
.auth-background span:nth-child(3) { bottom: 8%; left: 28%; }

.auth-shell {
  position: relative;
  z-index: 1;
  width: min(1480px, calc(100% - 52px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.auth-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--auth-line);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
  margin-right: auto;
}

.brand-symbol {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(107, 198, 239, 0.55);
  color: var(--auth-blue-soft);
  background: linear-gradient(145deg, rgba(37, 108, 143, 0.38), rgba(7, 27, 40, 0.8));
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
  font-size: 22px;
  font-weight: 900;
}

.auth-brand > span:last-child {
  display: grid;
  gap: 2px;
}

.auth-brand strong {
  letter-spacing: 0.13em;
  font-size: 17px;
}

.auth-brand strong span {
  color: var(--auth-blue);
}

.auth-brand small,
.auth-header-status small {
  color: var(--auth-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.auth-header-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-header-status > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--auth-green);
  box-shadow: 0 0 15px rgba(102, 209, 181, 0.72);
}

.auth-header-status > span {
  display: grid;
  gap: 2px;
}

.auth-header-status strong {
  font-size: 11px;
  letter-spacing: 0.12em;
}

.version-badge {
  padding: 8px 11px;
  border: 1px solid var(--auth-line);
  color: #87aabb;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.auth-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(340px, 0.84fr) minmax(600px, 1.16fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
  padding: 54px 0 68px;
}

.auth-intro {
  max-width: 580px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--auth-blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.24em;
}

.auth-intro h1 {
  margin: 0;
  font-size: clamp(48px, 5.7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 760;
}

.auth-intro h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(133, 207, 241, 0.66);
}

.intro-copy {
  max-width: 540px;
  margin: 28px 0 36px;
  color: #91aebd;
  font-size: 16px;
  line-height: 1.72;
}

.identity-flow {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 13px;
}

.identity-flow > span {
  display: grid;
  gap: 3px;
}

.identity-flow b {
  color: var(--auth-blue);
  font-size: 10px;
}

.identity-flow strong {
  font-size: 11px;
  letter-spacing: 0.15em;
}

.identity-flow small {
  color: #668392;
  font-size: 9px;
}

.identity-flow > i {
  height: 1px;
  background: linear-gradient(90deg, rgba(98, 188, 232, 0.55), rgba(98, 188, 232, 0.07));
}

.security-note {
  margin-top: 38px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 16px;
  border-left: 2px solid var(--auth-green);
  background: rgba(64, 133, 131, 0.08);
}

.security-note > span {
  color: var(--auth-green);
  margin-top: 2px;
}

.security-note p {
  margin: 0;
  display: grid;
  gap: 4px;
}

.security-note strong {
  font-size: 12px;
  letter-spacing: 0.05em;
}

.security-note small {
  color: #7797a6;
  line-height: 1.5;
}

.auth-panel {
  position: relative;
  padding: clamp(26px, 3.2vw, 42px);
  border: 1px solid rgba(117, 195, 232, 0.2);
  background:
    linear-gradient(145deg, rgba(14, 42, 61, 0.96), rgba(5, 17, 27, 0.97)),
    var(--auth-surface);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.auth-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 38%;
  height: 2px;
  background: linear-gradient(90deg, var(--auth-blue), transparent);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.025em;
}

.panel-heading b {
  color: var(--auth-blue-soft);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.auth-message {
  display: none;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(220, 143, 102, 0.32);
  background: rgba(112, 57, 38, 0.16);
  color: #e7b28f;
  font-size: 12px;
}

.auth-message.visible {
  display: block;
}

.auth-message.success {
  border-color: rgba(102, 209, 181, 0.32);
  background: rgba(45, 111, 96, 0.14);
  color: #8fe1c9;
}

.verification-list {
  display: grid;
  gap: 10px;
}

.verification-card {
  min-height: 88px;
  padding: 14px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  grid-template-areas:
    "mark copy state"
    "mark copy action";
  align-items: center;
  column-gap: 14px;
  border: 1px solid rgba(122, 190, 224, 0.14);
  background: rgba(5, 18, 28, 0.62);
  transition: border-color 160ms ease, background 160ms ease;
}

.verification-card.complete {
  border-color: rgba(102, 209, 181, 0.3);
  background: rgba(26, 76, 70, 0.12);
}

.verification-card.locked {
  opacity: 0.58;
}

.provider-mark {
  grid-area: mark;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(135, 200, 231, 0.25);
  background: rgba(58, 113, 139, 0.16);
  color: #bfe8f8;
  font-weight: 900;
  font-size: 16px;
}

.steam-mark {
  color: #d9eff8;
}

.discord-mark {
  color: #a9b9ff;
  border-color: rgba(118, 137, 238, 0.3);
  background: rgba(88, 101, 242, 0.12);
}

.server-mark {
  color: var(--auth-green);
}

.provider-copy {
  grid-area: copy;
  min-width: 0;
  display: grid;
  gap: 3px;
}

.provider-copy small {
  color: #597889;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.provider-copy strong {
  font-size: 14px;
}

.provider-copy p {
  margin: 0;
  color: #7897a6;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.state-badge {
  grid-area: state;
  justify-self: end;
  color: #7e9aa9;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.verification-card.complete .state-badge {
  color: var(--auth-green);
}

.provider-action {
  grid-area: action;
  justify-self: end;
  color: var(--auth-blue-soft);
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  border: 0;
  background: transparent;
  padding: 4px 0 0;
  cursor: pointer;
}

.verification-card.locked .provider-action {
  pointer-events: none;
  visibility: hidden;
}

.dev-discord-action {
  display: none;
}

.current-account,
.dev-access {
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid var(--auth-line);
  background: rgba(5, 17, 26, 0.56);
}

.current-account {
  display: none;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
}

.current-account.visible {
  display: grid;
}

.account-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #bfeafa;
  background: rgba(57, 133, 170, 0.24);
  font-size: 11px;
  font-weight: 900;
}

.current-account > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.current-account small {
  color: #648292;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.current-account strong {
  font-size: 12px;
}

.current-account p {
  margin: 0;
  color: #7693a2;
  font-size: 10px;
}

.current-account button {
  border: 0;
  background: transparent;
  color: #7d9aa8;
  font-size: 10px;
  cursor: pointer;
}

.dev-access {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-style: dashed;
}

.dev-access.visible {
  display: flex;
}

.dev-access > span {
  display: flex;
  align-items: center;
  gap: 11px;
}

.dev-access b {
  padding: 5px 6px;
  color: #e2b76e;
  border: 1px solid rgba(226, 183, 110, 0.28);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.dev-access p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.dev-access strong {
  font-size: 11px;
}

.dev-access small {
  color: #708d9c;
  font-size: 9px;
}

.dev-access button {
  padding: 8px 11px;
  border: 1px solid rgba(226, 183, 110, 0.27);
  color: #e8c58b;
  background: rgba(121, 89, 43, 0.13);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--auth-line);
}

.panel-footer > p {
  max-width: 290px;
  margin: 0;
  color: #668493;
  font-size: 9px;
  line-height: 1.5;
}

.panel-footer > span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-entry {
  display: none;
  color: #87a7b7;
  font-size: 9px;
  text-decoration: none;
}

.admin-entry.visible {
  display: inline;
}

.continue-button {
  min-width: 144px;
  padding: 12px 16px;
  display: inline-flex;
  justify-content: space-between;
  gap: 14px;
  color: #031018;
  background: linear-gradient(100deg, #70c5e8, #72d3ba);
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
}

.continue-button.disabled {
  pointer-events: none;
  color: #62808e;
  background: #102734;
  opacity: 0.58;
}

@media (max-width: 1080px) {
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 42px;
    align-items: start;
  }

  .auth-intro {
    max-width: 760px;
  }

  .auth-intro h1 {
    font-size: clamp(48px, 9vw, 74px);
  }
}

@media (max-width: 680px) {
  .auth-shell {
    width: min(100% - 24px, 1480px);
  }

  .auth-header {
    min-height: 76px;
    gap: 12px;
  }

  .auth-header-status {
    display: none;
  }

  .version-badge {
    font-size: 8px;
  }

  .auth-layout {
    padding: 34px 0;
  }

  .identity-flow {
    grid-template-columns: 1fr;
  }

  .identity-flow > i {
    display: none;
  }

  .auth-panel {
    padding: 20px;
  }

  .verification-card {
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-areas:
      "mark copy"
      "state action";
    row-gap: 8px;
  }

  .state-badge {
    justify-self: start;
  }

  .panel-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-footer > span {
    justify-content: space-between;
  }
}
