/* Sign in / create account — split brand panel + form (pre-centered). */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-page .skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 500;
  padding: 10px 16px;
  background: var(--yellow);
  color: var(--navy);
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.auth-page .skip:focus {
  top: calc(var(--auth-nav) + 12px);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.auth-page {
  --auth-pad: clamp(28px, 5vw, 64px);
  --auth-nav: 56px;
  background: #07172a;
}

.auth-page .nav {
  background: #07172a;
  backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: none;
}

.auth-page .nav-links a,
.auth-page .nav-quiet {
  color: rgba(255, 255, 255, .82);
}

.auth-page .nav-links a:hover,
.auth-page .nav-quiet:hover {
  color: #fff;
  opacity: 1;
}

.auth-page .brand-word {
  color: #fff;
}

.auth-page .brand-word b {
  color: var(--yellow);
}

.auth-shell {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100dvh;
  height: 100dvh;
  padding-top: var(--auth-nav);
  box-sizing: border-box;
  overflow: hidden;
  background-color: #07172a;
  background-image: url("assets/auth/brand-bg.svg?v=19");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.auth-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 78% 70% at 42% 40%, #000 18%, transparent 78%);
  mask-image: radial-gradient(ellipse 78% 70% at 42% 40%, #000 18%, transparent 78%);
}

.auth-shell-in {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  align-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 440px);
  align-items: safe center;
  justify-content: space-between;
  column-gap: clamp(32px, 4vw, 64px);
  width: var(--container);
  max-width: var(--container);
  min-width: 0;
  margin-inline: auto;
  min-height: 0;
  overflow: auto;
  padding-block: clamp(24px, 3.5vh, 40px);
  box-sizing: border-box;
}

.auth-products {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 6px 0 0;
  overflow: hidden;
  padding: 16px 0 0;
  border-top: 1px solid rgba(232, 238, 246, .14);
  box-sizing: border-box;
}

.auth-products-loop {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
}

.auth-products-track {
  display: flex;
  width: max-content;
  max-width: none;
  will-change: transform;
  backface-visibility: hidden;
  animation: auth-products-scroll 42s linear infinite;
}

.auth-products-loop:hover .auth-products-track {
  animation-play-state: paused;
}

@keyframes auth-products-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.auth-products-list {
  display: flex;
  flex: none;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0 6px;
  list-style: none;
}

.auth-products-list li {
  flex: none;
}

.auth-products-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(232, 238, 246, .16);
  color: rgba(255, 255, 255, .88);
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}

.auth-products-list a:hover {
  background: rgba(248, 180, 0, .16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(248, 180, 0, .45);
}

.auth-brand {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0;
  color: #fff;
  background: transparent;
}

.auth-brand-in {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 40rem;
  display: grid;
  gap: 18px;
  padding-top: 10px;
  padding-left: 14px;
  box-sizing: border-box;
}

.auth-brand .eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  overflow: visible;
}

.auth-brand .live-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, .55);
  animation: auth-live-ping 2.2s ease-out infinite;
}

@keyframes auth-live-ping {
  70%, 100% { box-shadow: 0 0 0 10px transparent; }
}

.auth-brand h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 750;
  letter-spacing: -.034em;
  line-height: 1.08;
  text-wrap: balance;
}

.auth-brand .mark {
  background-image: linear-gradient(transparent 68%, var(--yellow) 68% 88%, transparent 88%);
}

.auth-brand .lede {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  max-width: 34em;
}

.auth-feats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
  margin: 8px 0 0;
  padding: 18px 0 0;
  list-style: none;
  max-width: none;
  border: 0;
  border-top: 1px solid rgba(232, 238, 246, .16);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.auth-feats li {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  padding: 0;
  border: 0;
}

