/* CallPutFinder sign-in shell: responsive product layout scoped to /login. */

body.alpha-auth-shell {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 12%, var(--tx-selected), transparent 28rem),
    radial-gradient(circle at 92% 88%, var(--tx-selected), transparent 30rem),
    var(--tx-bg);
}

html[data-theme] body.alpha-auth-shell {
  background:
    radial-gradient(circle at 8% 12%, var(--tx-selected), transparent 28rem),
    radial-gradient(circle at 92% 88%, var(--tx-selected), transparent 30rem),
    var(--tx-bg);
}

.alpha-auth-page {
  height: auto;
  min-height: 100dvh;
  overflow: auto;
  padding: clamp(1rem, 2vw, 2rem);
}

.alpha-auth-layout {
  width: min(90rem, 100%);
  height: min(52rem, calc(100dvh - 2rem));
  min-height: min(44rem, calc(100dvh - 2rem));
  grid-template-columns: minmax(31rem, 1.08fr) minmax(27rem, 0.92fr);
  border-radius: 1.75rem;
  box-shadow: 0 28px 80px color-mix(in srgb, #020617 38%, transparent);
}

.alpha-auth-story {
  padding: clamp(2.25rem, 3.5vw, 3.5rem);
  background:
    radial-gradient(circle at 12% 8%, var(--tx-selected), transparent 22rem),
    var(--tx-surface);
}

.alpha-auth-story-copy {
  margin-top: clamp(2rem, 4vh, 3.35rem);
}

.alpha-auth-brand .cpf-lockup img,
.alpha-auth-mobile-brand .cpf-lockup img {
  width: 100%;
  height: auto !important;
}

.alpha-auth-brand .cpf-lockup,
.alpha-auth-mobile-brand .cpf-lockup {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, #18e7f2 48%, transparent);
  border-radius: 1rem;
  background: #031126;
  box-shadow: 0 18px 44px color-mix(in srgb, #031126 34%, transparent);
}

.alpha-auth-story-copy h2 {
  font-size: clamp(2.45rem, 3.25vw, 3.45rem);
}

.alpha-auth-story-copy > p:last-child {
  line-height: 1.62;
}

.alpha-auth-capabilities {
  gap: 0.68rem;
  margin-top: clamp(1.45rem, 3vh, 2.25rem);
}

.alpha-auth-capability-tag {
  flex-basis: 5.35rem;
}

.alpha-auth-market-card > div {
  padding: 0.85rem;
}

.alpha-auth-card {
  display: grid;
  place-items: center;
  max-height: none;
  padding: clamp(1.5rem, 3vw, 3rem);
  background:
    radial-gradient(circle at 50% 28%, var(--tx-selected), transparent 24rem),
    var(--tx-surface);
}

.alpha-auth-card-shell {
  width: min(33.5rem, 100%);
  max-height: calc(100dvh - 6rem);
  overflow-y: auto;
  border: 1px solid var(--tx-border);
  border-radius: 1.35rem;
  background: color-mix(in srgb, var(--tx-raised) 92%, transparent);
  padding: clamp(1.45rem, 2.6vw, 2rem);
  box-shadow: 0 22px 55px color-mix(in srgb, #020617 18%, transparent);
  scrollbar-color: var(--tx-border) transparent;
  scrollbar-width: thin;
}

.alpha-auth-mobile-brand {
  display: none;
}

.alpha-auth-card-top {
  align-items: flex-start;
}

.alpha-auth-card-top h1 {
  font-size: clamp(2.25rem, 3vw, 3rem);
}

.alpha-auth-theme {
  min-width: 3.25rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.alpha-auth-content {
  overflow: visible;
  padding-right: 0;
}

.alpha-auth-primary-access {
  gap: 0.72rem;
}

.alpha-auth-google {
  min-height: 3.55rem;
  border-radius: 1rem;
  background: var(--tx-surface);
  padding: 0.9rem 1rem;
  box-shadow: 0 10px 28px color-mix(in srgb, #020617 12%, transparent);
  touch-action: manipulation;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.alpha-auth-google:hover {
  border-color: var(--tx-accent);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--tx-accent) 14%, transparent);
}

.alpha-auth-google:active {
  transform: translateY(0);
}

.alpha-auth-google-icon {
  width: 1.45rem;
  height: 1.45rem;
}

.alpha-auth-google-help {
  max-width: 30rem;
  line-height: 1.55;
}

.alpha-auth-legal {
  margin-top: 1.2rem;
}

.alpha-auth-google:focus-visible,
.alpha-auth-theme:focus-visible,
.alpha-auth-submit:focus-visible,
.alpha-auth-tabs button:focus-visible,
.alpha-auth-form input:focus-visible,
.alpha-auth-form select:focus-visible,
.alpha-auth-signup input:focus-visible,
.alpha-auth-signup select:focus-visible {
  outline: 3px solid var(--tx-accent);
  outline-offset: 3px;
}

@media (max-width: 1180px) and (min-width: 961px) {
  .alpha-auth-page {
    padding: 0.9rem;
  }

  .alpha-auth-layout {
    height: calc(100dvh - 1.8rem);
    min-height: 0;
    grid-template-columns: minmax(26rem, 1.04fr) minmax(25rem, 0.96fr);
  }

  .alpha-auth-story {
    padding: 2rem;
  }

  .alpha-auth-story-copy {
    margin-top: 1.75rem;
  }

  .alpha-auth-story-copy h2 {
    font-size: clamp(2.2rem, 4vw, 3rem);
  }

  .alpha-auth-card {
    padding: 1.25rem;
  }

  .alpha-auth-card-shell {
    padding: 1.5rem;
  }
}

@media (max-width: 960px) {
  body.alpha-auth-shell {
    padding-bottom: 0 !important;
  }

  .alpha-auth-page {
    align-items: flex-start;
    overflow: visible;
    padding: 0.75rem;
  }

  .alpha-auth-layout {
    width: min(46rem, 100%);
    height: auto;
    min-height: calc(100dvh - 1.5rem);
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .alpha-auth-card {
    order: -1;
  }

  .alpha-auth-story {
    border-right: 0;
    border-top: 1px solid var(--tx-border);
    border-bottom: 0;
    padding: 2rem 2.25rem;
  }

  .alpha-auth-story-copy {
    margin-top: 1.5rem;
  }

  .alpha-auth-story-copy h2 {
    max-width: 38rem;
    font-size: clamp(2.2rem, 6vw, 2.75rem);
  }

  .alpha-auth-capabilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.5rem;
  }

  .alpha-auth-market-card,
  .alpha-auth-trust {
    display: none;
  }

  .alpha-auth-card {
    max-height: none;
    padding: 2rem 2.25rem 2.35rem;
  }

  .alpha-auth-card-shell {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 640px) {
  body.alpha-auth-shell {
    overscroll-behavior-y: none;
  }

  .alpha-auth-page {
    padding: 0;
  }

  .alpha-auth-layout {
    width: 100%;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .alpha-auth-story {
    display: none;
  }

  .alpha-auth-card {
    align-items: start;
    min-height: 100dvh;
    margin-top: 0;
    border-radius: 0;
    background: var(--tx-surface);
    padding:
      max(1.2rem, env(safe-area-inset-top))
      max(1.15rem, env(safe-area-inset-right))
      max(1.5rem, env(safe-area-inset-bottom))
      max(1.15rem, env(safe-area-inset-left));
    box-shadow: none;
  }

  .alpha-auth-card-shell {
    width: 100%;
    max-height: none;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }

  .alpha-auth-mobile-brand {
    display: flex;
    align-items: center;
    min-height: 3.5rem;
    margin-bottom: clamp(2.25rem, 10vh, 4.5rem);
  }

  .alpha-auth-mobile-brand .cpf-mobile-login-lockup {
    width: min(13rem, 76vw);
  }

  .alpha-auth-card-top .alpha-auth-eyebrow {
    font-size: 0.63rem;
    letter-spacing: 0.13em;
  }

  .alpha-auth-card-top {
    gap: 1rem;
  }

  .alpha-auth-card-top h1 {
    font-size: clamp(2rem, 10vw, 2.45rem);
  }

  .alpha-auth-card-top #authSubtitle {
    max-width: 17rem;
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .alpha-auth-theme {
    min-width: 3rem;
    min-height: 3rem;
    padding: 0.5rem;
  }

  .alpha-auth-content {
    margin-top: 1rem;
  }

  .alpha-auth-google {
    min-height: 3.5rem;
    gap: 0.75rem;
    padding: 0.88rem 0.95rem;
  }

  .alpha-auth-google span {
    font-size: 0.92rem;
  }

  .alpha-auth-google small {
    display: none;
  }

  .alpha-auth-google-help {
    font-size: 0.68rem;
  }

  .alpha-auth-tabs,
  .alpha-auth-form input,
  .alpha-auth-signup input,
  .alpha-auth-signup select,
  .alpha-auth-submit {
    min-height: 3rem;
  }

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

  .alpha-auth-signup-grid .is-wide {
    grid-column: auto;
  }

  .alpha-auth-legal {
    margin-top: 1.1rem;
    padding-top: 0.9rem;
    font-size: 0.64rem;
    line-height: 1.55;
  }

  body.tradex-onboarding .alpha-auth-card {
    min-height: 100dvh;
    margin-top: 0;
    border-radius: 0;
  }
}

@media (min-width: 961px) and (max-height: 760px) {
  .alpha-auth-page {
    padding: 0.75rem;
  }

  .alpha-auth-layout {
    height: calc(100dvh - 1.5rem);
    min-height: 0;
  }

  .alpha-auth-story {
    padding: 1.5rem 2rem;
  }

  .alpha-auth-story-copy {
    margin-top: 1.25rem;
  }

  .alpha-auth-story-copy h2 {
    margin-top: 0.55rem;
    font-size: clamp(2rem, 3.5vw, 2.55rem);
  }

  .alpha-auth-story-copy > p:last-child {
    margin-top: 0.75rem;
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .alpha-auth-capabilities {
    gap: 0.45rem;
    margin-top: 1rem;
  }

  .alpha-auth-capabilities small {
    line-height: 1.25;
  }

  .alpha-auth-market-card > div {
    padding: 0.7rem;
  }

  .alpha-auth-trust {
    margin-top: 0.65rem;
  }

  .alpha-auth-card {
    padding: 1.25rem;
  }

  .alpha-auth-card-shell {
    max-height: calc(100dvh - 4rem);
    padding: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .alpha-auth-google,
  .alpha-auth-theme,
  .alpha-auth-submit {
    transition: none;
  }

  .alpha-auth-google:hover {
    transform: none;
  }
}
