:root {
  color-scheme: dark;
  --login-bg: #05070b;
  --login-surface: #0c1219;
  --login-surface-raised: #121a23;
  --login-border: rgba(202, 217, 232, 0.18);
  --login-text: #f5f0e8;
  --login-muted: #9eabb9;
  --login-cyan: #48d7df;
  --login-gold: #e5bd52;
  --login-red: #ef6c72;
  --login-felt: #123c33;
  --login-felt-edge: #253a38;
  --login-positive: #86dd73;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--login-bg);
}

.login-body {
  margin: 0;
  min-height: 100vh;
  background: var(--login-bg);
  color: var(--login-text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

.login-skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 9px 12px;
  border: 1px solid var(--login-cyan);
  background: var(--login-bg);
  color: var(--login-text);
  text-decoration: none;
  transform: translateY(-160%);
}

.login-skip:focus {
  transform: translateY(0);
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.55fr);
  min-height: 100vh;
}

.login-stage {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(28px, 4vw, 64px);
  border-right: 1px solid var(--login-border);
  background: #071017;
}

.login-stage::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 34%;
  background: rgba(3, 7, 10, 0.68);
  content: "";
}

.login-brand {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(72, 215, 223, 0.5);
  border-radius: 6px;
  background: var(--login-surface-raised);
  color: var(--login-cyan);
  font-size: 13px;
  font-weight: 850;
}

.login-brand strong,
.login-brand small {
  display: block;
}

.login-brand strong {
  font-size: 16px;
}

.login-brand small {
  margin-top: 3px;
  color: var(--login-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.login-stage-copy {
  position: relative;
  z-index: 4;
  width: min(620px, 82%);
  margin: clamp(36px, 8vh, 100px) 0 auto;
}

.login-kicker {
  margin: 0 0 12px;
  color: var(--login-gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.login-stage-copy h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1.02;
}

.login-stage-copy > p:last-child {
  max-width: 600px;
  margin: 22px 0 0;
  color: #c8d1db;
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.55;
}

.login-table-scene {
  position: relative;
  z-index: 2;
  width: min(820px, 94%);
  height: clamp(260px, 36vh, 410px);
  margin: 0 auto -9%;
}

.login-table-felt {
  position: absolute;
  right: 4%;
  bottom: 1%;
  left: 4%;
  height: 66%;
  border: 16px solid var(--login-felt-edge);
  border-radius: 50%;
  background: var(--login-felt);
  box-shadow:
    inset 0 0 0 2px rgba(229, 189, 82, 0.18),
    0 24px 44px rgba(0, 0, 0, 0.45);
}

.login-board {
  position: absolute;
  top: 46%;
  left: 50%;
  display: flex;
  gap: 6px;
  transform: translate(-50%, -50%);
}

.login-card {
  display: flex;
  width: 43px;
  height: 59px;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px;
  border: 1px solid #cbd0d4;
  border-radius: 5px;
  background: #f5f0e7;
  color: #101319;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.24);
}

.login-card b {
  font-size: 19px;
}

.login-card small {
  overflow: hidden;
  font-size: 7px;
  text-overflow: clip;
  text-transform: uppercase;
}

.login-card-red {
  color: #b63f46;
}

.login-pot {
  position: absolute;
  top: 43%;
  left: calc(50% + 104px);
  display: flex;
  align-items: center;
}

.login-pot i {
  width: 21px;
  height: 21px;
  margin-left: -9px;
  border: 4px dashed #f3e2b3;
  border-radius: 50%;
  background: #b73f48;
}

.login-pot i:nth-child(2) {
  background: #2b8a82;
}

.login-pot i:nth-child(3) {
  background: #293749;
}

.login-pot span {
  margin-left: 8px;
  color: #ecddac;
  font-size: 10px;
  font-weight: 800;
}

.login-character {
  position: absolute;
  z-index: 3;
  width: clamp(112px, 16vw, 184px);
  height: auto;
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.48));
}

.login-character-left {
  bottom: 12%;
  left: 4%;
}

.login-character-center {
  right: 50%;
  bottom: 1%;
  transform: translateX(50%);
}

.login-character-right {
  right: 3%;
  bottom: 14%;
}

.login-panel {
  align-self: center;
  width: min(420px, calc(100% - 48px));
  margin: 40px auto;
  padding: 34px;
  border: 1px solid var(--login-border);
  border-radius: 8px;
  background: var(--login-surface);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
}

.login-panel-heading h2 {
  margin: 0;
  font-size: 30px;
}

.login-panel-heading > p:last-child {
  margin: 12px 0 28px;
  color: var(--login-muted);
  font-size: 14px;
  line-height: 1.5;
}

.login-primary,
.login-secondary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.login-primary {
  gap: 11px;
  padding: 0 15px;
  border: 1px solid var(--login-cyan);
  background: var(--login-cyan);
  color: #061013;
}

.login-primary:hover {
  background: #77e5ea;
}

.login-primary-mark {
  width: 13px;
  height: 13px;
  border: 4px solid currentColor;
  border-radius: 50%;
}

.login-arrow {
  margin-left: auto;
  font-size: 18px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0;
  color: #778493;
  font-size: 11px;
  text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
  height: 1px;
  flex: 1;
  background: var(--login-border);
  content: "";
}

.login-secondary {
  border: 1px solid rgba(229, 189, 82, 0.48);
  color: #f1d98f;
}

.login-secondary:hover {
  border-color: var(--login-gold);
  background: rgba(229, 189, 82, 0.08);
}

.login-demo-note {
  margin: 12px 0 24px;
  color: #8996a4;
  font-size: 11px;
  line-height: 1.5;
}

.login-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--login-border);
  color: #9eabb9;
  font-size: 10px;
  text-transform: uppercase;
}

.login-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.login-trust i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--login-positive);
  box-shadow: 0 0 10px rgba(134, 221, 115, 0.45);
}

.login-primary:focus-visible,
.login-secondary:focus-visible,
.login-skip:focus-visible {
  outline: 3px solid var(--login-gold);
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-stage {
    min-height: 56vh;
    border-right: 0;
    border-bottom: 1px solid var(--login-border);
  }

  .login-stage-copy {
    width: min(680px, 100%);
    margin: 46px 0 14px;
  }

  .login-stage-copy h1 {
    font-size: clamp(36px, 9vw, 58px);
  }

  .login-table-scene {
    height: 250px;
    margin-bottom: -12%;
  }

  .login-panel {
    margin: 32px auto;
  }
}

@media (max-width: 560px) {
  .login-stage {
    min-height: 49vh;
    padding: 22px;
  }

  .login-stage-copy {
    margin-top: 36px;
  }

  .login-stage-copy > p:last-child {
    font-size: 14px;
  }

  .login-table-scene {
    width: 112%;
    height: 190px;
    margin-left: -6%;
  }

  .login-table-felt {
    border-width: 10px;
  }

  .login-character {
    width: 98px;
  }

  .login-card {
    width: 31px;
    height: 44px;
    padding: 4px;
  }

  .login-card b {
    font-size: 14px;
  }

  .login-pot {
    display: none;
  }

  .login-panel {
    width: calc(100% - 28px);
    margin: 14px auto 28px;
    padding: 26px 20px;
  }
}

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

@media (forced-colors: active) {
  .login-primary,
  .login-secondary,
  .login-panel,
  .login-brand-mark {
    border: 1px solid ButtonText;
  }

  .login-primary {
    background: ButtonFace;
    color: ButtonText;
  }
}
