/* MyCareFriend sign-in, account request and password reset pages, v1
   (October 2026). Loaded after /site.css?v=3. Holds only what those three
   pages need on top of the public design: the mono face for small data
   labels, a token shim for the old variable names, the form pieces the
   page scripts toggle (.error, .visible, .met, .weak/.fair/.good/.strong,
   .loading) and the small sample panels. mcf.css is left untouched. */

@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jbmono-latin.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }
@font-face{font-family:"JetBrains Mono";src:url("/fonts/dmsans-latin.woff2") format("woff2");font-weight:100 1000;font-style:normal;font-display:swap;unicode-range:U+0030-0039;}

:root {
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --err: #A64B2C;            /* 5.7:1 on white, 5.4:1 on cream */

  /* Shim: old mcf.css names mapped onto the public palette. */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --radius: 12px; --radius-lg: 20px;
  --rule: var(--line); --rule-hair: var(--line); --band: var(--cream-2);
  --ink-600: var(--ink-2); --ink-500: var(--muted);
  --blue-700: var(--teal-600); --pos-700: var(--teal-700); --seal-500: var(--gold);
  --caut-700: var(--gold-700); --caut-tint: var(--gold-50);
  --adv-700: var(--err); --font-sans: var(--sans);
}

.mono { font-family: var(--mono); font-feature-settings: "zero" 0; letter-spacing: -0.01em; }

/* ---------- header: Sign in shown as the current section ---------- */
.header-cta .signin[aria-current] { color: var(--teal-700); background: var(--teal-50); border-radius: 999px; padding: 8px 14px; }
.menu-panel a[aria-current] { color: var(--teal-700); background: var(--teal-50); }

/* ---------- page frame ---------- */
.auth-main { position: relative; overflow: hidden; padding: 56px 0 72px; }
.auth-main::before { content: ""; position: absolute; width: 700px; height: 700px; right: -260px; top: -100px; background: radial-gradient(circle closest-side, rgba(14, 124, 123, .14), rgba(14, 124, 123, 0) 70%); pointer-events: none; }
.auth-main::after { content: ""; position: absolute; width: 560px; height: 560px; left: -260px; bottom: -80px; background: radial-gradient(circle closest-side, rgba(221, 122, 92, .12), rgba(221, 122, 92, 0) 70%); pointer-events: none; }
.auth-main > .wrap { position: relative; z-index: 1; }

.auth-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .auth-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 40px; } }
@media (max-width: 959px) { .auth-form-side { order: -1; } }
.auth-aside { display: grid; gap: 22px; align-content: start; }

