
  :root{
    --bg-deep:      #10121a;
    --bg-panel:     #171a24;
    --bg-panel-2:   #1d2029;
    --bg-elevated:  #232734;
    --line:         #2a2f3d;
    --line-soft:    #22262f;
    --text-hi:      #edeef3;
    --text-mid:     #b4b9c6;
    --text-muted:   #767c8c;
    --amber:        #f2a93b;
    --amber-dim:    #7a5a24;
    --teal:         #3fc7b0;
    --teal-dim:     #1f5f56;
    --red:          #e0616b;
    --radius:       10px;
  }

  *{ box-sizing:border-box; }
  html,body{ margin:0; padding:0; }
  body{
    background:var(--bg-deep);
    color:var(--text-hi);
    font-family:'Inter',system-ui,sans-serif;
    -webkit-font-smoothing:antialiased;
    min-height:100vh;
  }
  ::selection{ background:var(--amber); color:#1a1200; }
  a{ color:inherit; }
  button{ font-family:inherit; }

  .shell{
    min-height:100vh;
    display:grid;
    grid-template-columns:1.15fr 1fr;
  }

  /* ---------------------------------------------------------------- */
  /* LEFT — brand + live ops console (the signature element)          */
  /* ---------------------------------------------------------------- */
  .brand-side{
    position:relative;
    background:
      radial-gradient(1100px 620px at -8% -12%, #1c2130 0%, transparent 55%),
      radial-gradient(900px 700px at 105% 105%, #171d24 0%, transparent 50%),
      var(--bg-panel);
    border-right:1px solid var(--line);
    padding:56px 56px 40px;
    display:flex;
    flex-direction:column;
    overflow:hidden;
  }

  .brand-mark{
    display:flex;
    align-items:center;
    gap:10px;
    font-family:'Space Grotesk',sans-serif;
    font-weight:600;
    font-size:15px;
    letter-spacing:.02em;
  }
  .brand-mark .dot{
    width:8px; height:8px; border-radius:50%;
    background:var(--teal);
    box-shadow:0 0 0 3px rgba(63,199,176,.15);
  }
  .brand-mark span.dim{ color:var(--text-muted); font-weight:400; }

  .eyebrow{
    margin-top:64px;
    font-family:'IBM Plex Mono',monospace;
    font-size:11.5px;
    letter-spacing:.16em;
    text-transform:uppercase;
    color:var(--amber);
    display:flex; align-items:center; gap:10px;
  }
  .eyebrow::before{
    content:'';
    width:22px; height:1px;
    background:var(--amber);
    display:inline-block;
  }

  h1.headline{
    font-family:'Space Grotesk',sans-serif;
    font-weight:600;
    font-size:44px;
    line-height:1.14;
    letter-spacing:-0.01em;
    margin:18px 0 0;
    max-width:9.6em;
  }
  h1.headline em{
    font-style:normal;
    color:var(--teal);
  }

  .sub{
    margin:18px 0 0;
    max-width:34ch;
    color:var(--text-mid);
    font-size:15px;
    line-height:1.65;
  }

  .role-row{
    margin-top:28px;
    display:flex;
    flex-wrap:wrap;
    gap:8px;
  }
  .role-chip{
    font-family:'IBM Plex Mono',monospace;
    font-size:11px;
    letter-spacing:.02em;
    color:var(--text-mid);
    border:1px solid var(--line);
    background:var(--bg-panel-2);
    padding:5px 10px;
    border-radius:100px;
  }

  /* live console — signature element */
  .console{
    margin-top:auto;
    padding-top:36px;
  }
  .console-frame{
    border:1px solid var(--line);
    border-radius:var(--radius);
    background:#0d0f16;
    overflow:hidden;
  }
  .console-titlebar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:10px 14px;
    border-bottom:1px solid var(--line-soft);
    background:var(--bg-panel-2);
  }
  .console-titlebar .name{
    font-family:'IBM Plex Mono',monospace;
    font-size:11px;
    color:var(--text-muted);
    letter-spacing:.05em;
  }
  .console-titlebar .live{
    display:flex; align-items:center; gap:6px;
    font-family:'IBM Plex Mono',monospace;
    font-size:10.5px;
    color:var(--teal);
    letter-spacing:.08em;
  }
  .console-titlebar .live .pulse{
    width:6px; height:6px; border-radius:50%;
    background:var(--teal);
    animation:pulse 1.6s ease-in-out infinite;
  }
  @keyframes pulse{
    0%,100%{ opacity:1; box-shadow:0 0 0 0 rgba(63,199,176,.35); }
    50%{ opacity:.5; box-shadow:0 0 0 5px rgba(63,199,176,0); }
  }

  .console-body{
    height:198px;
    overflow:hidden;
    position:relative;
    -webkit-mask-image:linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
    mask-image:linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
  }
  .console-feed{
    display:flex;
    flex-direction:column;
    animation:scrollFeed 22s linear infinite;
  }
  .console-feed:hover{ animation-play-state:paused; }
  @keyframes scrollFeed{
    from{ transform:translateY(0); }
    to{ transform:translateY(-50%); }
  }
  .log-line{
    font-family:'IBM Plex Mono',monospace;
    font-size:11.5px;
    line-height:1.9;
    padding:2px 14px;
    white-space:nowrap;
    color:var(--text-mid);
  }
  .log-line .tag{
    display:inline-block;
    min-width:78px;
    color:var(--text-muted);
  }
  .log-line .ok{ color:var(--teal); }
  .log-line .warn{ color:var(--amber); }
  .log-line .id{ color:var(--text-muted); }

  .console-foot{
    display:flex;
    justify-content:space-between;
    margin-top:10px;
    font-family:'IBM Plex Mono',monospace;
    font-size:10.5px;
    color:var(--text-muted);
    letter-spacing:.04em;
  }

  /* ---------------------------------------------------------------- */
  /* RIGHT — sign-in form                                              */
  /* ---------------------------------------------------------------- */
  .form-side{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:40px;
  }
  .form-wrap{
    width:100%;
    max-width:378px;
  }
  .form-wrap h2{
    font-family:'Space Grotesk',sans-serif;
    font-size:22px;
    font-weight:600;
    margin:0 0 6px;
  }
  .form-wrap p.lead{
    margin:0 0 32px;
    color:var(--text-muted);
    font-size:13.5px;
    line-height:1.6;
  }

  .alert{
    display:flex;
    gap:10px;
    align-items:flex-start;
    background:rgba(224,97,107,.08);
    border:1px solid rgba(224,97,107,.3);
    color:#f0a3aa;
    font-size:13px;
    line-height:1.5;
    padding:11px 13px;
    border-radius:8px;
    margin-bottom:22px;
  }

  .field{ margin-bottom:18px; }
  .field label{
    display:block;
    font-size:12px;
    font-weight:500;
    color:var(--text-mid);
    margin-bottom:7px;
    letter-spacing:.01em;
  }
  .field input{
    width:100%;
    background:var(--bg-panel-2);
    border:1px solid var(--line);
    color:var(--text-hi);
    font-size:14.5px;
    font-family:'Inter',sans-serif;
    padding:11px 13px;
    border-radius:8px;
    outline:none;
    transition:border-color .15s ease, background .15s ease;
  }
  .field input::placeholder{ color:#565c6b; }
  .field input:focus{
    border-color:var(--teal);
    background:var(--bg-elevated);
  }
  .field input:focus-visible{
    box-shadow:0 0 0 3px rgba(63,199,176,.18);
  }

  .row-between{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:-6px 0 24px;
  }
  .remember{
    display:flex; align-items:center; gap:7px;
    font-size:12.5px;
    color:var(--text-muted);
  }
  .remember input{ accent-color:var(--teal); }
  .link-muted{
    font-size:12.5px;
    color:var(--text-muted);
    text-decoration:none;
    border-bottom:1px solid var(--line);
  }
  .link-muted:hover{ color:var(--text-mid); border-color:var(--text-muted); }

  .btn-primary{
    width:100%;
    background:var(--teal);
    color:#0b1a17;
    font-weight:600;
    font-size:14.5px;
    border:none;
    padding:12.5px 0;
    border-radius:8px;
    cursor:pointer;
    letter-spacing:.01em;
    transition:filter .15s ease, transform .1s ease;
  }
  .btn-primary:hover{ filter:brightness(1.08); }
  .btn-primary:active{ transform:translateY(1px); }
  .btn-primary:focus-visible{
    outline:2px solid var(--teal);
    outline-offset:3px;
  }

  .divider{
    display:flex; align-items:center; gap:12px;
    margin:28px 0 20px;
    color:var(--text-muted);
    font-size:11px;
    font-family:'IBM Plex Mono',monospace;
    letter-spacing:.08em;
    text-transform:uppercase;
  }
  .divider::before,.divider::after{
    content:'';
    flex:1;
    height:1px;
    background:var(--line);
  }

  .invite-note{
    display:flex;
    gap:10px;
    padding:13px 14px;
    border:1px dashed var(--line);
    border-radius:8px;
    background:var(--bg-panel-2);
  }
  .invite-note svg{ flex-shrink:0; margin-top:1px; }
  .invite-note p{
    margin:0;
    font-size:12.5px;
    line-height:1.6;
    color:var(--text-muted);
  }
  .invite-note strong{ color:var(--text-mid); font-weight:500; }

  .form-footer{
    margin-top:36px;
    font-size:11.5px;
    color:#4d5261;
    font-family:'IBM Plex Mono',monospace;
    letter-spacing:.03em;
  }

  /* ---------------------------------------------------------------- */
  @media (max-width: 940px){
    .shell{ grid-template-columns:1fr; }
    .brand-side{
      border-right:none;
      border-bottom:1px solid var(--line);
      padding:40px 28px 32px;
    }
    h1.headline{ font-size:32px; }
    .console{ margin-top:32px; }
    .form-side{ padding:36px 24px 56px; }
  }

  @media (prefers-reduced-motion: reduce){
    .console-feed{ animation:none; }
    .console-titlebar .live .pulse{ animation:none; }
  }

/* ---------------------------------------------------------------- */
/* Centered single-card layout — used by forgot/reset/accept-invite  */
/* ---------------------------------------------------------------- */
.center-shell{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px 24px;
}
.center-card{
  width:100%;
  max-width:400px;
}
.center-card .back-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-family:'IBM Plex Mono',monospace;
  font-size:11.5px;
  color:var(--text-muted);
  text-decoration:none;
  margin-bottom:28px;
}
.center-card .back-link:hover{ color:var(--text-mid); }
.help-text{
  margin:0 0 28px;
  color:var(--text-muted);
  font-size:13.5px;
  line-height:1.65;
}
.success-box{
  display:flex;
  gap:12px;
  padding:16px;
  border-radius:8px;
  background:rgba(63,199,176,.08);
  border:1px solid rgba(63,199,176,.3);
  color:#8fe0d3;
  font-size:13.5px;
  line-height:1.6;
}
