  /* ---------- 1 ▸ Page shell (desktop default) ------------- */
  /* style.css's global reset locks BOTH html and body with
     `overflow:hidden; height:100%`. Releasing only `body` (as the old ≤600px
     query did) left the OUTER html clipping the overflow, so a sign-in card
     taller than the viewport — small/landscape phone, on-screen keyboard,
     large text — couldn't be scrolled into view. Restore vertical scroll on
     html AND body: when the card fits, overflow-y:auto shows no scrollbar, so
     the centred single-screen look is preserved (#sign-in centres with
     margin:auto, which stays reachable from the top when it does overflow). */
  html,
  body{
    height:auto;
    min-height:100%;
    overflow-x:hidden;
    overflow-y:auto;
  }
  body{
    margin:0;
    background:#08090a;
    color:#0ff;
    font-family:monospace;

    display:flex;
    flex-direction:column;
    align-items:center;   /* horizontal centring */
    min-height:100vh;
  }

  /* ---------- 2 ▸ Sign-in wrapper -------------------------- */
  .login-card{
    margin:auto;                 /* perfect centre */
    padding:2rem;
    background:rgba(0,0,0,.8);
    border:1px solid #0ff3;
    border-radius:10px;
    backdrop-filter:blur(12px);
    box-shadow:0 0 30px rgba(0,255,255,.2);
    width:100%;
    max-width:440px;
    box-sizing:border-box;
    color:#e6f2f7;
  }

  .login-card h1{margin:.4rem 0 1rem;font:600 1.65rem/1.2 system-ui,sans-serif;color:#eef8fb}
  .login-eyebrow{color:#60dbe7;letter-spacing:.12em;text-transform:uppercase;font-size:.75rem}
  .login-intro,.login-privacy,.login-status{font:400 .9rem/1.6 system-ui,sans-serif}
  .login-intro{margin:0 0 1.5rem;color:#c4d9e2}
  .login-primary,.login-secondary{display:block;width:100%;box-sizing:border-box;text-align:center;padding:.8rem 1rem;border-radius:6px;font:600 .95rem/1.4 system-ui,sans-serif;text-decoration:none}
  .login-primary{background:#2fe9ff;color:#02080e;border:1px solid #2fe9ff}
  .login-secondary{background:transparent;color:#d4edf4;border:1px solid #41616b;margin-top:.7rem;cursor:pointer}
  .login-primary:focus-visible,.login-secondary:focus-visible,.login-text-button:focus-visible{outline:2px solid #fff;outline-offset:4px}
  .login-status{color:#c4d9e2;min-height:2.8em;margin:1rem 0 .4rem;overflow-wrap:anywhere}
  .login-privacy{border-top:1px solid #25414b;padding-top:1rem;color:#a7c4d0;font-size:.8rem}
  .login-text-button{padding:.2rem 0;color:#c8eaf4;text-decoration:underline;background:none;border:0;cursor:pointer;font:inherit}
  .login-card [hidden]{display:none!important}
  #sign-in{
    margin-top:1.25rem;
    width:100%;

    display:flex;
    align-items:center;
    justify-content:center;
  }

 /* ---------- 2A ▸ Clerk widget fixes -------------------- */
  .cl-form {
    display:flex !important;
    flex-direction:column !important;
    gap:.5rem !important;
  }
  .cl-form input[type="email"] {
    flex:0 0 auto !important;
    min-width:0 !important;
    width:100% !important;
    box-sizing:border-box !important;
    background:#fff !important;
    color:#000 !important;
    border:1px solid #ccc !important;
  }

  /* ---------- 3 ▸ Footer ---------------------------------- */
  footer.site-footer{
    width:100%;
    padding:1rem;
    background:#000;
    color: var(--text-muted, #adcdda);
    font-size:.85rem;
    text-align:center;
  }
  footer.site-footer a{color:inherit;text-decoration:underline;}

  /* ---------- 4 ▸ Canvas background ----------------------- */
  #cortex{
    position:fixed;
    inset:0;
    width:100%;
    height:100%;
    pointer-events:none;
    z-index:-1;
  }

  /* ---------- 5 ▸ Mobile tweaks (≤600 px) ----------------- */
  @media (max-width:600px){
    /* Pin footer */
    footer.site-footer{
      position:fixed;
      inset:auto 0 0 0;   /* bottom:0; left/right:0 */
      height:4rem;
      margin:0;
      z-index:10;
    }

    /* Make room for the pinned footer (scroll is handled globally above). */
    body{
      padding-bottom:calc(4rem + env(safe-area-inset-bottom));
    }

    /* Keep card centred despite extra padding */
    .login-card{
      margin-top:auto;
      margin-bottom:auto;
      padding:1.4rem;
      width:calc(100% - 2rem);
    }
  }

