/*
 * Sign-in pages (sign up, log in, two-step, links, reset) and the form pieces the account
 * screens share: fields with messages, the password reveal, the rules list and strength bars,
 * notes and alerts. Matches the public header and footer of the sales site.
 * Green, amber and red mean good, close and needs work only.
 */

.public {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  line-height: 1.55;
}

.public-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--hairline);
}

.public-header__brand {
  display: flex;
  align-items: center;
  gap: var(--logo-gap);
  min-height: 44px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.public-header__mark {
  flex: 0 0 auto;
  width: var(--logo-mark);
  height: var(--logo-mark);
}

.public-header__name {
  font-family: var(--font-wordmark);
  font-weight: var(--logo-name-weight);
  font-size: var(--logo-name-size);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.public-header__side {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.public-header__hint {
  color: var(--muted);
}

.pill-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border-field);
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}

.pill-link:hover {
  color: var(--ink);
  border-color: var(--indigo);
  transform: translateY(-1px);
}

.public-main {
  flex: 1 0 auto;
  width: 100%;
}

.public-main--card {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 56px 16px 64px;
}

.public-main--split {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
}

.public-footer {
  border-top: 1px solid var(--hairline);
}

.public-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 16px;
  font-size: 13px;
  color: var(--muted);
}

.public-footer__copy {
  padding: 12px 0;
}

.public-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

.public-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}

.public-footer__links a:hover {
  color: var(--indigo-text);
}

/* The log-in card ------------------------------------------------------------------------- */

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 36px 36px 32px;
  border: 1px solid var(--hairline);
  border-radius: 26px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-card__foot {
  padding-top: 16px;
  border-top: 1px solid var(--hairline-soft);
  font-size: 13px;
  color: var(--muted);
}

.auth-title {
  font-weight: 500;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.auth-title--small {
  font-size: 30px;
}

.auth-lead {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}

.stack-tight {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stack-none {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.center {
  text-align: center;
}

.row--between {
  justify-content: space-between;
}

.row--top {
  align-items: flex-start;
}

.row--tight {
  gap: 8px;
}

.row--baseline {
  align-items: baseline;
}

.wrap-anywhere {
  overflow-wrap: anywhere;
}

.big {
  font-size: 16px;
}

p {
  margin: 0;
}

.step-pill {
  align-self: flex-start;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.divider span {
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.round-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
}

.round-icon--large {
  width: 52px;
  height: 52px;
}

.round-icon--small {
  width: 36px;
  height: 36px;
  border-color: var(--border-control);
}

.back-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Buttons and links that the base sheet does not have ------------------------------------ */

.button--large {
  min-height: 48px;
  padding: 0 24px;
  font-size: 16px;
}

.button--dark {
  border-color: var(--ink);
}

.button--solid-danger {
  border-color: var(--red);
  background: var(--red);
  color: #ffffff;
}

.button--solid-danger:hover {
  color: #ffffff;
  border-color: var(--red);
}

.text-link,
.text-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--indigo-text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.text-button {
  color: var(--muted);
  font-weight: 400;
  text-decoration: none;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 500;
  font-size: 15px;
}

/* Log In With A Passkey and Add A Passkey wait hidden until static/auth/passkey.js has seen
   that the browser supports passkeys; their layout classes must not show them early. */
[data-passkey-signin][hidden],
[data-passkey-add][hidden],
[data-passkey-unsupported][hidden] {
  display: none !important;
}
