@font-face {
  font-display: swap;
  font-family: Maison Neue;
  font-style: normal;
  font-weight: 600;
  src: url(/fonts/MaisonNeueExtended-Demi-BEvry19F.woff2) format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body.auth-page {
  background: #0a0a0a;
  color: #dbdbdb;
  font-family: Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.auth-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
}

.auth-header__logo img {
  display: block;
  height: 32px;
  width: auto;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: calc(100vh - 72px);
}

.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 48px 48px 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 30% 0%, rgba(252, 203, 147, 0.16), transparent 70%),
    #111111;
  border-right: 1px solid #242424;
}

.auth-aside__kicker {
  margin: 0 0 16px;
  color: #fccb93;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-aside__title {
  margin: 0 0 16px;
  max-width: 520px;
  color: #dbdbdb;
  font-family: Maison Neue, sans-serif;
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -1.04px;
  line-height: 1.12;
}

.auth-aside__title em {
  font-style: normal;
  color: #fccb93;
}

.auth-aside__text {
  margin: 0;
  max-width: 440px;
  color: #b1b1b1;
  font-size: 16px;
  line-height: 26px;
}

.auth-aside__cat {
  display: block;
  width: min(520px, 100%);
  height: auto;
  margin: auto auto 0;
  object-fit: contain;
  object-position: bottom center;
  pointer-events: none;
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 72px;
}

.auth-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  min-height: 680px;
  padding: 36px 32px 32px;
  border: 1px solid #242424;
  border-radius: 16px;
  background: #111111;
}

.auth-card.is-wide {
  max-width: 520px;
}

.auth-form {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.auth-form .auth-switch {
  margin-top: auto;
}

.auth-pay {
  display: none;
}

.auth-pay.is-on {
  display: block;
}

.auth-pay__step {
  margin: 0 0 8px;
  color: #fccb93;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-pay__methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.auth-pay__method {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 10px;
  border: 1px solid #242424;
  border-radius: 12px;
  background: #0a0a0a;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-pay__method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-pay__method:hover {
  border-color: #c49868;
}

.auth-pay__method:has(input:checked) {
  border-color: #fccb93;
  background: #161412;
  box-shadow: 0 0 24px rgba(252, 203, 147, 0.16);
}

.auth-pay__ticker {
  color: #dbdbdb;
  font-size: 14px;
  font-weight: 600;
}

.auth-pay__net {
  color: #b1b1b1;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-pay__warn {
  margin: 0 0 12px;
  color: #b1b1b1;
  font-size: 13px;
  line-height: 20px;
}

.auth-pay__box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #242424;
  border-radius: 12px;
  background: #0a0a0a;
}

.auth-pay__box-label {
  grid-column: 1 / -1;
  color: #b1b1b1;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-pay__address {
  min-width: 0;
  color: #fccb93;
  font-family: Inter, sans-serif;
  font-size: 13px;
  line-height: 20px;
  word-break: break-all;
}

.auth-pay__copy {
  height: 36px;
  padding: 0 12px;
  border: 1px solid #7f674d;
  border-radius: 8px;
  background: transparent;
  color: #fccb93;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.auth-pay__copy:hover {
  border-color: #fccb93;
}

.auth-pay__copied {
  display: none;
  margin: 0 0 16px;
  color: #fccb93;
  font-size: 13px;
}

.auth-pay__copied.is-on {
  display: block;
}

.auth-card__title {
  margin: 0 0 8px;
  color: #dbdbdb;
  font-family: Maison Neue, sans-serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.64px;
}

.auth-card__lead {
  margin: 0 0 28px;
  color: #b1b1b1;
  font-size: 14px;
  line-height: 22px;
}

.auth-plan-banner {
  display: none;
  margin: 0 0 24px;
  padding: 12px 14px;
  border: 1px solid #7f674d;
  border-radius: 12px;
  background: #161412;
  color: #fccb93;
  font-size: 13px;
  line-height: 20px;
}

.auth-plan-banner.is-on {
  display: block;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.auth-field label {
  color: #dbdbdb;
  font-size: 13px;
  font-weight: 500;
}

.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="text"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #242424;
  border-radius: 10px;
  background: #0a0a0a;
  color: #dbdbdb;
  font-family: Inter, sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input::placeholder {
  color: #6f6f6f;
}

.auth-field input:focus {
  border-color: #c49868;
  box-shadow: 0 0 0 3px rgba(252, 203, 147, 0.12);
}

.auth-password {
  position: relative;
}

.auth-password input {
  padding-right: 52px;
}

.auth-password__toggle {
  position: absolute;
  right: 6px;
  bottom: 6px;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #b1b1b1;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.auth-password__toggle:hover {
  color: #fccb93;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 20px;
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #b1b1b1;
  font-size: 13px;
  line-height: 20px;
}

.auth-check input {
  margin-top: 3px;
  accent-color: #fccb93;
}

.auth-check a,
.auth-switch a {
  color: #fccb93;
  text-decoration: none;
}

.auth-check a:hover,
.auth-switch a:hover {
  text-decoration: underline;
}

.auth-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}

