.qx-auth {
  --qx-bg: #000;
  --qx-card: #151515;
  --qx-line: rgba(255, 255, 255, .08);
  --qx-line-strong: #2e2e2e;
  --qx-text: #fff;
  --qx-muted: #9a9a9a;
  --qx-soft: #626262;
  --qx-green: #4fff8a;
  --qx-mint: #4fff8a;
  --qx-red: #ff6251;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--qx-bg);
  color: var(--qx-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.qx-auth a {
  color: inherit;
  text-decoration: none;
}

.qx-auth button,
.qx-auth input {
  font: inherit;
}

.qx-auth-header {
  min-height: 88px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.qx-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qx-auth-brand .brand-word {
  color: #fff;
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.qx-auth-brand .brand-mark {
  position: relative;
  width: 38px;
  height: 20px;
  display: inline-block;
}

.qx-auth-brand .brand-mark::before,
.qx-auth-brand .brand-mark::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 22px;
  height: 16px;
  border: 4px solid #fff;
  border-radius: 7px;
  transform: skewX(-24deg);
}

.qx-auth-brand .brand-mark::before { left: 0; }
.qx-auth-brand .brand-mark::after { right: 0; }

.qx-auth-header nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qx-auth-header nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 0 14px;
  color: var(--qx-muted);
  font-size: 14px;
  font-weight: 700;
}

.qx-auth-header nav a:hover {
  color: var(--qx-text);
  background: rgba(255, 255, 255, .07);
  border-color: var(--qx-line);
}

.qx-auth-header .qx-auth-nav-cta {
  background: var(--qx-green);
  border-color: transparent;
  color: #000 !important;
}

.qx-auth-main {
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 32px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 440px);
  gap: 44px;
  align-items: center;
}

.qx-auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--qx-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.qx-auth-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--qx-green);
  box-shadow: 0 0 0 7px rgba(21, 209, 125, .13);
}

.qx-auth-info h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: .98;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.qx-auth-info p {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--qx-muted);
  font-size: 18px;
  line-height: 1.7;
  font-weight: 500;
}

.qx-auth-mini-terminal {
  max-width: 460px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 30px;
}

.qx-auth-mini-terminal div {
  padding: 18px;
  border: 1px solid #303030;
  border-radius: 20px;
  background: linear-gradient(180deg, #191919, #101010);
}

.qx-auth-mini-terminal span,
.qx-auth-mini-terminal strong {
  display: block;
}

.qx-auth-mini-terminal span {
  color: var(--qx-soft);
  font-size: 12px;
  font-weight: 600;
}

.qx-auth-mini-terminal strong {
  margin-top: 8px;
  font-size: 16px;
}

.qx-auth-card {
  width: 100%;
  padding: 26px;
  border: 1px solid var(--qx-line-strong);
  border-radius: 30px;
  background: linear-gradient(180deg, #1a1a1a, #101010);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .45);
}

.qx-auth-card-head span {
  color: var(--qx-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.qx-auth-card-head h2 {
  margin: 8px 0 0;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.qx-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 24px 0;
  padding: 5px;
  border: 1px solid var(--qx-line);
  border-radius: 16px;
  background: #0b0b0b;
}

.qx-auth-tabs a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--qx-muted);
  font-size: 14px;
  font-weight: 700;
}

.qx-auth-tabs a.active {
  background: rgba(255, 255, 255, .09);
  color: var(--qx-text);
}

.qx-auth-errors {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 98, 81, .34);
  border-radius: 14px;
  background: rgba(255, 98, 81, .11);
  color: #ffb2aa;
  font-size: 13px;
  line-height: 1.5;
}

.qx-auth-form {
  display: grid;
  gap: 16px;
}

.qx-field {
  display: grid;
  gap: 8px;
}

.qx-field label {
  color: var(--qx-muted);
  font-size: 13px;
  font-weight: 600;
}

.qx-field label span {
  color: var(--qx-soft);
  font-weight: 700;
}

.qx-field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--qx-line-strong);
  border-radius: 15px;
  background: #090909;
  color: var(--qx-text);
  padding: 0 15px;
  font-size: 16px;
}

.qx-field input::placeholder {
  color: rgba(246, 255, 251, .32);
}

.qx-field input:focus {
  outline: 3px solid rgba(21, 209, 125, .28);
  border-color: rgba(21, 209, 125, .72);
}

.qx-uppercase {
  text-transform: uppercase;
}

.qx-field-note {
  margin: -2px 0 0;
  color: var(--qx-soft);
  font-size: 12px;
  line-height: 1.45;
}

.qx-ref-active {
  color: var(--qx-green);
}

.qx-password-wrap {
  position: relative;
}

.qx-password-wrap input {
  padding-right: 76px;
}

.qx-password-toggle {
  position: absolute;
  right: 8px;
  top: 8px;
  min-width: 58px;
  height: 36px;
  border: 1px solid var(--qx-line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .07);
  color: var(--qx-text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.qx-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--qx-muted);
  font-size: 13px;
}

.qx-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-weight: 700;
}

.qx-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--qx-green);
}

.qx-unavailable {
  color: var(--qx-soft);
  text-align: right;
}

.qx-auth-submit {
  min-height: 54px;
  border: 0;
  border-radius: 13px;
  background: var(--qx-green);
  color: #000 !important;
  cursor: pointer;
  box-shadow: none;
  font-size: 15px;
  font-weight: 700;
}

.qx-auth-switch {
  margin: 20px 0 0;
  color: var(--qx-muted);
  text-align: center;
  font-size: 14px;
}

.qx-auth-switch a {
  color: var(--qx-green);
  font-weight: 700;
}

.qx-auth a:focus-visible,
.qx-auth button:focus-visible,
.qx-auth input:focus-visible {
  outline: 3px solid rgba(21, 209, 125, .55);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .qx-auth-main {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }

  .qx-auth-info {
    text-align: center;
  }

  .qx-auth-info h1,
  .qx-auth-info p,
  .qx-auth-mini-terminal {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 540px) {
  .qx-auth-header,
  .qx-auth-main {
    width: min(100% - 24px, 1180px);
  }

  .qx-auth-header {
    min-height: 72px;
    padding: 0;
  }

  .qx-auth-brand .brand-word {
    font-size: 25px;
  }

  .qx-auth-brand .brand-mark {
    transform: scale(.82);
    transform-origin: left center;
  }

  .qx-auth-header nav a:not(.qx-auth-nav-cta) {
    display: none;
  }

  .qx-auth-info h1 {
    font-size: 38px;
  }

  .qx-auth-info p {
    font-size: 15px;
  }

  .qx-auth-mini-terminal {
    grid-template-columns: 1fr;
  }

  .qx-auth-card {
    padding: 20px;
    border-radius: 22px;
  }

  .qx-auth-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .qx-unavailable {
    text-align: left;
  }
}
