/* Copied from production apps/web-app/src/features/landing/styles/landing-auth.css (origin/main, Nov 24 2026).
   Prototype changes: fonts load from the splash prototype, the dialog sits inside the
   onboarding screen (absolute, not fixed), and the passkey-link option rows are added at the end. */
@font-face { font-family: "Lucid Neue Montreal"; font-weight: 400; font-display: swap; src: url("../assets/fonts/PPNeueMontreal-Regular-v3.woff2") format("woff2"); }
@font-face { font-family: "Lucid Neue Montreal"; font-weight: 500; font-display: swap; src: url("../assets/fonts/PPNeueMontreal-Medium-v3.woff2") format("woff2"); }
/* The public entry has no Tailwind bundle; portal styles must be self-contained. */

.landing-auth-backdrop {
  position: absolute;
  inset: 0;
  z-index: 200;
  background: rgb(0 0 0 / 20%);
  backdrop-filter: blur(12px);
  opacity: 1;
  transition: opacity 300ms;
}
.landing-auth-modal {
  box-sizing: border-box;
  width: 440px;
  padding: 120px 32px 48px;
  border: 0;
  border-radius: 40px;
  background: #0a0a0a;
  color: white;
  font-family: "Lucid Neue Montreal", ui-sans-serif, system-ui, sans-serif;
  text-align: center;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  box-shadow:
    0 40px 80px rgb(0 0 0 / 28%),
    0 12px 32px rgb(0 0 0 / 14%);
}
.landing-auth-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 12px;
  text-align: left;
  font-size: 0.875rem;
  line-height: 1.5;
}
.landing-auth-notice span {
  flex: 1;
}
.landing-auth-notice button {
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  display: grid;
  place-items: center;
}
.landing-auth-modal {
  --modal-scale: 0.75;
  position: absolute;
  z-index: 201;
  top: 50%;
  left: 50%;
  max-width: calc((100vw - 32px) / var(--modal-scale));
  max-height: calc((100% - 32px) / var(--modal-scale));
  overflow-y: auto;
  display: block;
  translate: none;
  scale: none;
  transform: translate(-50%, -50%) scale(var(--modal-scale));
  opacity: 1;
  outline: none;
  transition:
    opacity 350ms,
    transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}
