  /* ── Palette (mirrors mikrozone.css so it previews identically; the app's
        real CSS vars override these when dropped in) ── */
  :root {
    --bg:         #ECE5D8;
    --card:       #F4EFE5;
    --ink:        #2C3A36;
    --ink-mid:    #6A766F;
    --ink-soft:   #9AA39C;
    --green:      #3E8470;
    --green-deep: #2C6356;
    --green-mist: #DCE9DF;
    --green-soft: #8FC2AC;
    --accent:     #DE8B77;
    --accent-ink: #C26F5A;
    --bad:        #C76A57;
    --hair:       rgba(44,58,54,0.10);
    /* dark panel */
    --d1: #233029;
    --d2: #18211C;
    --d-ink: #E7EEE8;
    --d-mid: #93A89B;
    --d-hair: rgba(255,255,255,0.10);
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; min-height: 100%; }
  body {
    font-family: "Manrope", -apple-system, system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; text-decoration: none; }
  ::selection { background: var(--green); color: #fff; }

  .login-root {
    min-height: 100vh; min-height: 100dvh;
    display: grid;
    grid-template-columns: 1.06fr 0.94fr;
  }

  /* ════════════ LEFT — dark brand panel ════════════ */
  .brand-panel {
    position: relative; overflow: hidden;
    background:
      radial-gradient(120% 90% at 15% 10%, #2c3c33 0%, transparent 55%),
      radial-gradient(110% 80% at 90% 100%, #20342b 0%, transparent 50%),
      linear-gradient(155deg, var(--d1) 0%, var(--d2) 100%);
    color: var(--d-ink);
    padding: 44px 52px;
    display: flex; flex-direction: column;
  }
  /* faint hex/grid texture */
  .brand-panel::before {
    content: ""; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
    background:
      radial-gradient(circle at 1px 1px, rgba(143,194,172,0.10) 1px, transparent 0);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(140% 100% at 50% 40%, #000 40%, transparent 100%);
            mask-image: radial-gradient(140% 100% at 50% 40%, #000 40%, transparent 100%);
  }
  .bp-inner { position: relative; display: flex; flex-direction: column; height: 100%; z-index: 1; }

  .bp-top { display: flex; align-items: center; justify-content: space-between; }
  .wm { font-weight: 800; font-size: 24px; letter-spacing: -0.6px; display: inline-flex; align-items: center; }
  .wm .wm-logo { height: 44px; width: auto; margin-right: 11px; }
  .wm .a { color: var(--d-ink); }
  .wm .b { color: var(--accent); }
  .wm .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-left: 3px; transform: translateY(-2px); }

  .tn-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 13px; border-radius: 999px;
    background: rgba(255,255,255,0.05); border: 1px solid var(--d-hair);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 11px; font-weight: 500; color: var(--green-soft); letter-spacing: 0.4px;
  }
  .tn-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-soft);
    box-shadow: 0 0 0 0 rgba(143,194,172,0.7); animation: pulse 1.8s ease-out infinite; }
  @keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(143,194,172,0.55); }
    70%  { box-shadow: 0 0 0 7px rgba(143,194,172,0); }
    100% { box-shadow: 0 0 0 0 rgba(143,194,172,0); }
  }

  .bp-head { margin-top: 52px; }
  .eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 2.6px; text-transform: uppercase; color: var(--green-soft); }
  .bp-head h1 {
    font-size: clamp(38px, 4.2vw, 58px); font-weight: 800; line-height: 0.98;
    letter-spacing: -2px; margin: 18px 0 0;
  }
  .bp-head h1 .serif { font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 400; color: var(--green-soft); }
  .bp-head p { font-size: 16px; line-height: 1.55; color: var(--d-mid); margin: 20px 0 0; max-width: 30em; }

  /* map visual */
  .radar-wrap { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 200px; padding: 18px 0; }
  .radar { position: relative; width: 360px; height: 360px; max-width: 82%; }
  .radar svg { width: 100%; height: 100%; overflow: visible; }
  /* Africa silhouette */
  .africa-fill { fill: rgba(143,194,172,0.10); stroke: rgba(143,194,172,0.45); stroke-width: 1.4; }
  .africa-dots { fill: rgba(143,194,172,0.16); }
  /* radar pings sweeping across the continent (clipped to Africa) */
  .ring { transform-origin: 327px 171px; animation: ripple 4s ease-out infinite; }
  .ring.r2 { animation-delay: 1.27s; }
  .ring.r3 { animation-delay: 2.54s; }
  @keyframes ripple {
    0%   { transform: scale(0.05); opacity: 0; }
    14%  { opacity: 0.85; }
    100% { transform: scale(1); opacity: 0; }
  }
  .node-core { animation: core 4s ease-in-out infinite; transform-origin: 327px 171px; }
  @keyframes core { 0%,100% { opacity: 0.85; } 50% { opacity: 1; } }
  .hop { opacity: 0; animation: hopIn .6s ease both; }
  .hop .hd { animation: hopGlow 2.6s ease-in-out infinite; }
  .hop.h1 { animation-delay: .45s; } .hop.h1 .hd { animation-delay: .0s; }
  .hop.h2 { animation-delay: .6s; } .hop.h2 .hd { animation-delay: .3s; }
  .hop.h3 { animation-delay: .75s; } .hop.h3 .hd { animation-delay: .6s; }
  .hop.h4 { animation-delay: .9s; } .hop.h4 .hd { animation-delay: .9s; }
  .hop.h5 { animation-delay: 1.05s; } .hop.h5 .hd { animation-delay: 1.2s; }
  .hop.h6 { animation-delay: 1.2s; } .hop.h6 .hd { animation-delay: 1.5s; }
  .hop.h7 { animation-delay: 1.35s; } .hop.h7 .hd { animation-delay: 1.8s; }
  .hop.h8 { animation-delay: 1.5s; } .hop.h8 .hd { animation-delay: 2.1s; }
  @keyframes hopIn { to { opacity: 1; } }
  @keyframes hopGlow { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
  .hop-label { font: 600 9.5px "Manrope", sans-serif; fill: var(--d-mid); }
  .spoke { stroke: rgba(143,194,172,0.32); stroke-width: 1; stroke-dasharray: 3 4; }
  /* travelling pulse along each link */
  .flow { stroke: #8FC2AC; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 5 130; opacity: .85;
    animation: flow 2.6s linear infinite; }
  .flow.f2 { animation-delay: .32s; } .flow.f3 { animation-delay: .64s; }
  .flow.f4 { animation-delay: .96s; } .flow.f5 { animation-delay: 1.28s; }
  .flow.f6 { animation-delay: 1.6s; } .flow.f7 { animation-delay: 1.92s; }
  .flow.f8 { animation-delay: 2.24s; }
  @keyframes flow { from { stroke-dashoffset: 135; } to { stroke-dashoffset: 0; } }

  /* metric chips */
  .metrics { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
  .chip {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 10px 14px; border-radius: 13px;
    background: rgba(255,255,255,0.045); border: 1px solid var(--d-hair);
  }
  .chip .ic { color: var(--green-soft); display: flex; }
  .chip .k { font-size: 9px; font-weight: 700; letter-spacing: 0.8px; color: var(--d-mid); text-transform: uppercase; }
  .chip .v { font-size: 12.5px; font-weight: 700; color: var(--d-ink); font-family: "JetBrains Mono", monospace; margin-top: 2px; }

  /* ════════════ RIGHT — form ════════════ */
  .form-panel {
    position: relative; padding: 48px;
    display: flex; align-items: center; justify-content: center;
  }
  .form-panel::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.6;
    background:
      radial-gradient(ellipse at 80% 0%, var(--green-mist) 0%, transparent 45%),
      radial-gradient(ellipse at 10% 100%, rgba(222,139,119,0.14) 0%, transparent 45%);
  }
  .card {
    position: relative; width: 100%; max-width: 410px; padding: 40px;
    border-radius: 26px; background: var(--card);
    box-shadow: 0 22px 50px rgba(44,58,54,0.18), 0 6px 16px rgba(44,58,54,0.07);
  }
  .icon-badge {
    width: 52px; height: 52px; border-radius: 16px;
    background: linear-gradient(150deg, var(--green), var(--green-deep)); color: #fff;
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
    box-shadow: 5px 5px 14px rgba(44,99,86,0.30), inset 1px 1px 2px rgba(255,255,255,0.30);
  }
  .card h2 { font-size: 23px; font-weight: 800; letter-spacing: -0.5px; margin: 0; }
  .card .sub { font-size: 13px; color: var(--ink-mid); margin: 6px 0 26px; }

  form { display: flex; flex-direction: column; gap: 14px; }

  .field { position: relative; }
  .field input {
    width: 100%; padding: 22px 18px 9px 46px;
    background: var(--bg); border: none; border-radius: 14px;
    box-shadow: inset -2px -2px 5px rgba(255,255,255,0.85), inset 2px 2px 6px rgba(146,128,99,0.20);
    font: 600 14px "Manrope", sans-serif; color: var(--ink); outline: none;
    transition: box-shadow .2s ease; -webkit-appearance: none;
  }
  .field.has-eye input { padding-right: 46px; }
  .field input:focus {
    box-shadow: inset -2px -2px 5px rgba(255,255,255,0.85), inset 2px 2px 6px rgba(146,128,99,0.20), 0 0 0 2px var(--accent);
  }
  .field label {
    position: absolute; left: 46px; top: 50%; transform: translateY(-50%);
    font-size: 14px; font-weight: 600; color: var(--ink-mid); pointer-events: none;
    transition: all .18s cubic-bezier(.2,.7,.3,1);
  }
  .field input:focus + label,
  .field input:not(:placeholder-shown) + label {
    top: 11px; transform: none; font-size: 9.5px; letter-spacing: 0.6px;
    font-weight: 800; text-transform: uppercase; color: var(--green-deep);
  }
  .field .lic { position: absolute; left: 17px; top: 50%; transform: translateY(-50%);
    color: var(--ink-soft); display: flex; pointer-events: none; transition: color .18s; }
  .field input:focus ~ .lic { color: var(--accent); }
  .field .eye { position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    color: var(--ink-soft); cursor: pointer; display: flex; padding: 4px; }
  .field .eye:hover { color: var(--ink-mid); }

  .row { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
  .ck { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none;
    font-size: 12.5px; font-weight: 600; color: var(--ink-mid); }
  .ck input { position: absolute; opacity: 0; width: 0; height: 0; }
  .ck .box { width: 19px; height: 19px; border-radius: 6px; flex-shrink: 0; background: var(--bg);
    box-shadow: inset -2px -2px 5px rgba(255,255,255,0.85), inset 2px 2px 6px rgba(146,128,99,0.20);
    display: flex; align-items: center; justify-content: center; transition: all .18s; }
  .ck .box svg { opacity: 0; transition: opacity .15s; }
  .ck input:checked ~ .box { background: linear-gradient(180deg, var(--green), var(--green-deep)); box-shadow: 2px 2px 6px rgba(44,99,86,0.28); }
  .ck input:checked ~ .box svg { opacity: 1; }
  .ck input:focus-visible ~ .box { box-shadow: 0 0 0 2px var(--accent); }
  .link-accent { font-size: 12.5px; font-weight: 700; color: var(--green-deep);
    border-bottom: 1.5px solid var(--accent); padding-bottom: 1px; }
  .link-accent:hover { color: var(--accent-ink); }

  .submit {
    margin-top: 8px; width: 100%; padding: 15px; border: none; border-radius: 16px;
    background: linear-gradient(180deg, var(--green) 0%, var(--green-deep) 100%); color: #fff;
    font: 700 15px "Manrope", sans-serif; letter-spacing: 0.2px; cursor: pointer;
    box-shadow: 5px 5px 14px rgba(44,99,86,0.28), inset 1px 1px 2px rgba(255,255,255,0.25);
    transition: box-shadow .2s, transform .15s;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  }
  .submit:hover { box-shadow: 7px 7px 20px rgba(44,99,86,0.36), inset 1px 1px 2px rgba(255,255,255,0.25); transform: translateY(-1px); }
  .submit:active { transform: translateY(0); }
  .submit .arrow { transition: transform .15s; }
  .submit:hover .arrow { transform: translateX(3px); }

  .secnote { display: flex; align-items: center; gap: 7px; justify-content: center;
    font-size: 11px; font-weight: 500; color: var(--ink-mid); margin-top: 18px; }
  .secnote svg { color: var(--green-deep); }

  .reg { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--hair);
    text-align: center; font-size: 12.5px; color: var(--ink-mid); }

  .err { background: rgba(199,106,87,0.12); color: var(--bad); padding: 11px 14px;
    border-radius: 11px; font-size: 13px; font-weight: 600; margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px; border: 1px solid rgba(199,106,87,0.25); }

  /* stagger entrance */
  .stagger > * { animation: up .7s cubic-bezier(.2,.7,.3,1) both; }
  .stagger > *:nth-child(1){animation-delay:.04s} .stagger > *:nth-child(2){animation-delay:.10s}
  .stagger > *:nth-child(3){animation-delay:.16s} .stagger > *:nth-child(4){animation-delay:.22s}
  .stagger > *:nth-child(5){animation-delay:.28s} .stagger > *:nth-child(6){animation-delay:.34s}
  .stagger > *:nth-child(7){animation-delay:.40s} .stagger > *:nth-child(8){animation-delay:.46s}
  @keyframes up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

  /* lang toggle */
  .lang { display: inline-flex; border: 1px solid var(--d-hair); border-radius: 999px; overflow: hidden; font-size: 11px; font-weight: 700; }
  .lang button { font: inherit; font-weight: 700; border: 0; background: transparent; color: var(--d-mid); padding: 5px 10px; cursor: pointer; transition: .15s; }
  .lang button.on { background: rgba(255,255,255,0.92); color: var(--d1); }

  /* ════════════ Responsive ════════════ */
  @media (max-width: 920px) {
    .login-root { grid-template-columns: 1fr; }
    .brand-panel { padding: 26px 24px 30px; }
    .bp-head { margin-top: 30px; }
    .bp-head h1 { font-size: clamp(30px, 8vw, 42px); }
    .bp-head p { display: none; }
    .radar-wrap, .metrics { display: none; }   /* compact header on mobile */
    .form-panel { padding: 30px 22px 46px; }
    .card { box-shadow: 0 16px 38px rgba(44,58,54,0.16), 0 4px 12px rgba(44,58,54,0.06); }
  }
  @media (max-width: 920px) and (min-height: 720px) {
    .radar-wrap { display: flex; min-height: 150px; }
  }
  @media (max-width: 420px) {
    .card { padding: 30px 22px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .ring, .node-core, .hop, .hop .hd, .tn-dot, .stagger > * { animation: none !important; opacity: 1 !important; }
  }