.auth-feat-ic {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #07172a;
  background: linear-gradient(165deg, #ffd24d 0%, var(--yellow) 58%, #e0a200 100%);
  box-shadow:
    0 8px 16px -12px rgba(248, 180, 0, .75),
    inset 0 1px 0 rgba(255, 255, 255, .4);
}

.auth-feat-ic .ic {
  width: 17px;
  height: 17px;
}

.auth-feat-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.auth-feats strong {
  display: block;
  margin: 0;
  color: #fff;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -.015em;
  line-height: 1.25;
}

.auth-feats p {
  margin: 0;
  color: rgba(232, 238, 246, .68);
  font-size: 12px;
  font-weight: 450;
  line-height: 1.4;
}

.auth-panel {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  min-width: 0;
  padding: 4px 0;
  background: transparent;
}

.auth-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  display: grid;
  gap: 20px;
  padding: 32px 32px 28px;
  border-radius: 18px;
  background-color: #fff;
  background-image: url("assets/auth/card-bg.svg?v=3");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(11, 37, 69, .07),
    0 1px 0 rgba(255, 255, 255, .8),
    0 24px 52px -24px rgba(7, 23, 42, .55);
}

.auth-card > * {
  position: relative;
  z-index: 1;
}

.auth-card-logo {
  display: flex;
  justify-content: center;
  margin: 2px 0 4px;
  line-height: 0;
}

.auth-card-logo img {
  display: block;
  width: auto;
  height: 52px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(11, 37, 69, .06);
  box-shadow: inset 0 0 0 1px rgba(11, 37, 69, .1);
}

.auth-tabs button {
  border: 0;
  border-radius: 9px;
  padding: 10px 14px;
  background: transparent;
  color: rgba(11, 37, 69, .58);
  font: inherit;
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
  transition: background .22s ease, color .22s ease, box-shadow .22s ease;
}

.auth-tabs button:hover {
  color: var(--navy);
}

.auth-tabs button[aria-selected="true"] {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .12) inset,
    0 8px 16px -10px rgba(11, 37, 69, .55);
}

.auth-tabs button[aria-selected="true"]:hover {
  color: #fff;
}

.auth-card-head {
  display: grid;
  gap: 6px;
  margin-top: 0;
}

.auth-card-head h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--navy);
  text-align: center;
}

.auth-card-head p {
  margin: 0;
  color: var(--mute);
  font-size: 13.5px;
  font-weight: 450;
  line-height: 1.4;
  text-align: center;
}

.auth-form {
  display: grid;
  gap: 0;
}

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

.auth-field {
  display: grid;
  gap: 7px;
  margin: 0;
}

.auth-label-text {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--navy-3);
}

.auth-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  border: 0;
  border-radius: 10px;
  background: #f7f9fc;
  box-shadow: inset 0 0 0 1px rgba(11, 37, 69, .08);
  font: inherit;
  font-size: 15px;
  font-weight: 450;
  color: var(--navy);
  transition: box-shadow .25s ease, background .25s ease;
}

.auth-form input::placeholder {
  color: rgba(75, 85, 99, .55);
  font-weight: 400;
}

.auth-form input:hover {
  box-shadow: inset 0 0 0 1px rgba(11, 37, 69, .14);
}

.auth-form input:focus {
  outline: none;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--navy-2), 0 0 0 3px rgba(2, 65, 123, .1);
}

.auth-pass {
  position: relative;
  display: block;
}

.auth-pass input {
  padding-right: 46px;
}

.auth-eye {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--mute);
  cursor: pointer;
}

.auth-eye:hover {
  color: var(--navy);
  background: rgba(11, 37, 69, .05);
}

.auth-eye .ic {
  width: 17px;
  height: 17px;
}

.auth-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  margin: 2px 0 0;
  font-size: 13.5px;
  font-weight: 450;
  line-height: 1.4;
  color: var(--body);
  cursor: pointer;
}

.auth-check input {
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--navy-2);
}

.auth-check-terms {
  align-items: flex-start;
}

.auth-check-terms a {
  color: var(--navy-2);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.auth-field.is-bad .auth-check {
  color: #b42318;
}

.auth-forgot {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--navy-2);
  cursor: pointer;
  text-decoration: none;
}

.auth-forgot:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.auth-form .btn {
  width: 100%;
  margin-top: 6px;
}

.auth-err {
  display: none;
  margin: 0;
  font-size: 12px;
  font-weight: 450;
  color: #b42318;
}

.auth-field.is-bad input {
  box-shadow: inset 0 0 0 1px #b42318, 0 0 0 3px rgba(180, 35, 24, .1);
}

