/* assistant-public.css — the Family Assistant's SIGNED-OUT pages: the
 * landing page (/assistant/), sign in and sign up.
 *
 * Its own sheet rather than common.css, which is the Creator app's (dark
 * green ground, global button and input rules). These pages are the front
 * door of a different product and carry its own look: pink/blue on soft
 * white, purple controls. Tokens match /css/assistant.css. */
@import url('/css/fonts.css');

:root {
  --pap-pink: #EC4899; --pap-blue: #3B82F6;
  --pap-ink: #22303A; --pap-muted: #5b6b78;
  --pap-purple-dark: #3B1F5C; --pap-purple: #5B2A86; --pap-purple-text: #4A2A6B;
  --pap-purple-border: #DCCEEE; --pap-purple-light: #F3EEFA; --pap-purple-pale: #F8F5FC;
  --pap-line: #e6ebf2;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body.pap {
  font-family: 'DM Sans', system-ui, sans-serif; color: var(--pap-ink); line-height: 1.6;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
  /* White, like the Creator pages. Was a pink-to-blue wash, which read dim. */
  background: #fff;
}
.pap h1, .pap h2, .pap h3 { font-family: 'Lora', Georgia, serif; color: var(--pap-ink); line-height: 1.15; margin: 0; }
.pap a { color: inherit; }
/* BUTTON INK BEATS THE LINK RESET. `.pap a` (0,1,1) out-ranks a single class
   (0,1,0), so a link styled as a button inherited the body's dark ink —
   dark text on the dark purple button, unreadable. Naming the element here
   puts the button's own colour back on top for <a> and <button> alike. */
.pap a.pap-btn-primary, .pap button.pap-btn-primary { color: #fff; }
.pap a.pap-btn-ghost, .pap button.pap-btn-ghost { color: var(--pap-purple-text); }
.pap-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.pap-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  padding: 12px 24px; border-radius: 12px; font-weight: 700; font-size: .98rem; text-decoration: none;
  border: none; cursor: pointer; font-family: inherit; transition: transform .15s, box-shadow .15s; width: auto; }
.pap-btn-primary { background: linear-gradient(135deg, var(--pap-purple-dark), var(--pap-purple)); color: #fff;
  box-shadow: 0 10px 24px rgba(91,42,134,.25); }
.pap-btn-primary:hover { transform: translateY(-2px); }
.pap-btn-primary:disabled { opacity: 1; background: #8a7aa3; transform: none; cursor: default; }
.pap-btn-ghost { background: #fff; color: var(--pap-purple-text); border: 1.5px solid var(--pap-purple-border); }
.pap-btn-ghost:hover { background: var(--pap-purple-pale); }

/* Top bar */
.pap-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.pap-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.pap-brand img { height: 38px; width: auto; }
.pap-brand-name { font-family: 'Lora', serif; font-weight: 600; font-size: 1.12rem; line-height: 1.1; }
.pap-brand-name small { display: block; font-family: 'DM Sans', sans-serif; font-size: .62rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--pap-pink); }
.pap-nav { display: flex; align-items: center; gap: 6px; }
.pap-nav a.pap-lnk { text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--pap-purple-text);
  padding: 10px 12px; border-radius: 999px; }
.pap-nav a.pap-lnk:hover { background: var(--pap-purple-light); }
.pap-nav .pap-btn { min-height: 42px; padding: 8px 16px; font-size: .9rem; }

