:root{--brand-primary:#AE3527;--brand-primary-strong:#AE3527;--brand-deep:#17130E;--brand-tint:#EFEAE0;--brand-on-tint:#17130E;--brand-primary-rgb:174, 53, 39;--brand-primary-hover:#c06157;--brand-glow:#d29088;--brand-panel:#17130E;--brand-muted:#74716e;}
@font-face{font-family:'Jost';font-style:normal;font-weight:300 700;font-display:swap;src:url('/static/fonts/jost-latin.woff2?v=d2250c53167c') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Jost';font-style:normal;font-weight:300 700;font-display:swap;src:url('/static/fonts/jost-latin-ext.woff2?v=d2250c53167c') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Newsreader';font-style:normal;font-weight:300 700;font-display:swap;src:url('/static/fonts/newsreader-latin.woff2?v=d2250c53167c') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Newsreader';font-style:normal;font-weight:300 700;font-display:swap;src:url('/static/fonts/newsreader-latin-ext.woff2?v=d2250c53167c') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 600;font-display:swap;src:url('/static/fonts/jetbrains-mono-latin.woff2?v=d2250c53167c') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 600;font-display:swap;src:url('/static/fonts/jetbrains-mono-latin-ext.woff2?v=d2250c53167c') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
/* Self-contained: no external font REQUESTS — the three faces are packaged, and their
   @font-face block is prepended to this sheet by app/web/assets.py alongside the brand
   variables, so the sign-in page is set in the same type as the ledger behind it.

   v6.2.0: the neutrals in here were the scaffold's cool greys — a #F6F9F7 page, a
   #E5E9E7 card border, a #8E948F field edge, a red-mint error pair — sitting under
   Karma's warm ink panel. They are the same warm set base.html uses. They are literals
   because a stylesheet cannot interpolate, and that is correct: warm neutrals are not
   brand values. Karma's own colours still arrive as var(--brand-*). */
* { box-sizing:border-box; }
html, body { height:100%; }
body {
  margin:0;
  font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-variant-numeric:tabular-nums;
  display:grid; grid-template-columns: minmax(420px, 46%) 1fr;
  min-height:100vh; background:#F2ECE1; color:#2A2118;
}

/* ---------- the sign-in panel ---------- */
.brandside {
  position:relative; overflow:hidden;
  background:var(--brand-panel);
  color:#F3EADB;
  display:flex; flex-direction:column; justify-content:space-between;
  padding:clamp(28px, 4.5vw, 56px);
}
.brandside::before, .brandside::after {   /* aurora glows, matching the site hero */
  content:""; position:absolute; border-radius:50%; filter:blur(90px); pointer-events:none;
}
.brandside::before { width:520px; height:520px; left:-160px; top:-140px;
  background:radial-gradient(circle, rgba(var(--brand-primary-rgb), .28), transparent 65%); }
.brandside::after { width:460px; height:460px; right:-150px; bottom:-120px;
  background:radial-gradient(circle, rgba(var(--brand-primary-rgb), .20), transparent 65%); }
.brand-top { position:relative; z-index:1; }
.wordmark { display:flex; align-items:center; gap:12px; }
.wordmark .name { font-family:'Jost', system-ui, sans-serif; font-size:26px; font-weight:600; letter-spacing:-0.025em; color:#fff; }
/* The mark. Height-bounded and width:auto so a stacked lockup, a horizontal one and
   a square app icon all sit correctly without the template knowing which shape it
   was given. */
.wordmark .mark-img { height:44px; width:auto; max-width:220px; display:block; }
.product { position:relative; z-index:1; margin:clamp(28px, 6vh, 64px) 0 0; }
.product h1 { margin:0 0 10px; font-family:'Newsreader', Georgia, 'Times New Roman', serif;
  font-size:clamp(30px, 3.4vw, 44px); font-weight:400;
  letter-spacing:-0.015em; line-height:1.1; color:#fff; }
.product h1 .glow { color:var(--brand-glow); }
.product p.tag { margin:0 0 26px; font-size:16.5px; line-height:1.5; color:#C7B7A2; max-width:44ch; }
.byline { display:inline-flex; align-items:center; gap:8px; margin-bottom:18px;
  border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.05);
  border-radius:999px; padding:6px 14px; font-size:12.5px; color:#C7B7A2; letter-spacing:.02em; }
.byline b { color:#EFE6D6; font-weight:600; }
ul.props { list-style:none; margin:0; padding:0; display:grid; gap:14px; max-width:46ch; }
ul.props li { display:flex; gap:12px; align-items:flex-start; font-size:15px; line-height:1.45;
  color:#EFE6D6; }
ul.props .tick { flex:0 0 auto; width:22px; height:22px; border-radius:50%; margin-top:1px;
  background:rgba(var(--brand-primary-rgb), .14); border:1px solid rgba(var(--brand-primary-rgb), .35); position:relative; }
ul.props .tick::after { content:""; position:absolute; left:5px; top:6px; width:9px; height:5px;
  border-left:2.5px solid var(--brand-glow); border-bottom:2.5px solid var(--brand-glow); transform:rotate(-45deg); }
.brand-foot { position:relative; z-index:1; font-size:12.5px; color:#9C8D7A; display:flex;
  gap:14px; flex-wrap:wrap; }
.brand-foot a { color:#C7B7A2; text-decoration:none; font-size:12.5px; }
.brand-foot a:hover { color:var(--brand-glow); }

/* ---------- login side ---------- */
.formside { display:flex; align-items:center; justify-content:center; padding:32px 24px; }
.card { width:400px; max-width:100%; background:#FDFBF7; border:1px solid #E4DACA;
  border-radius:12px; padding:36px 38px 30px;
  box-shadow:0 24px 60px -28px rgba(23,19,14,.25); }
.card h2 { margin:0 0 4px; font-family:'Newsreader', Georgia, serif; font-size:24px;
  font-weight:400; letter-spacing:-0.01em; color:#2A2118; }
.card p.sub { margin:0 0 22px; color:#6A5B49; font-size:13.5px; line-height:1.45; }
label { font-family:'Jost', system-ui, sans-serif; font-size:12.5px; font-weight:500;
  color:#6A5B49; display:block; margin:14px 0 6px; }
input {
  /* #8A8073 is the application's --field-edge: 3.75:1 on the card, which is what WCAG
     1.4.11 asks of a control boundary. It was #8E948F, a cool grey of the same weight. */
  width:100%; padding:11px 13px; border:1.5px solid #8A8073; border-radius:7px; font-size:15px;
  font-family:inherit; background:#FDFBF7; color:#2A2118; transition:border-color .15s, box-shadow .15s;
}
input:focus { outline:2px solid var(--brand-deep); outline-offset:1px;  /* v5.13.6: was outline:none, whose replacement ring computed to 1.18:1 on the white card. WCAG 2.4.7 */ border-color:var(--brand-primary); box-shadow:0 0 0 3px rgba(var(--brand-primary-rgb), .16); }
button {
  width:100%; margin-top:22px; background:var(--brand-primary-strong); color:#fff; border:none; border-radius:7px;
  padding:12px; font-family:'Jost', system-ui, sans-serif; font-size:15px; font-weight:600; cursor:pointer;
  transition:background .15s, transform .1s;
}
button:hover { background:var(--brand-primary-hover); }
button:active { transform:translateY(1px); }
/* The application's own --danger / --danger-surface pair (6.58:1), with the 3px left
   rule that makes a notice survive greyscale and colour-blindness. */
.err { background:#F7E3E4; color:#9B1B30; border-radius:0 7px 7px 0; padding:10px 13px;
  border-left:3px solid #9B1B30; font-size:13.5px; margin-bottom:10px; }
.msg { background:var(--brand-tint); color:var(--brand-on-tint); border-radius:0 7px 7px 0;
  border-left:3px solid var(--brand-primary-strong); padding:10px 13px;
  font-size:13.5px; margin-bottom:10px; }
a { color:var(--brand-primary-strong); text-decoration:none; font-size:13.5px; }
a:hover { text-decoration:underline; }
.card-foot { margin-top:26px; padding-top:16px; border-top:1px solid #E4DACA;
  font-size:12px; color:#6A5B49; display:flex; justify-content:space-between; gap:10px;
  flex-wrap:wrap; }

/* ---------- responsive: brand panel becomes a compact header ---------- */
@media (max-width: 860px) {
  body { grid-template-columns:minmax(0, 1fr); overflow-x:hidden; }
  .brandside, .formside { min-width:0; width:100%; }
  .brandside { padding:22px 24px; }
  .product { margin-top:14px; }
  .product h1 { font-size:26px; }
  .product p.tag { margin-bottom:14px; font-size:14.5px; }
  ul.props, .brand-foot { display:none; }
  .formside { padding:24px 18px 40px; }
  .card { width:100%; max-width:400px; min-width:0; padding:28px 24px 24px; }
  .card-foot span { overflow-wrap:anywhere; }
}

/* v5.13.4: moved out of the template so the page can carry a strict
   Content-Security-Policy (style-src 'self') with no 'unsafe-inline'.
   These three rules replace the inline style="" attributes that were
   previously written directly onto the markup. */
body.has-banner { grid-template-rows: auto 1fr; }
/* The same three values base.html and portal_base.html carry as --sandbox,
   --on-sandbox and --sandbox-line, written as literals because this is a stylesheet.
   Loud amber, deliberately not the warning colour and deliberately not the bronze: a
   sandbox is a place, and its whole job is that nobody mistakes test data for
   production. It must never be quietened to fit the palette. */
.sandbox-banner {
  grid-column:1 / -1; background:#B45309; color:#FFFFFF; text-align:center;
  padding:8px 12px; font-size:13.5px; font-weight:650; border-bottom:2px solid #7C2D12;
}
.link-row { margin:16px 0 0; }


/* ---------- login backdrop (v5.13.10) ----------------------------------------
   Only active for a deployment that has dropped branding/watermark.svg; the
   template puts `has-backdrop` on <body> in that case. A practice without the
   asset keeps exactly the login page it had.

   Both layers are decorative: aria-hidden in the markup, pointer-events:none
   here, and z-index 1 against content at 2 so nothing can sit above the form or
   swallow a click. */
.brandside { position:relative; overflow:hidden; }
.brandside > *:not(.k-bd) { position:relative; z-index:2; }
.k-bd { position:absolute; inset:0; z-index:1; pointer-events:none; overflow:hidden; }
/* .06, not the .075 the spec shipped with. Two independent reads agreed it was
   loud enough to look like a watermarked draft proof behind the headline, and on
   a sign-in page attention belongs on the form. The contrast headroom is enormous
   either way (white over the densest point measures 14:1 against a 4.5 floor), so
   the only thing the lower value costs is presence, which is the point. */
.k-bd-tile { color:var(--brand-primary); opacity:.06; }
.k-bd-tile svg { position:absolute; inset:0; width:100%; height:100%; }

.has-backdrop .formside { position:relative; overflow:hidden; }
.has-backdrop .formside > * { position:relative; z-index:2; }
/* Ruled paper. The rule is SOFT-edged on purpose: a hard 1px repeat
   (`transparent 0 21px, rgba(...) 21px 22px`) bands badly at fractional device
   pixel ratios — 11-35% line-to-line weight variation at 1.1/1.25/1.33/1.5/1.6/
   1.75/2.2, even only at exact 1x/2x/2.5x/3x. The three-stop soft edge measures
   0-8% across the same scales. Do not "simplify" this back. */
.has-backdrop .formside::before {
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:repeating-linear-gradient(to bottom,
    rgba(42,33,24,0)    0 20px,
    rgba(42,33,24,.053) 21px,
    rgba(42,33,24,0)    22px);
  mask-image:        linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-image:linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}
@media (prefers-reduced-motion: no-preference) { /* nothing animates; stated so a
  future edit does not assume this layer is a safe place to add motion. */ }

/* ---------- signup styles ---------- */
form.signup-card { max-width:480px; }
.signup-field {
  width:100%; padding:11px 13px; border:1.5px solid #8A8073; border-radius:7px; font-size:15px;
  font-family:inherit; background:#FDFBF7; color:#2A2118; transition:border-color .15s, box-shadow .15s;
}
.signup-field:focus {
  outline:2px solid var(--brand-deep); outline-offset:1px; border-color:var(--brand-primary); box-shadow:0 0 0 3px rgba(var(--brand-primary-rgb), .16);
}
.signup-honeypot { display:none; }
.signup-consent { margin:12px 0; }
.signup-consent label { display:flex; align-items:baseline; gap:8px; margin:0; }
.signup-consent input[type="checkbox"] { width:auto; margin:0; }
.signup-success-actions { margin-top:32px; }
.btn-primary {
  display:inline-block; padding:12px 16px; background:var(--brand-primary-strong);
  color:#fff; text-decoration:none; border-radius:7px; font-family:'Jost', system-ui, sans-serif; font-size:15px; font-weight:600;
  transition:background .15s, transform .1s;
}
.btn-primary:hover { background:var(--brand-primary-hover); text-decoration:none; }
.btn-primary:active { transform:translateY(1px); }