/* ---------- navy side panel ---------- */
.panel-dark { background: var(--navy); color: #C9D6E0; border-radius: var(--r-md); box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.panel-dark::after { content: ""; position: absolute; width: 360px; height: 360px; right: -140px; top: -160px; background: radial-gradient(circle, rgba(127, 211, 198, .22), rgba(127, 211, 198, 0) 65%); pointer-events: none; }
.panel-dark > * { position: relative; z-index: 1; }
.panel-dark h2 { color: #fff; }
.auth-info { padding: clamp(26px, 3.4vw, 42px); }
.auth-info h2 { font-size: clamp(1.7rem, 2.6vw, 2.25rem); }
.auth-info .lede { color: #C9D6E0; margin-top: 14px; font-size: 1.06rem; }
.trust-line { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .86rem; color: #A9BCCB; display: flex; align-items: center; gap: 10px; }
.trust-line svg { width: 18px; height: 18px; flex: none; color: #7FD3C6; }

/* six-assistant list */
.team-list { list-style: none; margin-top: 24px; display: grid; gap: 2px; }
.team-list li { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.team-list li:first-child { border-top: 0; }
.team-list .avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; grid-row: span 2; align-self: center; }
.team-list .avatar .ico { width: 21px; height: 21px; }
.team-list b { color: #fff; font-weight: 600; font-size: .98rem; line-height: 1.3; }
.team-list .role { font-family: var(--mono); font-size: .72rem; letter-spacing: .02em; color: #8DA2B3; text-transform: uppercase; line-height: 1.3; }
.team-list .chip { grid-column: 3; grid-row: 1 / span 2; justify-self: end; }

/* audience blocks (account request page) */
.side-list { margin-top: 24px; display: grid; gap: 0; }
.side-list > div { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 0 14px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.side-list > div:first-child { border-top: 0; padding-top: 4px; }
.side-list .avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; }
.side-list .avatar .ico { width: 21px; height: 21px; }
.side-list h3 { font-family: var(--sans); font-size: 1rem; font-weight: 650; color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.side-list p { color: #C9D6E0; font-size: .95rem; line-height: 1.55; margin-top: 4px; }

/* ---------- form card ---------- */
.auth-form { padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow-md); }
.auth-form h1 { font-size: clamp(2rem, 3.2vw, 2.55rem); line-height: 1.12; }
.auth-form .sub, .auth-form .register-subtitle { font-size: 1rem; color: var(--ink-2); margin: 10px 0 22px; max-width: none; }
.field input.error, .field select.error { border-color: var(--err); background: #fff; }
.form-error { font-size: .86rem; font-weight: 500; color: var(--err); display: none; }
.form-error.visible { display: block; }
.password-wrapper { position: relative; }
.password-wrapper input { padding-right: 70px; }
.password-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; color: var(--teal-600); font: inherit; font-size: .88rem; font-weight: 600; padding: 6px 8px; border-radius: 8px; }
.password-toggle:hover { background: var(--teal-50); }
.form-meta { display: flex; justify-content: flex-end; margin: -6px 0 20px; font-size: .93rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-full:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.btn.loading { cursor: progress; }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; font-family: var(--mono); font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-alt { margin-top: 14px; text-align: center; font-size: .93rem; color: var(--muted); }
.login-security, .register-security { display: flex; justify-content: center; align-items: flex-start; gap: 8px; margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: .84rem; color: var(--muted); line-height: 1.5; }
.login-security svg, .register-security svg { width: 15px; height: 15px; flex: none; margin-top: 2px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* one-line notice above the form (?reason=..., waiting for approval) */
.auth-notice { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 20px; padding: 12px 14px; border-radius: 14px; background: var(--sky-50); color: #24496B; font-size: .93rem; line-height: 1.5; }
.auth-notice[hidden] { display: none; }
.auth-notice::before { content: ""; width: 9px; height: 9px; margin-top: 7px; border-radius: 50%; background: var(--sky); flex: none; }
.auth-notice.warn { background: var(--gold-50); color: #6B4A06; }
.auth-notice.warn::before { background: var(--gold); }

/* account request form */
.form-row-2 { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }
.password-strength { display: none; }
.password-strength.visible { display: block; }
.strength-bar { height: 5px; background: var(--cream-2); border-radius: 999px; overflow: hidden; margin-bottom: 4px; }
.strength-fill { height: 100%; border-radius: 999px; transition: width .2s; }
.strength-fill.weak { width: 25%; background: var(--err); }
.strength-fill.fair { width: 50%; background: var(--gold); }
.strength-fill.good { width: 75%; background: var(--sky); }
.strength-fill.strong { width: 100%; background: var(--teal); }
.strength-text { font-family: var(--mono); font-size: .76rem; font-weight: 600; letter-spacing: .02em; }
.strength-text.weak { color: var(--err); }
.strength-text.fair { color: var(--gold-700); }
.strength-text.good { color: #2F5B82; }
.strength-text.strong { color: var(--teal-700); }
.password-reqs { display: none; }
.password-reqs.visible { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; }
@media (max-width: 480px) { .password-reqs.visible { grid-template-columns: 1fr; } }
.password-req { display: flex; align-items: center; gap: 7px; font-size: .84rem; color: var(--muted); }
.password-req.met { color: var(--teal-700); }
.password-req svg { width: 14px; height: 14px; flex: none; }
.terms-check { display: flex; align-items: flex-start; gap: 12px; margin: 8px 0 20px; padding: 14px 16px; border-radius: 14px; background: var(--cream); border: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); line-height: 1.5; }
.terms-check input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--teal); }
.register-error { font-size: .93rem; font-weight: 500; color: var(--err); margin: 0 0 14px; display: none; }
.register-error.visible { display: block; }
.success-state { display: none; text-align: center; padding: 18px 0 6px; }
.success-state.visible { display: block; }
.success-state .ok-mark { width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-50); color: var(--teal); }
.success-state .ok-mark svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.success-state h2 { font-size: 1.7rem; margin-bottom: 10px; }
.success-state p { font-size: .98rem; color: var(--ink-2); max-width: 32em; margin: 0 auto; }
.success-state .btn-row { justify-content: center; margin-top: 24px; }

/* ---------- small sample panels ---------- */
.sample-card { padding: 24px; }
.sample-card .mini-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.sample-card .mini-head b { color: var(--ink); font-size: 1rem; }
/* keep the Sample data label whole on phones: without this the chip's icon
   shrank to zero width when the heading wrapped */
.mini-head .chip, .dash-top .chip { flex: none; }
.chip-sample svg { flex: none; }
.sample-card .meta { font-family: var(--mono); font-size: .74rem; color: var(--muted); margin-bottom: 14px; }
.measure { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); margin-top: 10px; }
.measure .k { font-size: .9rem; font-weight: 600; color: var(--ink); }
.measure .v { grid-row: span 2; align-self: center; font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--ink); line-height: 1; text-align: right; }
.measure .d { font-size: .84rem; color: var(--ink-2); line-height: 1.45; }
.measure.has-number { background: #fff; }
.measure.no-number { background: var(--cream); border-style: dashed; }
.measure.no-number .v { font-family: var(--mono); font-size: .82rem; font-weight: 600; color: var(--muted); background: var(--cream-2); border-radius: 999px; padding: 6px 10px; }
.sample-card .foot { margin-top: 12px; font-size: .82rem; color: var(--muted); }

/* request flow diagram */
.flow-card { padding: 24px; }
.flow-card h3 { font-size: 1.12rem; margin-bottom: 16px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 19px; left: calc(50% + 26px); width: calc(100% - 42px); border-top: 2px dashed var(--teal-100); }
.flow li { position: relative; text-align: center; font-size: .86rem; line-height: 1.4; color: var(--ink-2); }
.flow li .n { width: 40px; height: 40px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-weight: 600; font-size: .9rem; color: var(--teal-700); background: #fff; border: 2px solid var(--teal-100); }
.flow li b { display: block; color: var(--ink); font-weight: 600; }

/* "A look inside" strip on the sign-in page */
.peek-section { padding: 8px 0 104px; }
.peek-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.peek-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); }
.peek-head .eyebrow { margin-bottom: 14px; }
.peek-head p.sub { font-size: 1rem; max-width: 30em; }
.stat-strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.stat b { display: block; font-family: var(--mono); font-size: 1.25rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; }
.stat span { font-size: .8rem; color: var(--muted); }
.ring-row { display: flex; align-items: center; gap: 16px; margin: 10px 0 6px; }
.ring { width: 96px; height: 96px; flex: none; position: relative; }
.ring svg { width: 96px; height: 96px; transform: rotate(-90deg); }
.ring .pct { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--ink); }
.ring-row .count { font-family: var(--mono); font-size: .8rem; color: var(--ink-2); line-height: 1.5; }
.ring-row .count b { display: block; font-size: 1.05rem; color: var(--ink); }
.bars { list-style: none; display: grid; gap: 9px; margin-top: 12px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) 22px; gap: 3px 10px; align-items: center; font-size: .84rem; color: var(--ink-2); line-height: 1.3; }
.bars li .n { font-family: var(--mono); font-weight: 600; color: var(--ink); text-align: right; }
.bars li .track { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--cream-2); overflow: hidden; }
.bars li .track i { display: block; height: 100%; border-radius: 999px; background: var(--coral); }
.bars.compare { margin-top: 14px; }
.bars.compare li { grid-template-columns: minmax(0, 1fr) auto; }
.bars.compare li .track i { background: var(--teal); }
.bars.compare li:first-child .track i { background: #8CC7BD; }
.dash .feed li { gap: 10px; }
.dash .feed .t { font-family: var(--mono); font-size: .76rem; color: var(--muted); margin-left: auto; margin-right: 8px; white-space: nowrap; }
.tile .k .mono { font-weight: 500; }

/* ---------- password reset ---------- */
.reset-hero { padding-bottom: 40px; }
.reset-hero .lede { margin-top: 4px; }
.reset-wrap { max-width: 980px; }
.reset-section { padding: 16px 0 96px; }
.reset-section .steps { margin-top: 8px; }
.reset-note { display: flex; gap: 14px; align-items: flex-start; margin: 48px auto 0; max-width: 760px; padding: 18px 20px; border-radius: 18px; background: var(--gold-50); border: 1px solid #F0DDB0; color: #6B4A06; font-size: .97rem; line-height: 1.55; }
.reset-note svg { width: 24px; height: 24px; flex: none; color: #B07C12; margin-top: 1px; }
.reset-note p + p { margin-top: 6px; }
.reset-section .btn-row { justify-content: center; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .auth-main { padding: 36px 0 64px; }
  .peek-section { padding-bottom: 72px; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .auth-main { padding: 24px 0 56px; }
  .auth-form h1 { font-size: 2rem; }
  .team-list li { grid-template-columns: 42px minmax(0, 1fr); }
  .team-list .chip { grid-column: 2; grid-row: auto; justify-self: start; margin-top: 4px; }
  .team-list .avatar { grid-row: span 3; align-self: start; }
  .flow { grid-template-columns: 1fr; gap: 12px; }
  .flow li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; text-align: left; align-items: start; }
  .flow li:not(:last-child)::after { left: 19px; top: 40px; width: 0; height: calc(100% - 28px); border-top: 0; border-left: 2px dashed var(--teal-100); }
  .flow li .n { margin: 0; }
  .ring-row { gap: 12px; }
  .reset-note { margin-top: 36px; }
  .measure { grid-template-columns: 1fr; }
  .measure .v { grid-row: auto; justify-self: start; text-align: left; font-size: 1.6rem; margin: 6px 0 4px; }
  .measure.no-number .v { font-size: .78rem; }
}
