/* LifeCare.ID identity surface — design bundle tokens (lifecareid/docs/design).
   Self-contained: this is a standalone origin, so it carries the foundation
   (cream floor, type) plus the --lc-* brand layer, not just --lc-*. */
:root {
  --bg: #f5f0e8;          /* warm cream — page floor, never white */
  --sur: #ffffff;         /* elevated card */
  --fg-1: #1a1a18;
  --fg-2: #6b6860;
  --fg-3: #a8a49c;
  --border: #d8d3c9;
  --acc: #7cb045;         /* LifeCare action accent (green) */
  --acc-h: #6ca035;
  --lc-navy: #1f3f70;     /* trust signature — identity/data-rights only */
  --lc-blue: #2e80b8;
  --err: #c44b37;
  --r-card: 16px;
  --r-btn: 10px;
  --shadow: 0 4px 16px rgba(26,26,24,.09), 0 2px 6px rgba(26,26,24,.05);
  --font: "Cabinet Grotesk", "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--fg-1);
  font-family: var(--font); line-height: 1.55;
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px;
  -webkit-font-smoothing: antialiased;
}
.brand {
  display: flex; align-items: center; gap: 8px; margin-bottom: 22px;
  font-weight: 700; font-size: 14px; color: var(--lc-navy);
}
.brand .mark { width: 20px; height: 20px; display: block; }
.card {
  width: 100%; max-width: 400px; background: var(--sur);
  border: 1px solid var(--border); border-radius: var(--r-card);
  box-shadow: var(--shadow); padding: 28px 26px; text-align: center;
}
.icon {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; background: rgba(124,176,69,.15);
  font-size: 26px; color: var(--acc);
}
.icon.navy { background: rgba(31,63,112,.1); color: var(--lc-navy); }
/* The logo (shield with two figures) sits above the title — its own mark, no chip. */
.logo { width: 64px; height: 64px; display: block; margin: 0 auto 16px; object-fit: contain; }
h1 { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; margin: 0 0 8px; }
.sub { color: var(--fg-2); font-size: 14px; margin: 0 0 20px; }
.points { list-style: none; padding: 0; margin: 0 0 22px; text-align: left; }
.points li { display: flex; gap: 10px; align-items: center; font-size: 14px; padding: 5px 0; }
.points .tick { color: var(--acc); font-weight: 800; flex: 0 0 auto; }
button.cta {
  width: 100%; border: 0; border-radius: 9999px; cursor: pointer;
  background: var(--acc); color: #fff; font-family: var(--font);
  font-weight: 800; font-size: 15px; padding: 14px 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s, transform .15s;
}
button.cta:hover:not(:disabled) { background: var(--acc-h); transform: translateY(-1px); }
button.cta:disabled { opacity: .55; cursor: default; }
/* Secondary action (e.g. "create" alongside "sign in" on the combined entry):
   same pill, quieter — outline, not filled, so the primary stays dominant. */
button.cta.secondary {
  margin-top: 10px; background: transparent; color: var(--fg-1);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}
button.cta.secondary:hover:not(:disabled) { background: rgba(0,0,0,.04); transform: translateY(-1px); }
/* Text input (recovery email on create, email on recover-request). */
.field {
  width: 100%; box-sizing: border-box; border: 0; border-radius: 12px;
  background: rgba(0,0,0,.04); color: var(--fg-1); font-family: var(--font);
  font-size: 15px; padding: 13px 16px; margin-bottom: 8px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.field:focus { outline: none; box-shadow: inset 0 0 0 2px var(--acc); }
.hint { color: var(--fg-2); font-size: 12px; line-height: 1.4; margin: 0 0 14px; }
.link {
  display: inline-block; margin-top: 18px; background: none; border: 0;
  color: var(--fg-2); font-family: var(--font); font-size: 14px; cursor: pointer;
  text-underline-offset: 3px;
}
.link:hover { text-decoration: underline; }
.did {
  display: block; width: 100%; margin-top: 16px; padding: 10px 12px;
  background: #ede9e0; border: 1px solid var(--border); border-radius: var(--r-btn);
  font-family: ui-monospace, "JetBrains Mono", Menlo, monospace;
  font-size: 12px; color: var(--fg-1); word-break: break-all; text-align: left;
}
.msg { margin-top: 14px; font-size: 14px; color: var(--fg-2); min-height: 1.2em; }
.msg.error { color: var(--err); }
.spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
[hidden] { display: none !important; }

/* Terms acceptance on the create screen. The version string lives in the markup
   as data-terms-version and is pinned to MEMBER_TERMS_VERSION by a test, so the
   line a person reads and the value stored against their identity cannot drift. */
.accept {
  display: flex; gap: 10px; align-items: flex-start; text-align: left;
  margin: 4px 0 14px; font-size: 13px; line-height: 1.45; color: var(--fg-2);
}
.accept input[type="checkbox"] {
  flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--acc);
  cursor: pointer;
}
.accept a { color: var(--fg-1); text-underline-offset: 3px; }
.legal-line { margin: 14px 0 0; font-size: 12px; color: var(--fg-2); }
.legal-line a { color: var(--fg-2); text-underline-offset: 3px; }