.landing-auth-modal[data-starting-style],
.landing-auth-modal[data-ending-style] {
  opacity: 0;
  transform: translate(-50%, calc(-50% + 24px)) scale(calc(var(--modal-scale) * 0.97));
}
.landing-auth-backdrop[data-starting-style],
.landing-auth-backdrop[data-ending-style] {
  opacity: 0;
}
.landing-auth-modal button,
.landing-auth-modal a {
  -webkit-tap-highlight-color: transparent;
}
.landing-auth-modal button {
  box-sizing: border-box;
  cursor: pointer;
  font-family: inherit;
}
.landing-auth-modal button:disabled {
  cursor: wait;
  opacity: 0.65;
}
.landing-auth-modal :is(button, a):focus-visible {
  outline: 2px solid rgb(255 255 255 / 60%);
  outline-offset: 3px;
}
.landing-auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 12%);
  color: white;
  display: grid;
  place-items: center;
}
.landing-auth-state {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}
.landing-auth-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.landing-auth-symbol {
  width: 76px;
  height: 76px;
  margin-bottom: 32px;
  flex-shrink: 0;
  animation: landing-auth-assemble 1100ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes landing-auth-assemble {
  from {
    opacity: 0;
    transform: scale(0.7) rotate(-120deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.landing-auth-title,
.landing-auth-head [data-slot="dialog-title"] {
  margin: 0;
  /* Focused programmatically after a mode swap; it is not a control, so no ring. */
  outline: none;
  font-size: 2rem;
  line-height: 1.125;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: white;
}
.landing-auth-description,
.landing-auth-head [data-slot="dialog-description"] {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25rem;
  letter-spacing: 0.02em;
  color: rgb(255 255 255 / 60%);
}
.landing-auth-buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.landing-auth-sso {
  width: 100%;
  min-height: 3.5rem;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 1.0625rem 0.75rem;
  border: 1px solid;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
}
.landing-auth-sso img {
  flex-shrink: 0;
}
.landing-auth-sso.is-last-used {
  position: relative;
  padding-right: 4rem;
}
.landing-auth-sso.google {
  color: black;
  background: white;
  border-color: white;
}
.landing-auth-sso.google:hover {
  background: #fafafa;
}
.landing-auth-sso.apple {
  color: white;
  background: black;
  border-color: rgb(255 255 255 / 12%);
}
.landing-auth-sso.apple:hover {
  background: #222;
}
.landing-auth-legal {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: rgb(255 255 255 / 60%);
}
.landing-auth-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.landing-auth-swap {
  margin: -56px 0 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
  letter-spacing: 0.02em;
  color: rgb(255 255 255 / 60%);
}
.landing-auth-swap button {
  padding: 0;
  border: 0;
  background: none;
  color: white;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.landing-auth-error {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: white;
}
@media (max-width: 700px) {
  .landing-auth-modal {
    --modal-scale: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .landing-auth-modal,
  .landing-auth-backdrop {
    transition: none;
  }
  .landing-auth-symbol {
    animation: none;
  }
}

.landing-auth-email-toggle {
  padding: 8px;
  border: 0;
  background: none;
  color: rgb(255 255 255 / 70%);
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.landing-auth-email-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
  text-align: left;
}
.landing-auth-email-form label {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgb(255 255 255 / 80%);
}
.landing-auth-email-form input {
  box-sizing: border-box;
  width: 100%;
  height: 3.25rem;
  padding: 0 16px;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 12px;
  background: rgb(255 255 255 / 8%);
  color: white;
  font: inherit;
  font-size: 1rem;
  line-height: normal;
}
.landing-auth-email-form input:focus-visible {
  outline: 2px solid rgb(255 255 255 / 60%);
  outline-offset: 2px;
}
.landing-auth-email-form input:disabled {
  opacity: 0.65;
}
.landing-auth-email-form button {
  margin-top: 8px;
}

/* The public document has no Tailwind; the dialog renders outside `.lucid-landing`. */
.landing-auth-modal .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Prototype only. */
.landing-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.landing-auth-modal h2, .landing-auth-modal p { font-family: inherit; }
.landing-auth-sso svg { flex-shrink: 0; }
.landing-auth-option {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-align: left;
  border: 1px solid rgb(255 255 255 / 12%); border-radius: 24px; background: rgb(255 255 255 / 6%); color: white;
}
.landing-auth-option:hover { background: rgb(255 255 255 / 10%); }
.landing-auth-option-icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / 10%); }
.landing-auth-option-copy { display: grid; gap: 4px; min-width: 0; }
.landing-auth-option-copy strong { font-size: 1rem; font-weight: 500; line-height: 1.25rem; letter-spacing: 0.01em; }
.landing-auth-option-copy small { font-size: 0.8125rem; line-height: 1.125rem; letter-spacing: 0.02em; color: rgb(255 255 255 / 60%); }
/* Proposed (Nov 24 2026): Google, Apple and passkey are equal choices, so all three are white.
   Production's Apple button is still black. */
.landing-auth-sso.apple, .landing-auth-sso.passkey { color: black; background: white; border-color: white; }
.landing-auth-sso.apple:hover, .landing-auth-sso.passkey:hover { background: #fafafa; }
/* Second full-width choice on Test your passkey: outlined, so Test your passkey stays the first choice. */
.landing-auth-sso.secondary { color: white; background: transparent; border-color: rgb(255 255 255 / 32%); }
.landing-auth-sso.secondary:hover { background: rgb(255 255 255 / 8%); }
/* Linking stages: less room between the heading and the choices than sign-in has. */
.landing-auth-state.is-compact { gap: 40px; }
.landing-auth-qr { width: 216px; height: 216px; margin: 0 auto; padding: 16px; box-sizing: border-box; border-radius: 24px; background: white; }
.landing-auth-status { margin: 4px 0 8px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 0.875rem; line-height: 1.25rem; letter-spacing: 0.02em; color: rgb(255 255 255 / 70%); }
.landing-auth-status-dot { width: 8px; height: 8px; border-radius: 999px; background: rgb(255 255 255 / 60%); }
.landing-auth-status-check { width: 20px; height: 20px; border-radius: 999px; background: white; color: black; display: grid; place-items: center; }
/* Plaid opens over the landing in a dialog-sized frame. */
.landing-plaid-frame { position: absolute; z-index: 201; top: 50%; left: 50%; width: 400px; height: min(680px, calc(100% - 48px)); transform: translate(-50%, -50%); border-radius: 28px; overflow: hidden; box-shadow: 0 40px 80px rgb(0 0 0 / 28%); }