.auth-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 10px;
  border: 1px solid #242424;
  border-radius: 12px;
  background: #0a0a0a;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-plan input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-plan:hover,
.auth-plan:has(input:focus-visible) {
  border-color: #c49868;
}

.auth-plan:has(input:checked) {
  border-color: #fccb93;
  background: #161412;
  box-shadow: 0 0 24px rgba(252, 203, 147, 0.16);
}

.auth-plan__name {
  color: #b1b1b1;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-plan__price {
  margin-top: 6px;
  color: #fccb93;
  font-family: Maison Neue, sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: #fccb93;
  color: #111111;
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-btn:hover,
.auth-btn:focus,
.auth-btn:active,
.auth-btn:visited {
  color: #111111;
  text-decoration: none;
}

.auth-btn:hover {
  box-shadow: 0 0 28px rgba(252, 203, 147, 0.28);
  transform: translateY(-1px);
}

.auth-btn--ghost {
  background: transparent;
  border: 1px solid #242424;
  color: #dbdbdb;
}

.auth-btn--ghost:hover,
.auth-btn--ghost:focus,
.auth-btn--ghost:active,
.auth-btn--ghost:visited {
  color: #dbdbdb;
  text-decoration: none;
}

.auth-btn--compact {
  width: auto;
  height: 40px;
  padding: 0 18px;
}

.auth-label {
  display: block;
  margin: 4px 0 8px;
  color: #dbdbdb;
  font-size: 13px;
  font-weight: 500;
}

.auth-check--terms {
  margin-bottom: 20px;
}

.auth-switch {
  margin: 20px 0 0;
  text-align: center;
  color: #b1b1b1;
  font-size: 14px;
}

.auth-error {
  display: none;
  margin: 0 0 16px;
  color: #e08b8b;
  font-size: 13px;
}

.auth-error.is-on {
  display: block;
}

.auth-success {
  display: none;
  text-align: center;
}

.auth-success.is-on {
  display: block;
}

.auth-wait {
  display: none;
  text-align: center;
}

.auth-wait.is-on {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.auth-wait [data-wait-continue] {
  margin-top: auto;
}

.auth-wait .auth-card__title,
.auth-wait .auth-card__lead,
.auth-wait .auth-pay__step {
  text-align: left;
}

.auth-wait__spinner {
  width: 40px;
  height: 40px;
  margin: 8px auto 16px;
  border: 3px solid #242424;
  border-top-color: #fccb93;
  border-radius: 50%;
  animation: auth-spin 0.9s linear infinite;
}

.auth-wait__status {
  margin: 0 0 16px;
  color: #fccb93;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-wait__hold {
  margin: 0 0 20px;
  color: #b1b1b1;
  font-size: 13px;
  line-height: 20px;
  text-align: left;
}

.auth-wait__spinner.is-confirmed {
  animation: none;
  border-color: #fccb93;
  background: #fccb93;
  position: relative;
}

.auth-wait__spinner.is-confirmed::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 6px;
  width: 10px;
  height: 18px;
  border-right: 3px solid #111111;
  border-bottom: 3px solid #111111;
  transform: rotate(45deg);
}

.auth-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  pointer-events: none;
}

@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}

.auth-form.is-hidden {
  display: none;
}

.auth-success h2 {
  margin: 0 0 10px;
  color: #dbdbdb;
  font-family: Maison Neue, sans-serif;
  font-size: 28px;
}

.auth-success p {
  margin: 0 0 24px;
  color: #b1b1b1;
  font-size: 14px;
  line-height: 22px;
}

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

  .auth-aside {
    min-height: 0;
    padding: 32px 24px 0;
    border-right: 0;
    border-bottom: 1px solid #242424;
    justify-content: flex-start;
  }

  .auth-aside__title {
    font-size: 36px;
    letter-spacing: -0.72px;
  }

  .auth-aside__cat {
    width: 220px;
    margin: 20px auto 0;
  }

  .auth-header {
    padding: 16px 20px;
  }
}

@media (max-width: 520px) {
  .auth-card {
    padding: 28px 20px;
  }

  .auth-plans {
    grid-template-columns: 1fr;
  }

  .auth-pay__methods {
    grid-template-columns: 1fr 1fr;
  }
}
