/* Login page: the same top bar as pricing (logo, Back to website), then one centered column with the title and the card.
   The card's six-slot code field and the neutral account picker sit below. */
.login-page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* Shared footer fill is --color-lp-canvas, a different grey than this page. Keep one surface. */
.login-page .footer { background: transparent; }

.login .auth__intro {
  width: max-content;
  max-width: calc(100vw - 2 * var(--page-gutter));
}

.auth__lede {
  margin: var(--space-16) 0;
  color: var(--color-lp-subhead);
  font: var(--type-body-1-font);
  white-space: nowrap;
}

.login-page .auth__card { margin-top: 0; }

.auth__reassure a {
  display: block;
  color: var(--color-accent);
  text-underline-offset: 3px;
}

.auth__reassure a:hover { color: var(--color-bright-azure); }

.login__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  width: min(calc(100% - 2 * var(--page-gutter)), var(--section-track));
  margin-inline: auto;
  padding-block: var(--space-24);
}

.login__brand {
  display: inline-flex;
  color: inherit;
  text-decoration: none;
}

.login__logo { --elevate-logo-height: var(--space-32); }

.login__back {
  gap: var(--space-8);
  white-space: nowrap;
}

.login__back-icon {
  flex: none;
  width: var(--space-16);
  height: var(--space-16);
}

.login {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-32);
  padding: var(--space-48) var(--page-gutter);
}

@media (max-width: 420px) {
  .login__logo { --elevate-logo-height: var(--space-24); }
}

.login__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
}

.auth__otp {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-8);
  min-width: 0;
}

.auth__field .auth__otp-slot {
  width: 100%;
  min-width: 0;
  height: var(--space-48);
  padding: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.auth__chooser {
  display: grid;
  gap: var(--space-8);
  text-align: left;
}

.auth__chooser[hidden] { display: none; }

.auth__providers[hidden] { display: none; }

.auth__chooser-title {
  margin: 0;
  color: var(--color-lp-headline);
  font: var(--type-h4-font);
}

.auth__chooser-lede {
  margin: 0 0 var(--space-8);
  color: var(--color-lp-subhead);
  font: var(--type-body-2-font);
}

.auth__account {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  padding: var(--space-16);
  border: 1px solid rgb(17 17 17 / 10%);
  border-radius: 12px;
  background: var(--color-white);
}

.auth__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--space-40);
  height: var(--space-40);
  border-radius: 999px;
  background: var(--color-quiet-grey);
  color: var(--color-lp-headline);
  font: var(--type-body-2-font);
  font-weight: 600;
}

.auth__account-text {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
}

.auth__account-name {
  color: var(--color-lp-headline);
  font: var(--type-body-2-font);
  font-weight: 600;
}

.auth__account-email {
  color: var(--color-lp-subhead);
  font: var(--type-body-2-font);
  overflow-wrap: anywhere;
}

/* Phone width: every stack on the login page is a single column. The shared
   short-viewport rule in cta.css puts the provider buttons side by side, so
   this block overrides it (higher specificity via .login-page). */
@media (max-width: 743px) {
  .login-page .auth__providers {
    grid-template-columns: minmax(0, 1fr);
  }

  .login-page .auth__provider {
    min-height: var(--space-48);
    padding-inline: var(--space-16);
  }

  .login-page .auth__provider-prefix { display: inline; }

  .login-page .auth__input-row {
    flex-direction: column;
    align-items: stretch;
  }

  .login-page .auth__continue { width: 100%; }

  .login-page .auth__code-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
