@import url("https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600&display=swap");

:root {
  --bg: #dcdcdc;
  --panel: #efefef;
  --stroke: #000000;
  --shadow: rgba(0, 0, 0, 0.12);
  --font: "Futura PT", "Jost", "Century Gothic", "Tw Cen MT", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  font-family: var(--font);
  background: var(--bg);
  overflow: hidden;
}

.scene-viewport {
  position: relative;
  width: 100vw;
  height: 100dvh;
  height: var(--app-height, 100dvh);
  overflow: hidden;
  background: #dcdcdc;
}

.scene {
  position: absolute;
  width: 1920px;
  height: 940px;
  left: 0;
  top: 0;
  transform-origin: top left;
}

.panel {
  position: absolute;
  background: var(--panel);
  border: 6px solid rgba(0, 0, 0, 1);
  box-shadow: 0 10px 30px var(--shadow);
  overflow: hidden;
}

.panel-logo {
  width: 1200px;
  height: 600px;
  left: -8%;
  top: -40%;
  transform: rotate(-45deg);
}

.mobile-logo-panel {
  display: none;
}

.logo-text {
  position: absolute;
  left: 28px;
  bottom: 18px;
  margin: 0;
  font-family: var(--font);
  font-size: 180px;
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.08em;
  color: #000000;
}

.panel-login {
  width: 1380px;
  height: 600px;
  left: 25%;
  top: -10%;
  --shift-x: 0px;
  --shift-y: 0px;
  transform: translate(var(--shift-x), var(--shift-y)) rotate(-45deg);
  transition: transform 0.25s ease;
}

.panel-login.is-shifted {
  --shift-x: 24px;
  --shift-y: -24px;
}

.panel-register {
  width: 910px;
  height: 300px;
  right: 12%;
  bottom: -5%;
  --shift-x: 0px;
  --shift-y: 0px;
  transform: translate(var(--shift-x), var(--shift-y)) rotate(-45deg);
  transition: transform 0.25s ease;
  cursor: pointer;
}

.panel-register.is-shifted {
  --shift-x: -24px;
  --shift-y: 24px;
}

.bg-shape {
  position: absolute;
  background: #b3b3b3;
  border: 3px solid rgb(0, 0, 0);
  pointer-events: none;
}

.bg-left-band {
  width: 520px;
  height: 1400px;
  left: 0px;
  top: -950px;
  background: #cacaca;
  transform: rotate(45deg);
}

.bg-left-band2 {
  width: 920px;
  height: 1400px;
  left: -230px;
  top: -500px;
  transform: rotate(45deg);
}

.bg-right-band {
  width: 360px;
  height: 1400px;
  right: 250px;
  top: -540px;
  transform: rotate(45deg);
}

.bg-right-light {
  width: 970px;
  height: 1400px;
  right: -640px;
  top: 20px;
  background: #e9e9e9;
  transform: rotate(45deg);
}

.bg-bottom-left {
  width: 540px;
  height: 740px;
  left: 10px;
  bottom: -400px;
  background: #d8d8d8;
  transform: rotate(45deg);
}

.marquee {
  position: absolute;
  left: 0;
  width: 220%;
  display: flex;
  align-items: center;
  gap: 2.2rem;
  white-space: nowrap;
  color: #111;
  will-change: transform;
  user-select: none;
}

.marquee span {
  flex: 0 0 auto;
}

.marquee-login {
  font-size: 100px;
  font-weight: 300;
  letter-spacing: 0.03em;
  animation: moveRight 18s linear infinite;
}

.login-form-wrap {
  position: absolute;
  right: 92%;
  bottom: -3%;
  width: min(420px, 46%);
  transform: rotate(45deg);
  transform-origin: right bottom;
}

.login-form {
  width: 100%;
  margin: 0;
  color: var(--stroke);
  text-align: right;
}

.field {
  display: block;
  position: relative;
  margin-bottom: 34px;
}

.field-login {
  margin-bottom: 30px;
  margin-right: -250px;
}

.field-password {
  margin-bottom: 30px;
  margin-right: -180px;
}

.field span {
  position: absolute;
  right: 0;
  top: -0.2em;
  font-size: 28px;
  letter-spacing: 0.02em;
}

.field input {
  width: 450px;
  border: none;
  border-bottom: 2px solid #000000;
  background: transparent;
  font-size: clamp(18px, 1.55vw, 24px);
  padding: 0 2px 7px;
  outline: none;
  color: #111;
}