.auth-field.is-bad .auth-err {
  display: block;
}

.auth-ok {
  display: none;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: inset 0 0 0 1px #a7f3d0;
}

.auth-form.is-sent .auth-ok {
  display: block;
}

.auth-form.is-sent .auth-fields {
  display: none;
}

/* Live form states: the server's answer, the activation resend, the
   referral note and the two-step code form. `hidden` has to beat the display
   rules above and the create / sign-in switches below. */
.auth-card [hidden] {
  display: none !important;
}

.auth-notices {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.auth-notices:not(:has(> :not([hidden]))) {
  display: none;
}

.auth-alert {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.auth-alert-ok {
  background: #ecfdf5;
  color: #065f46;
  box-shadow: inset 0 0 0 1px #a7f3d0;
}

.auth-alert-bad {
  background: #fef3f2;
  color: #b42318;
  box-shadow: inset 0 0 0 1px #fecdca;
}

.auth-ref {
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fffaeb;
  color: var(--navy);
  font-size: 13px;
  font-weight: 450;
  line-height: 1.4;
  box-shadow: inset 0 0 0 1px #fde7a8;
}

.auth-form button:disabled,
.auth-sso button:disabled,
.auth-forgot:disabled {
  opacity: .6;
  cursor: default;
}

#auth-mfa-code {
  letter-spacing: .18em;
}

.auth-alt {
  display: grid;
  gap: 14px;
  padding-top: 6px;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--mute);
  font-size: 11px;
  font-weight: 450;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: rgba(11, 37, 69, .08);
}

.auth-sso {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-sso button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(11, 37, 69, .1);
  transition: box-shadow .25s ease, background .25s ease, transform .2s ease;
}

.auth-sso button:hover {
  background: #f7f9fc;
  box-shadow: inset 0 0 0 1px rgba(11, 37, 69, .16);
}

.auth-sso button:active {
  transform: translateY(1px);
}

.auth-sso-ic {
  width: 20px;
  height: 20px;
  flex: none;
  display: block;
}

.auth-form .auth-create-only {
  display: none !important;
}

.auth-form[data-mode="create"] .auth-field.auth-create-only {
  display: grid !important;
}

/* Turnstile draws nothing until Cloudflare wants a click, so the empty box
   takes no room. */
.auth-form[data-mode="create"] .auth-turnstile.auth-create-only {
  display: block !important;
  max-width: 100%;
  overflow: hidden;
}

.auth-form[data-mode="create"] .auth-turnstile.auth-create-only:empty {
  display: none !important;
}

.auth-form[data-mode="create"] .auth-signin-only {
  display: none !important;
}

@media (max-width: 1100px) {
  .auth-feats {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 12px;
  }

  .auth-feats li {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px 0;
    border-top: 1px solid rgba(232, 238, 246, .12);
  }

  .auth-feats li:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .auth-feats li:last-child {
    padding-bottom: 0;
  }

  .auth-feat-copy {
    padding-top: 1px;
  }
}

@media (max-width: 960px) {
  .auth-shell {
    height: auto;
    min-height: 100dvh;
  }

  .auth-shell-in {
    grid-template-columns: 1fr;
    min-height: 0;
    overflow: visible;
    gap: 28px;
    padding-block: 28px 24px;
  }

  .auth-panel {
    order: -1;
    justify-content: stretch;
  }

  .auth-brand {
    order: 1;
  }

  .auth-brand-in {
    max-width: 34rem;
    margin-inline: auto;
  }

  .auth-card {
    max-width: 460px;
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .auth-shell-in {
    gap: 24px;
    padding-block: 20px 28px;
  }

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

  .auth-brand h1 {
    font-size: clamp(1.9rem, 8vw, 2.4rem);
  }

  .auth-card {
    max-width: none;
    padding: 28px 20px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-tabs button,
  .auth-sso button,
  .auth-form input {
    transition: none;
  }

  .auth-products-loop {
    -webkit-mask-image: none;
    mask-image: none;
    overflow: hidden;
  }

  .auth-products-track {
    animation: none;
    transform: none !important;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .auth-products-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
  }

  .auth-products-list[aria-hidden="true"] {
    display: none;
  }
}
