/* Shared look for the sign-in, account and admin pages. Fonts load from this
   server only, never from Google. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/static/fonts/BricolageGrotesque.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/static/fonts/Figtree.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --olive: #a4c073;
  --teal: #0a4e51;
  --turf: #077558;
  --lime: #abeb76;
  --beige: #e5e8d5;
  --paper: #f7f8f0;
  --ink-soft: #2d5f5c;
  --line: #d3dbbd;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--beige); color: var(--teal); font-family: var(--body); line-height: 1.5; }
a { color: var(--teal); font-weight: 600; }
a:hover { color: var(--turf); }
:focus-visible { outline: 3px solid var(--turf); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { max-width: 760px; margin: 0 auto; padding: 32px 16px 48px; display: flex; flex-direction: column; gap: 20px; }
.narrow { max-width: 440px; }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.5px; text-decoration: none; }
.who { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; }
h1 { margin: 0; font-family: var(--display); font-size: 32px; letter-spacing: -0.5px; }
h2 { margin: 0; font-family: var(--display); font-size: 22px; }
p { margin: 0; }
.lead { color: var(--ink-soft); }

.panel { background: var(--paper); border: 1.5px solid var(--teal); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.panel.quiet { border-color: var(--olive); }
form { display: flex; flex-direction: column; gap: 12px; }
label { font-weight: 700; font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--teal);
  background: #ffffff; color: var(--teal); font-size: 16px; font-family: inherit;
}
.hint { font-size: 13px; color: var(--ink-soft); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 12px; border: none;
  background: var(--turf); color: #ffffff; font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer; }
.btn:disabled { background: #c9d1b0; color: var(--ink-soft); cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); }
.btn.danger { background: #8a2d2d; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 999px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.message { padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.message.bad { background: #f6dede; border: 1.5px solid #8a2d2d; color: #5c1d1d; }
.message.good { background: var(--lime); border: 1.5px solid var(--teal); }

.consent-text { padding: 16px; border-radius: 14px; background: #ffffff; border: 1.5px solid var(--line); }
.list { display: flex; flex-direction: column; }
.item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #c9d1b0; }
.item:last-child { border-bottom: none; }
.item .name { font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.item .meta { font-size: 12px; color: var(--ink-soft); }
.empty { padding: 16px; border-radius: 14px; border: 2px dashed var(--olive); font-size: 14px; color: var(--ink-soft); }
.link-box { padding: 12px; border-radius: 12px; background: #ffffff; border: 1.5px solid var(--line); font-family: ui-monospace, Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #c9d1b0; vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }
.table-wrap { overflow-x: auto; }
/* A disabled button always looks disabled, whatever its colour when ready. */
.btn.danger:disabled, .btn.ghost:disabled { background: #c9d1b0; color: var(--ink-soft); border-color: transparent; }

/* The logo: small beside the name, larger above the sign-in form. */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.sign-in-logo { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.sign-in-logo img { width: 120px; height: auto; filter: drop-shadow(0 12px 22px rgba(10, 78, 81, 0.22)); }