.forgot {
  display: block;
  margin-left: 370px;
  margin-bottom: 90px;
  border: none;
  background: transparent;
  color: #7b7b7b;
  font-size: 20px;
  cursor: pointer;
  width: max-content;
}

.enter-btn {
  width: 180px;
  aspect-ratio: 2 / 1;
  display: block;
  margin: 0 0 0 auto;
  border: none;
  background: transparent;
  color: #1b1b1b;
  cursor: pointer;
  position: relative;
  padding: 0;
}

.enter-btn {
  width: 180px;
  aspect-ratio: 2 / 1;
  display: block;
  margin: 0 0 0 auto;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.enter-btn-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.enter-btn-shape polygon {
  fill: var(--panel);
  stroke: #000;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.enter-btn span {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  color: #1b1b1b;
}

.register-lines {
  position: absolute;
  inset: 0;
}

.marquee-register {
  font-size: 62px;
  letter-spacing: 0.025em;
  animation-name: moveRight;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.speed-1 {
  top: 4%;
  animation-duration: 12s;
}

.speed-2 {
  top: 28%;
  animation-duration: 18s;
}

.speed-3 {
  top: 52%;
  animation-duration: 9s;
}

.speed-4 {
  top: 76%;
  animation-duration: 15s;
}

@keyframes moveRight {
  from {
    transform: translateX(-48%);
  }
  to {
    transform: translateX(0%);
  }
}

@media (max-width: 768px) {
  .scene {
    width: 500px;
    height: 980px;
  }

  .bg-shape {
    display: none;
  }

  a.panel.panel-logo,
  .panel.panel-logo {
    display: none;
  }

  .mobile-logo-panel {
    display: block;
    width: 960px;
    height: 440px;
    left: -750px;
    top: 720px;
    transform: rotate(-45deg);
  }

  .mobile-logo-text {
    position: absolute;
    right: 24px;
    bottom: 24px;
    left: auto;
    margin: 0;
    font-family: var(--font);
    font-size: 100px;
    font-weight: 500;
    line-height: 0.82;
    letter-spacing: 0.08em;
    color: #000;
    text-align: right;
    width: max-content;
  }

  .panel-login {
    left: -180px;
    top: -250px;
  }

  .panel-register {
    right: -200px;
    bottom: -150px;
  }

  .field-login {
    margin-right: -100px;
  }

  .field-password {
    margin-right: -100px;
  }

  .field input {
    width: 70%;
  }

  .forgot {
    margin-left: 250px;
    margin-bottom: 20px;
  }

  .marquee-login {
    font-size: 120px;
    font-weight: 300;
    letter-spacing: 0.03em;
    animation: moveRight 18s linear infinite;
  }
}

a.panel,
a.logo-link,
a.register-link,
a.mobile-bottom-logo {
  display: block;
  color: inherit;
  text-decoration: none;
}

button,
input {
  font-family: var(--font);
}

.logo-link,
.register-link,
.route-copy,
.email-ribbon,
.pay-button,
.gb-button,
.request-btn,
.enter-btn,
.forgot,
.mini-btn,
.payment-overlay-confirm,
.account-overlay-confirm,
.account-telegram-link-btn {
  cursor: pointer;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #111;
  transition: background-color 9999s ease-in-out 0s;
}

.app-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.34);
}

.app-dialog-backdrop.open {
  display: flex;
}

.app-dialog {
  width: min(420px, 100%);
  padding: 26px 28px 24px;
  background: #efefef;
  border: 3px solid #111;
  box-shadow: 14px 14px 0 rgba(17, 17, 17, 0.28);
  color: #111;
  text-align: center;
}

.app-dialog h2 {
  margin: 0 0 12px;
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}

.app-dialog p {
  margin: 0 0 22px;
  font-size: 20px;
  line-height: 1.25;
}

.app-dialog button {
  min-width: 112px;
  min-height: 42px;
  border: 2px solid #111;
  background: #d0d0d0;
  color: #111;
  font-size: 22px;
  cursor: pointer;
}

.app-dialog-backdrop.is-error .app-dialog button {
  background: #f1f1f1;
}

.reset-panel .reset-form-wrap {
  bottom: 8%;
}

.reset-panel .reset-field-password {
  margin-right: -210px;
  margin-bottom: 58px;
}

@media (max-width: 768px) {
  .app-dialog {
    width: min(360px, 100%);
    padding: 22px;
  }

  .app-dialog h2 {
    font-size: 30px;
  }

  .app-dialog p {
    font-size: 18px;
  }
}
