/* Flagtail's signed-out pages: sign-in, not open yet, no access, errors, and the pages email links open (lib/pages.js
   authShell). The locked look (Dan, Oct 28, 2026, 3:48 and 3:53 PM): the navy bar with the logo, a white page, Inter,
   one orange button. Colours as the portal and flagtail.io: navy #0E0F3B, text #2B2F55, secondary #3A3F66. */
:root {
  --navy: #0E0F3B; --orange: #F7931E; --orange-ink: #9A4F00; --text: #2B2F55; --muted: #3A3F66; --muted2: #5F6488;
  --line: #E3E6EE; --head: #F5F6FA; --look: #8A4B00; --look-bg: #FFF3E0; --link-line: #7F84A3;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: #fff; color: var(--text); font-family: Inter, system-ui, sans-serif; font-size: 15px; line-height: 1.5; }
a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--link-line); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--navy); }
h2 { margin: 0 0 8px; font-size: 19px; font-weight: 700; color: var(--navy); }
.muted { color: var(--muted); font-size: 15px; }
.muted2 { color: var(--muted2); font-size: 14px; }
.fine { margin: 12px 0 0; font-size: 14px; color: var(--muted2); }
.strong { font-weight: 600; }
button, input, select, textarea { font-family: inherit; }

/* The navy bar with the logo, no menu. */
.auth-top { background: var(--navy); }
.auth-top-in { max-width: 1560px; margin: 0 auto; padding: 14px 32px; }
.auth-top img { height: 36px; width: auto; display: block; }

/* One card, centred, with a real shadow. */
.signin { max-width: 460px; margin: 0 auto; padding: 64px 20px 48px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.signin-card { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px 30px;
  box-shadow: 0 16px 32px -20px rgba(14, 15, 59, .32), 0 2px 6px rgba(14, 15, 59, .05); }
.signin-card > .muted { margin: 8px 0 20px; }
.signin-card > .error-msg { margin-top: 0; font-size: 16px; color: var(--navy); }
.signin-form { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.signin-form label { font-size: 14px; font-weight: 600; color: var(--navy); }
.signin-form input { font: inherit; font-size: 16px; padding: 12px 14px; border: 2px solid #2A2E5C; border-radius: 10px; color: var(--navy); margin-bottom: 10px; }
.signin-form input:focus { outline: 3px solid var(--orange); outline-offset: 1px; border-color: var(--navy); }
.pw-row { display: flex; justify-content: space-between; align-items: baseline; }
.signin-btn { margin-top: 6px; font: inherit; font-size: 16px; font-weight: 700; color: var(--navy); background: var(--orange); border: 0; border-radius: 8px; min-height: 48px; padding: 0 20px; cursor: pointer; }
.signin-btn:hover { background: #E8820C; }
a.signin-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; width: 100%; margin-top: 22px; }
.signin-msg { background: var(--look-bg); color: var(--look); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 16px 0 0; }
.signin-how { margin: 10px 0 0 !important; font-size: 14px; text-align: center; }
.signin-invited { margin: 20px 0 0 !important; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.signin-foot { margin: 0; text-align: center; }
/* The first step: the business name before Home (objective 9a). */
.first-step h1 { font-size: 26px; }
.first-step-help { margin: -4px 0 4px; font-size: 14px; }
.first-step .signin-form input { margin-bottom: 4px; }

/* A reminder's answer link and the other pages email links open. */
.answer-card h1 { font-size: 24px; margin-bottom: 8px; }
.answer-card p { margin: 0 0 12px; }
.answer-what { color: var(--muted); font-size: 14px; }
.answer-q { margin: 16px 0 8px !important; font-weight: 600; }
.answer-btn { font: inherit; font-size: 15px; font-weight: 600; color: var(--navy); background: #fff; border: 1.5px solid var(--navy); border-radius: 8px; padding: 10px 16px; min-height: 44px; cursor: pointer; width: 100%; }
.answer-btn:hover { background: var(--head); }
.answer-card .signin-btn { width: 100%; }
.answer-card a.signin-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; }
/* The "needs an update" email's link (objective 7b): its choices stacked full width, like Confirm. */
.answer-btns { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 0; }
.answer-btns a.answer-btn { display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; }
/* The question with the answer already chosen, its sentence and Confirm right below (Dan, Oct 25, 2:12 PM). */
.choices { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 8px; }
.choice-in { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices label.answer-btn { display: flex; align-items: center; justify-content: center; text-align: center; }
.choice-in:checked + label.answer-btn { background: var(--navy); color: #fff; }
.choice-in:focus-visible + label.answer-btn { outline: 3px solid var(--orange); outline-offset: 2px; }
.choice-confirm { display: none; background: var(--head); border-radius: 10px; padding: 12px 14px; }
.choice-confirm p { margin: 0 0 10px !important; }
.choice-confirm form { margin: 0; }
.c-continued:checked ~ .cc-continued, .c-ended:checked ~ .cc-ended { display: block; }
.confirm-btn { background: var(--orange); border-color: var(--orange); }

@media (max-width: 640px) {
  .auth-top-in { padding: 12px 16px; }
  .auth-top img { height: 32px; }
  .signin { padding: 32px 16px 40px; }
  .signin-card { padding: 26px 20px; }
  h1 { font-size: 26px; }
}
