: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;}
/* Self-contained: no external fonts or assets. Every colour comes from the brand
   variables prepended by app/web/assets.py, so this sheet is practice-agnostic. */
* { box-sizing:border-box; }
html, body { height:100%; }
body {
  margin:0;
  font-family:'Inter', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  display:grid; grid-template-columns: minmax(420px, 46%) 1fr;
  min-height:100vh; background:#F6F9F7; color:#0B1410;
}

/* ---------- brand panel (greentick.fi hero theme) ---------- */
.brandside {
  position:relative; overflow:hidden;
  background:var(--brand-panel);
  color:#F1F7F4;
  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 .mark { width:40px; height:40px; border-radius:9px; background:#fff; position:relative;
  flex:0 0 auto; }
.wordmark .mark::after { content:""; position:absolute; left:10px; top:12px; width:16px; height:8px;
  border-left:4px solid #0F3D2E; border-bottom:4px solid #0F3D2E; transform:rotate(-45deg);
  border-radius:1px; }
.wordmark .name { font-size:26px; font-weight:600; letter-spacing:-0.025em; color:#fff; }
/* v5.13.10: a deployment that has dropped its own logo into branding/ shows the real
   mark here instead of the CSS tick. 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-size:clamp(30px, 3.4vw, 44px); font-weight:650;
  letter-spacing:-0.03em; line-height:1.08; 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:#A9BFB4; 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:#A9BFB4; letter-spacing:.02em; }
.byline b { color:#E5E9E7; 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:#E5E9E7; }
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:#74897E; display:flex;
  gap:14px; flex-wrap:wrap; }
.brand-foot a { color:#A9BFB4; 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:#fff; border:1px solid #E5E9E7;
  border-radius:16px; padding:36px 38px 30px;
  box-shadow:0 24px 60px -28px rgba(11,20,16,.25); }
.card h2 { margin:0 0 4px; font-size:22px; font-weight:650; letter-spacing:-0.02em; color:#0B1410; }
.card p.sub { margin:0 0 22px; color:#6B7872; font-size:13.5px; line-height:1.45; }
label { font-size:12.5px; font-weight:600; color:#2D3A33; display:block; margin:14px 0 6px; }
input {
  width:100%; padding:11px 13px; border:1.5px solid #B9C4BE; border-radius:9px; font-size:15px;
  font-family:inherit; background:#fff; color:#0B1410; 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:#2FA577; box-shadow:0 0 0 3px rgba(47,165,119,.16); }
button {
  width:100%; margin-top:22px; background:var(--brand-primary-strong); color:#fff; border:none; border-radius:9px;
  padding:12px; font-size:15px; font-weight:600; font-family:inherit; cursor:pointer;
  transition:background .15s, transform .1s;
}
button:hover { background:var(--brand-primary-hover); }
button:active { transform:translateY(1px); }
.err { background:#FEE2E2; color:#991B1B; border-radius:9px; padding:10px 13px;
  font-size:13.5px; margin-bottom:10px; }
.msg { background:var(--brand-tint); color:var(--brand-on-tint); border-radius:9px; 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 #E5E9E7;
  font-size:12px; color:#6B7872; 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; }
.sandbox-banner {
  grid-column:1 / -1; background:#b45309; color:#fff; text-align:center;
  padding:8px 12px; font-size:13.5px; font-weight:650; border-bottom:2px solid #7c2d12;
}
.link-row { margin:16px 0 0; }
