:root {
  --xq-auth-ink: #171717;
  --xq-auth-paper: #fff8e9;
  --xq-auth-paper-light: #fffdf8;
  --xq-auth-orange: #f15a14;
  --xq-auth-green: #63b56c;
  --xq-auth-line: rgba(23, 23, 23, 0.18);
}

body.xq-auth-page {
  min-width: 320px;
  background: var(--xq-auth-paper) !important;
  color: var(--xq-auth-ink) !important;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.xq-auth-page .xq-auth-shell {
  min-height: 100svh;
  padding: 0 !important;
  background: var(--xq-auth-paper) !important;
}

body.xq-auth-page .xq-auth-background,
body.xq-auth-page .xq-auth-decoration {
  display: none !important;
}

body.xq-auth-page .xq-auth-content {
  position: relative;
  display: grid !important;
  grid-template-columns: 56% 44%;
  grid-template-rows: 1fr auto auto;
  grid-template-areas:
    "brand card"
    "brand switch"
    "brand footer";
  gap: 0;
  width: 100% !important;
  max-width: none !important;
  min-height: 100svh;
  margin: 0 !important;
  background: var(--xq-auth-paper);
  box-shadow: none;
}

body.xq-auth-page .xq-auth-content::before {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  width: 56%;
  height: 7px;
  background: var(--xq-auth-orange);
  content: "";
}

body.xq-auth-page .xq-auth-content::after {
  position: absolute;
  z-index: 4;
  top: 48px;
  right: 48px;
  color: var(--xq-auth-orange);
  content: "XQ / 07";
  font: 780 11px/1 "SFMono-Regular", Consolas, monospace;
}

body.xq-auth-page .xq-auth-brand {
  position: relative;
  grid-area: brand;
  align-self: stretch;
  min-width: 0;
  min-height: 100svh;
  margin: 0 !important;
  overflow: hidden;
  border-right: 1px solid var(--xq-auth-line);
  padding: 42px 54px 44px;
  background: var(--xq-auth-paper);
  text-align: left !important;
}

body.xq-auth-page .xq-auth-brand > .xq-auth-original-brand {
  display: none !important;
}

body.xq-auth-page .xq-auth-custom-brand {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  height: 100%;
  min-height: calc(100svh - 86px);
}

body.xq-auth-page .xq-auth-brand-header {
  position: relative;
  z-index: 3;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  color: var(--xq-auth-ink);
  font-size: 16px;
  font-weight: 820;
}

body.xq-auth-page .xq-auth-brand-header img {
  display: block;
  width: 42px;
  height: 42px;
  border: 1px solid var(--xq-auth-ink);
  border-radius: 4px;
  object-fit: cover;
}

body.xq-auth-page .xq-auth-brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

body.xq-auth-page .xq-auth-brand-name small {
  margin-top: 2px;
  color: var(--xq-auth-orange);
  font: 780 9px/1.2 "SFMono-Regular", Consolas, monospace;
}

body.xq-auth-page .xq-auth-hero-stage {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

body.xq-auth-page .xq-auth-story-copy {
  position: relative;
  z-index: 3;
  width: min(560px, 76%);
  flex: 0 0 auto;
  margin-top: 72px;
}

body.xq-auth-page .xq-auth-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--xq-auth-ink);
  font: 760 11px/1 "SFMono-Regular", Consolas, monospace;
}

body.xq-auth-page .xq-auth-kicker::before {
  width: 30px;
  height: 3px;
  background: var(--xq-auth-orange);
  content: "";
}

body.xq-auth-page .xq-auth-story-copy h1 {
  max-width: 560px;
  margin: 0 !important;
  color: var(--xq-auth-ink) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: 58px !important;
  font-weight: 860 !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
}

body.xq-auth-page .xq-auth-story-copy h1 span {
  color: var(--xq-auth-orange);
}

body.xq-auth-page .xq-auth-story-note {
  margin: 22px 0 0;
  color: var(--xq-auth-ink);
  font-size: 16px;
  font-weight: 560;
  line-height: 1.7;
}

body.xq-auth-page .xq-auth-scene {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(94%, 820px);
  min-height: 150px;
  flex: 1 1 auto;
  align-self: flex-end;
  margin-top: 18px;
  pointer-events: none;
  place-items: end;
}

