body.utility-page {
  background: #020202;
}

.utility-page,
.utility-page * {
  box-sizing: border-box;
}

.utility-page #navbar + .noise,
.utility-page #navbar + .scanlines {
  pointer-events: none;
}

.auth-page {
  display: block !important;
  min-height: 100svh;
  padding: 108px 24px 138px;
  overflow-x: hidden;
}

.auth-page > .w-full {
  width: min(100%, 460px) !important;
  max-width: 460px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.auth-page > .w-full > .text-center {
  margin-bottom: 22px !important;
}

.auth-page > .w-full > .text-center > a:first-child {
  display: none !important;
}

.auth-page .mono-tag {
  line-height: 1.45;
  text-align: center;
}

.auth-page .auth-card {
  width: 100%;
  padding: clamp(24px, 4vw, 34px) !important;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    #050505;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
}

.auth-page .auth-card h1 {
  margin: 0 0 24px !important;
  font-size: clamp(34px, 8vw, 48px) !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  overflow-wrap: anywhere;
}

.auth-page .auth-card.text-center h1 {
  font-size: clamp(28px, 7vw, 40px) !important;
  line-height: 1.08 !important;
}

.auth-page form.space-y-4 {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-page form.space-y-4 > * {
  margin-top: 0 !important;
}

.auth-page label.block {
  margin-bottom: 8px !important;
  line-height: 1.35;
}

.auth-page label.flex {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  line-height: 1.45 !important;
}

.auth-page input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.auth-page .auth-input {
  min-height: 52px;
  border-radius: 6px;
  line-height: 1.35;
}

.auth-page .auth-error {
  border-radius: 6px;
}

.auth-page .btn-primary-forge,
.auth-page .btn-stealth {
  min-height: 52px;
  width: 100%;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
}

.auth-page .auth-card + p,
.auth-page .auth-card p {
  line-height: 1.55;
}

.auth-page .status-icon {
  margin-bottom: 18px !important;
}

.legal-page {
  display: block;
  min-height: 100svh;
  padding-bottom: 128px;
  overflow-x: hidden;
}

.legal-page .doc-wrap {
  width: min(100%, 900px);
  max-width: 900px;
  padding: 128px 28px 96px !important;
}

.legal-page .doc-wrap > a:first-child {
  display: none !important;
}

.legal-page .doc-wrap h1 {
  margin-bottom: 12px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0 !important;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.legal-page .doc-wrap .updated {
  margin-bottom: 40px;
  line-height: 1.4;
}

.legal-page .doc-wrap h2 {
  margin-top: 38px;
  line-height: 1.35;
}

.legal-page .doc-wrap p,
.legal-page .doc-wrap li {
  font-size: 15px;
  line-height: 1.8;
}

.legal-page .doc-wrap .req-table {
  table-layout: fixed;
}

.legal-page .doc-wrap .req-table td {
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.not-found-page main {
  min-height: 100svh !important;
  padding-top: 112px !important;
}

.not-found-page h1,
.not-found-page h2 {
  letter-spacing: 0 !important;
}

.not-found-page main .flex.flex-wrap {
  display: flex;
  gap: 14px;
}

.not-found-page .btn-primary-forge,
.not-found-page .btn-stealth {
  min-height: 52px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
}

.utility-page #sw-cookie {
  left: 24px;
  right: 24px;
  bottom: 18px;
  width: min(calc(100% - 48px), 920px);
  margin: 0 auto;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.36);
}

.utility-page #sw-cookie p {
  max-width: 720px;
}

.utility-page #sw-cookie-btn {
  border-radius: 6px;
  min-height: 42px;
}

@media (max-width: 720px) {
  .auth-page {
    padding: 92px 24px 164px;
  }

  .auth-page > .w-full {
    width: 100% !important;
  }

  .auth-page .auth-card {
    padding: 24px !important;
  }

  .auth-page .auth-card h1 {
    font-size: clamp(32px, 10vw, 42px) !important;
  }

  .auth-page .auth-card.text-center h1 {
    font-size: clamp(28px, 7.8vw, 34px) !important;
  }

  .legal-page {
    padding-bottom: 168px;
  }

  .legal-page .doc-wrap {
    padding: 112px 24px 76px !important;
  }

  .legal-page .doc-wrap h1 {
    font-size: clamp(24px, 7vw, 30px);
    line-height: 1.12;
  }

  .legal-page .doc-wrap .req-table,
  .legal-page .doc-wrap .req-table tbody,
  .legal-page .doc-wrap .req-table tr,
  .legal-page .doc-wrap .req-table td {
    display: block;
    width: 100% !important;
  }

  .legal-page .doc-wrap .req-table tr {
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: none;
  }

  .legal-page .doc-wrap .req-table tr:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .legal-page .doc-wrap .req-table td {
    border: none !important;
    padding: 10px 12px !important;
  }

  .legal-page .doc-wrap .req-table td:first-child {
    padding-bottom: 2px !important;
    font-size: 12px;
  }

  .not-found-page main {
    align-items: flex-start !important;
    padding-top: 104px !important;
  }

  .not-found-page main .container {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .not-found-page main .flex.flex-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .not-found-page .btn-primary-forge,
  .not-found-page .btn-stealth {
    width: min(100%, 320px);
  }

  .utility-page #sw-cookie {
    left: 16px;
    right: 16px;
    bottom: 14px;
    width: calc(100% - 32px);
    align-items: flex-start;
  }

  .utility-page #sw-cookie-btn {
    width: 132px;
  }
}