/* Footer — same purple ink the injected app footer uses on /assistant/. */
.pap-foot { text-align: center; padding: 40px 16px 48px; color: #4A2A6B; font-size: 14px; }
.pap-foot p { margin: 0; }
.pap-foot p + p { margin-top: 8px; }
.pap-foot a { color: #6D28D9; font-weight: 600; text-decoration: none; margin: 0 6px; }
.pap-foot a:hover { color: #4C1D95; }

/* Auth card (sign in / sign up) */
.pap-auth { max-width: 440px; margin: 24px auto 0; background: #fff; border: 1px solid var(--pap-line);
  border-radius: 22px; padding: 30px 28px; box-shadow: 0 24px 50px rgba(59,31,92,.10); }
.pap-auth h1 { font-size: 1.7rem; font-weight: 600; }
.pap-auth .pap-lede { color: var(--pap-muted); margin: 8px 0 20px; font-size: .96rem; }
.pap-field { margin-bottom: 14px; }
.pap-field label { display: block; font-weight: 700; font-size: .86rem; margin-bottom: 5px; }
.pap-field label small { font-weight: 500; color: var(--pap-muted); }
.pap-field input[type=text], .pap-field input[type=email], .pap-field input[type=password] {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid #d9dfe8;
  font: inherit; font-size: 16px; background: #fff; color: var(--pap-ink); }
.pap-field input:focus { outline: none; border-color: var(--pap-purple); box-shadow: 0 0 0 3px rgba(91,42,134,.12); }
.pap-field .pap-hint { font-size: .8rem; color: var(--pap-muted); margin: 5px 0 0; }
/* Filled in from an invitation link and not editable (assistant-auth.js). */
.pap-field input.pap-locked { background: #F3EEFA; color: #3B1F5C; border-style: dashed; cursor: default; }
.pap-field input#papInvite.pap-locked { font-family: monospace; letter-spacing: .1em; font-weight: 700; }
.pap-field input.pap-locked:focus { box-shadow: none; border-color: var(--pap-purple); }
.pap-check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--pap-muted); margin: 6px 0 18px; }
.pap-check input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--pap-purple); }
.pap-check a { color: var(--pap-purple); font-weight: 600; }
.pap-auth .pap-btn { width: 100%; }
.pap-or { display: flex; align-items: center; gap: 12px; color: #9aa3ae; font-size: .8rem; margin: 18px 0; }
.pap-or::before, .pap-or::after { content: ''; flex: 1; height: 1px; background: var(--pap-line); }
.pap-google { width: 100%; background: #fff; color: var(--pap-ink); border: 1.5px solid #d9dfe8; }
.pap-google:hover { background: #fafbfd; }
.pap-google img { width: 18px; height: 18px; }
/* An invitation leads with Google (assistant-auth.js): the sentence naming the
   invited address, the button, then a quiet link to the password form. */
.pap-invite-google { margin: 4px 0 6px; }
.pap-invite-say { margin: 0 0 12px; color: var(--pap-ink); line-height: 1.45; }
.pap-invite-say b { word-break: break-all; }
.pap-alt-link { display: block; margin: 14px auto 6px; padding: 10px 8px; min-height: 44px;
  background: none; border: 0; color: var(--pap-muted, #5b6573); font: inherit; font-size: .9rem;
  text-decoration: underline; cursor: pointer; width: auto; }
.pap-alt-link:hover { color: var(--pap-ink); }
.pap-msg { display: none; border-radius: 10px; padding: 10px 12px; font-size: .88rem; margin-bottom: 14px; line-height: 1.45; }
.pap-msg.is-error { display: block; background: #fef0f0; color: #a3241c; border: 1px solid #f5bfbf; }
.pap-msg.is-info { display: block; background: var(--pap-purple-pale); color: var(--pap-purple-text); border: 1px solid var(--pap-purple-border); }
.pap-msg a { color: inherit; font-weight: 700; }
.pap-switch { text-align: center; margin: 18px 0 0; font-size: .9rem; color: var(--pap-muted); }
.pap-switch a { color: var(--pap-purple); font-weight: 700; text-decoration: none; }
.pap-forgot { display: block; text-align: right; font-size: .82rem; color: var(--pap-purple); font-weight: 600;
  text-decoration: none; margin-top: -6px; margin-bottom: 16px; }

@media (max-width: 600px) {
  .pap-wrap { padding: 0 16px; }
  .pap-nav a.pap-lnk.pap-hide-sm { display: none; }
  .pap-brand-name { font-size: 1rem; }
  .pap-auth { padding: 24px 18px; border-radius: 18px; margin-top: 8px; }
}
