/* Public account entry: the landing's paper language, with a focused form. */
@font-face {
  font-family: "Auth childhood hand";
  src: url("/assets/patrick-hand-fbe99e22.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.auth-design-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--landing-border);
  border-radius: 4px;
  background: var(--landing-surface);
  color: var(--landing-ink);
  font: 500 14px/1.3 var(--auth-body-font);
  cursor: pointer;
}
.auth-design-toggle:focus-visible { outline: 2px solid #315F87; outline-offset: 3px; }
html[data-auth-design] .guest-header__brand { min-height: 44px; }
html[data-auth-design] .guest-header__account-link { display: inline-flex; align-items: center; justify-content: center; }

html[data-auth-design="childhood"] {
  --landing-bg: #B9CCBC;
  --landing-surface: #F8F5EE;
  --landing-ink: #34392F;
  --landing-secondary: #485244;
  --landing-border: #77715F;
  --landing-accent: #E8CA8D;
  --ink-dark: #34392F;
  --ink-soft: #485244;
  --leather-brown: #2E5272;
  --sepia-line: #9B967F;
  --danger: #9D342C;
  --accent-blue: #2E5272;
  --auth-paper-texture: url("/assets/childhood/paper-fibre-d9f1fc2a.png"), url("/assets/childhood/paper-relief-35b718a9.png"), url("/assets/childhood/paper-cloud-c163c491.png");
  --auth-paper-sizes: 240px 240px, 192px 192px, 720px 720px;
  --auth-fine-texture: url("/assets/childhood/paper-fibre-d9f1fc2a.png"), url("/assets/childhood/paper-slip-af6e82a8.png"), url("/assets/childhood/paper-cloud-c163c491.png");
  --auth-fine-sizes: 240px 240px, 128px 128px, 720px 720px;
  --auth-paper-shadow: 1px 2px 0 #D8CEB6, 0 10px 22px -14px rgb(41 53 40 / 40%);
}
html[data-auth-design="childhood"] .auth-entry-page {
  --auth-display-font: "Auth childhood hand", Georgia, serif;
  --auth-body-font: "Auth childhood hand", "Trebuchet MS", sans-serif;
  --font-serif: "Auth childhood hand", Georgia, serif;
  --font-sans: "Auth childhood hand", "Trebuchet MS", sans-serif;
  --text-xs: 16px;
  --text-sm: 18px;
  --text-md: 20px;
}
html[data-auth-design="childhood"] .auth-entry-page::before {
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgb(255 255 255 / 8%) 3px 4px), repeating-linear-gradient(90deg, transparent 0 3px, rgb(67 98 70 / 4%) 3px 4px);
}
html[data-auth-design="childhood"] .guest-header {
  margin: 10px 14px 0;
  background: var(--auth-paper-texture), var(--landing-surface);
  background-size: var(--auth-paper-sizes);
  border: 1px solid transparent;
  border-image: url("/assets/childhood/paper-edge-3e4f4e8a.svg") 6 / 6px / 2px stretch;
  box-shadow: 0 3px 5px rgb(51 55 44 / 16%);
}
html[data-auth-design="childhood"] .guest-header__brand-name { font-size: 32px; font-weight: 400; letter-spacing: 0; }
html[data-auth-design="childhood"] .auth-story h1 { font-size: clamp(44px, 5.1vw, 72px); line-height: 1.04; color: #2E5272; letter-spacing: 0; font-weight: 400; }
html[data-auth-design="childhood"] .auth-story h1 em { color: inherit; letter-spacing: 0; background: linear-gradient(177deg, transparent 64%, #F2DD88C9 66% 91%, transparent 93%); }
html[data-auth-design="childhood"] .auth-story__kicker { font-size: 16px; letter-spacing: .02em; text-transform: none; font-weight: 400; }
html[data-auth-design="childhood"] .auth-story__intro { font-size: 21px; line-height: 1.5; }
html[data-auth-design="childhood"] .auth-entry-card {
  background: var(--auth-paper-texture), var(--landing-surface);
  background-size: var(--auth-paper-sizes);
  border: 1px solid transparent;
  border-image: url("/assets/childhood/paper-edge-3e4f4e8a.svg") 6 / 6px / 2px stretch;
  border-radius: 3px;
  box-shadow: var(--auth-paper-shadow);
}
html[data-auth-design="childhood"] .auth-entry-card::before {
  content: "";
  position: absolute;
  top: -12px;
  left: calc(50% - 42px);
  width: 84px;
  height: 25px;
  background: repeating-linear-gradient(90deg, transparent 0 9px, rgb(255 255 255 / 24%) 9px 10px), #E8CA8DD9;
  clip-path: polygon(1% 4%, 98% 0, 100% 25%, 98% 48%, 100% 73%, 97% 100%, 1% 96%, 3% 70%, 0 45%);
  transform: rotate(-5deg);
  pointer-events: none;
}
html[data-auth-design="childhood"] .auth-page-card__title { font-size: 38px; font-weight: 400; letter-spacing: 0; }
html[data-auth-design="childhood"] :is(.auth-page-card__label, .auth-page-card__footer-link, .guest-header__link, .auth-trust-list strong) { font-weight: 400; }
html[data-auth-design="childhood"] .auth-memory-preview {
  color: #2E5272;
  background: linear-gradient(90deg, transparent 22px, #D9776A99 22px 23px, transparent 23px), url("/assets/childhood/writing-rule-38326613.svg"), var(--auth-paper-texture), var(--landing-surface);
  background-size: auto, 100% 28px, var(--auth-paper-sizes);
  border: 1px solid var(--landing-border);
  border-image: url("/assets/childhood/pencil-frame-43fe9b19.svg") 12 / 8px / 1px stretch;
  border-radius: 3px;
  box-shadow: var(--auth-paper-shadow);
  transform: none;
}
html[data-auth-design="childhood"] .auth-memory-preview::before {
  content: "";
  position: absolute;
  top: -16px;
  left: calc(50% - 19px);
  width: 38px;
  height: 46px;
  background: url("/assets/childhood/pushpin-e3110781.svg") center / contain no-repeat;
  pointer-events: none;
}
html[data-auth-design="childhood"] .auth-memory-preview :is(h2, p:not(.auth-memory-preview__journal)) { color: #2E5272; font-weight: 400; letter-spacing: 0; }
html[data-auth-design="childhood"] .auth-memory-preview > p:not(.auth-memory-preview__journal) { font-size: 20px; line-height: 28px; }
html[data-auth-design="childhood"] :is(.auth-memory-preview__topline, .auth-memory-preview__journal, .auth-memory-preview__footer) { font-size: 15px; letter-spacing: 0; text-transform: none; }
html[data-auth-design="childhood"] .auth-trust-list__mark { border: 0; color: #456745; font-size: 22px; }
html[data-auth-design="childhood"] :is(.auth-page-card__input, .auth-page-card__submit, .auth-page-card__google-button, .guest-header__link, .auth-design-toggle) {
  border: 1px solid var(--landing-border);
  border-image: url("/assets/childhood/ink-frame-979fd19b.svg") 12 / 9px / 1px stretch;
  border-radius: 3px;
  background-color: var(--landing-surface);
  background-image: var(--auth-fine-texture);
  background-size: var(--auth-fine-sizes);
  color: var(--landing-ink);
  font-weight: 400;
  box-shadow: 0 1px 1px rgb(51 46 35 / 15%);
}
html[data-auth-design="childhood"] .auth-page-card__input { color: #2E5272; font-size: 20px; }
html[data-auth-design="childhood"] .auth-page-card__input::placeholder { color: var(--landing-secondary); opacity: 1; }
html[data-auth-design="childhood"] .auth-page-card__input[aria-invalid="true"] { border-image: none; border: 2px solid var(--danger); }
html[data-auth-design="childhood"] .auth-page-card__submit { background-color: #F3DE88; }
html[data-auth-design="childhood"] :is(.auth-page-card__submit, .auth-page-card__google-button):hover { color: var(--landing-ink); background-color: #E8CA8D; box-shadow: 0 2px 2px rgb(51 46 35 / 22%); transform: none; }
html[data-auth-design="childhood"] :is(.auth-page-card__submit, .auth-page-card__google-button):active { box-shadow: inset 0 1px 2px rgb(51 46 35 / 18%); }
html[data-auth-design="childhood"] :is(.auth-page-card__submit, .auth-page-card__google-button):disabled { opacity: .6; box-shadow: none; cursor: default; }
html[data-auth-design="childhood"] .auth-entry-page :is(input, button, a):focus-visible,
html[data-auth-design="childhood"] .auth-page-card__input:focus { outline: 2px solid #315F87; outline-offset: 3px; box-shadow: none; }
html[data-auth-design="childhood"] .auth-page-card__context { font-family: var(--auth-body-font); background: var(--auth-fine-texture), #DCE8ED; background-size: var(--auth-fine-sizes); border-radius: 3px; }
html[data-auth-design="childhood"] .auth-page-card__flash-message { background: var(--auth-fine-texture), #F6D7CA; background-size: var(--auth-fine-sizes); border-radius: 3px; }
html[data-auth-design="childhood"] .auth-page-card__field-hint a { color: #2E5272; text-decoration: underline; text-underline-offset: 3px; }
html[data-auth-design="childhood"] .auth-footer { background: var(--auth-paper-texture), var(--landing-surface); background-size: var(--auth-paper-sizes); border-top: 0; }

@media (max-width: 620px) {
  html[data-auth-design] .guest-header__inner { padding: 8px; min-height: 60px; gap: 8px; }
  html[data-auth-design] .guest-header__nav { gap: 6px; }
  html[data-auth-design] :is(.guest-header__link, .auth-design-toggle) { padding: 8px; white-space: nowrap; font-size: 12px; }
  html[data-auth-design="childhood"] .guest-header { margin: 8px 8px 0; }
  html[data-auth-design="childhood"] .guest-header__brand-name { font-size: 24px; }
  html[data-auth-design="childhood"] :is(.guest-header__link, .auth-design-toggle) { font-size: 16px; }
  html[data-auth-design="childhood"] .auth-story h1 { font-size: clamp(36px, 10vw, 48px); }
  html[data-auth-design="childhood"] .signups-page .auth-story h1 { font-size: clamp(28px, 8vw, 38px); }
  html[data-auth-design="childhood"] .auth-page-card__title { font-size: 32px; }
  html[data-auth-design="childhood"] .auth-entry__layout { gap: 32px; }
}
@media (forced-colors: active) {
  html[data-auth-design="childhood"] .auth-entry-page,
  html[data-auth-design="childhood"] .auth-entry-page * { background-image: none !important; border-image: none !important; box-shadow: none !important; }
  html[data-auth-design="childhood"] :is(.auth-entry-card, .auth-memory-preview)::before,
  html[data-auth-design="childhood"] .auth-entry-page::before { display: none; }
  html[data-auth-design="childhood"] .auth-entry-card { border-color: CanvasText; }
}