body.xq-auth-page .xq-auth-scene img {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  transition: opacity 360ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

body.xq-auth-page .xq-auth-scene-normal {
  opacity: 1;
}

body.xq-auth-page .xq-auth-scene-private {
  opacity: 0;
}

body.xq-auth-page.xq-auth-private
  .xq-auth-scene.is-private-ready
  .xq-auth-scene-normal {
  opacity: 0;
}

body.xq-auth-page.xq-auth-private
  .xq-auth-scene.is-private-ready
  .xq-auth-scene-private {
  opacity: 1;
}

body.xq-auth-page .xq-auth-index {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--xq-auth-ink);
  font: 720 10px/1 "SFMono-Regular", Consolas, monospace;
}

body.xq-auth-page .xq-auth-index::before {
  width: 7px;
  height: 7px;
  border: 2px solid var(--xq-auth-orange);
  border-radius: 50%;
  content: "";
}

body.xq-auth-page .xq-auth-card {
  position: relative;
  grid-area: card;
  align-self: center;
  justify-self: center;
  width: min(450px, calc(100% - 80px));
  margin: 42px 0 12px;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.xq-auth-page .xq-auth-card::before {
  display: block;
  margin-bottom: 15px;
  color: var(--xq-auth-orange);
  content: "01 / SIGN IN";
  font: 780 11px/1 "SFMono-Regular", Consolas, monospace;
}

body.xq-auth-page[data-xq-auth-route="register"] .xq-auth-card::before {
  content: "01 / CREATE ACCOUNT";
}

body.xq-auth-page[data-xq-auth-route="forgot-password"]
  .xq-auth-card::before,
body.xq-auth-page[data-xq-auth-route="reset-password"]
  .xq-auth-card::before {
  content: "01 / RESET PASSWORD";
}

body.xq-auth-page .xq-auth-card > div {
  gap: 28px !important;
}

body.xq-auth-page .xq-auth-card h2,
body.xq-auth-page .xq-auth-card h2 + p {
  text-align: left !important;
}

body.xq-auth-page .xq-auth-card h2 {
  color: var(--xq-auth-ink) !important;
  font-size: 38px !important;
  font-weight: 840 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}

body.xq-auth-page .xq-auth-card h2 + p {
  margin-top: 13px !important;
  color: var(--xq-auth-ink) !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}

body.xq-auth-page .xq-auth-card form {
  gap: 20px !important;
}

body.xq-auth-page .xq-auth-card .input-label {
  margin-bottom: 9px;
  color: var(--xq-auth-ink) !important;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0 !important;
}

body.xq-auth-page .xq-auth-card .input {
  min-height: 54px;
  border: 1px solid rgba(23, 23, 23, 0.38) !important;
  border-radius: 4px !important;
  background: var(--xq-auth-paper-light) !important;
  color: var(--xq-auth-ink) !important;
  box-shadow: none !important;
  letter-spacing: 0 !important;
}

body.xq-auth-page .xq-auth-card .input:hover {
  border-color: var(--xq-auth-ink) !important;
}

body.xq-auth-page .xq-auth-card .input:focus {
  border-color: var(--xq-auth-orange) !important;
  box-shadow: 0 0 0 2px rgba(241, 90, 20, 0.14) !important;
}

body.xq-auth-page .xq-auth-card .input::placeholder {
  color: rgba(23, 23, 23, 0.46) !important;
}

body.xq-auth-page .xq-auth-card svg {
  color: var(--xq-auth-ink) !important;
}

body.xq-auth-page .xq-auth-card .btn-primary {
  min-height: 54px;
  border: 1px solid var(--xq-auth-orange) !important;
  border-radius: 4px !important;
  background: var(--xq-auth-orange) !important;
  color: var(--xq-auth-paper-light) !important;
  box-shadow: 5px 5px 0 var(--xq-auth-ink) !important;
  font-weight: 780;
  letter-spacing: 0 !important;
  transform: none !important;
}

body.xq-auth-page .xq-auth-card .btn-primary:hover {
  background: #df4e0d !important;
}

body.xq-auth-page .xq-auth-card .btn-primary:active {
  box-shadow: 2px 2px 0 var(--xq-auth-ink) !important;
  transform: translate(3px, 3px) !important;
}

body.xq-auth-page .xq-auth-card a,
body.xq-auth-page .xq-auth-switch a {
  color: var(--xq-auth-orange) !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.xq-auth-page .xq-auth-switch {
  grid-area: switch;
  justify-self: center;
  width: min(450px, calc(100% - 80px));
  margin: 0 !important;
  padding-top: 4px;
}

body.xq-auth-page .xq-auth-switch p {
  color: var(--xq-auth-ink) !important;
}

body.xq-auth-page .xq-auth-footer {
  grid-area: footer;
  justify-self: center;
  width: min(450px, calc(100% - 80px));
  margin: 22px 0 34px !important;
  color: var(--xq-auth-ink) !important;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px !important;
  letter-spacing: 0 !important;
}

@media (min-width: 721px) and (max-height: 920px) {
  body.xq-auth-page .xq-auth-brand {
    padding: 30px 42px 30px;
  }

  body.xq-auth-page .xq-auth-custom-brand {
    min-height: calc(100svh - 60px);
  }

  body.xq-auth-page .xq-auth-story-copy {
    width: min(540px, 82%);
    margin-top: 34px;
  }

  body.xq-auth-page .xq-auth-story-copy h1 {
    font-size: 46px !important;
  }

  body.xq-auth-page .xq-auth-story-note {
    margin-top: 12px;
    font-size: 14px;
  }

  body.xq-auth-page .xq-auth-scene {
    width: min(88%, 700px);
    min-height: 120px;
    margin-top: 8px;
  }

  body.xq-auth-page .xq-auth-card {
    margin-top: 24px;
  }

  body.xq-auth-page .xq-auth-card > div {
    gap: 20px !important;
  }

  body.xq-auth-page .xq-auth-card form {
    gap: 14px !important;
  }

  body.xq-auth-page .xq-auth-card .input,
  body.xq-auth-page .xq-auth-card .btn-primary {
    min-height: 48px;
  }

  body.xq-auth-page .xq-auth-footer {
    margin: 16px 0 22px !important;
  }
}

@media (max-width: 900px) {
  body.xq-auth-page .xq-auth-content {
    grid-template-columns: 52% 48%;
  }

  body.xq-auth-page .xq-auth-content::before {
    width: 52%;
  }

  body.xq-auth-page .xq-auth-brand {
    padding: 34px 30px 36px;
  }

  body.xq-auth-page .xq-auth-custom-brand {
    min-height: calc(100svh - 70px);
  }

  body.xq-auth-page .xq-auth-story-copy {
    width: 82%;
    margin-top: 44px;
  }

  body.xq-auth-page .xq-auth-story-copy h1 {
    font-size: 44px !important;
  }

  body.xq-auth-page .xq-auth-scene {
    width: 94%;
  }

  body.xq-auth-page .xq-auth-card,
  body.xq-auth-page .xq-auth-switch,
  body.xq-auth-page .xq-auth-footer {
    width: calc(100% - 56px);
  }
}

@media (max-width: 720px) {
  body.xq-auth-page .xq-auth-content {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "brand"
      "card"
      "switch"
      "footer";
  }

  body.xq-auth-page .xq-auth-content::before {
    width: 100%;
  }

  body.xq-auth-page .xq-auth-content::after {
    top: 354px;
    right: 24px;
  }

  body.xq-auth-page .xq-auth-brand {
    min-height: 380px;
    border-right: 0;
    border-bottom: 1px solid var(--xq-auth-line);
    padding: 30px 28px;
  }

  body.xq-auth-page .xq-auth-custom-brand {
    min-height: 319px;
  }

  body.xq-auth-page .xq-auth-brand-header img {
    width: 40px;
    height: 40px;
  }

  body.xq-auth-page .xq-auth-story-copy {
    width: 100%;
    margin-top: 24px;
  }

  body.xq-auth-page .xq-auth-kicker,
  body.xq-auth-page .xq-auth-index {
    display: none;
  }

  body.xq-auth-page .xq-auth-story-copy h1 {
    font-size: 32px !important;
  }

  body.xq-auth-page .xq-auth-story-note {
    max-width: 300px;
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.55;
  }

  body.xq-auth-page .xq-auth-scene {
    width: min(94%, 520px);
    min-height: 130px;
    margin-top: 8px;
  }

  body.xq-auth-page .xq-auth-card {
    width: calc(100% - 48px);
    margin: 54px auto 0;
  }

  body.xq-auth-page .xq-auth-card h2 {
    font-size: 32px !important;
  }

  body.xq-auth-page .xq-auth-switch {
    width: calc(100% - 48px);
    margin: 24px auto 0 !important;
  }

  body.xq-auth-page .xq-auth-footer {
    width: calc(100% - 48px);
    margin: 76px auto 28px !important;
    text-align: center;
  }
}

@media (max-width: 380px) {
  body.xq-auth-page .xq-auth-brand {
    padding-inline: 22px;
  }

  body.xq-auth-page .xq-auth-card,
  body.xq-auth-page .xq-auth-switch,
  body.xq-auth-page .xq-auth-footer {
    width: calc(100% - 36px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.xq-auth-page .xq-auth-scene-private,
  body.xq-auth-page *,
  body.xq-auth-page *::before,
  body.xq-auth-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
