/* Extracted unchanged from the approved sign-in prototype (portal-login.html, 2026-10-14). */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,680;1,9..144,500&family=Source+Sans+3:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');
  :root{
    --ink:#020617; --navy:#0f172a; --navy-2:#1e293b; --teal:#00A8AC; --teal-b:#00B8C0; --teal-d:#00747a; --teal-dd:#00585f;
    --line:#94a3b8; --txt:#0f172a;
    --display:'Fraunces',Georgia,serif; --body:'Source Sans 3',system-ui,sans-serif; --mono:'IBM Plex Mono',ui-monospace,monospace;
    --ease:cubic-bezier(.22,.61,.36,1);
  }
  *{ box-sizing:border-box; }
  html,body{ height:100%; margin:0; }
  body{ background:var(--ink); color:var(--txt); font:16px/1.5 var(--body); overflow:hidden; -webkit-font-smoothing:antialiased; }
  button,input{ font:inherit; }
  a{ color:inherit; text-decoration:none; }

  /* ============ LOGIN ============ */
  .login{ position:fixed; inset:0; z-index:5; display:flex; background:var(--ink); transition:opacity .55s var(--ease) .15s; }
  .login.done{ opacity:0; pointer-events:none; }
  .brandpane{
    flex:1; position:relative; overflow:hidden; color:#e5e7eb; padding:48px 56px; display:flex; flex-direction:column;
    background:
      radial-gradient(900px 600px at 15% 10%, rgba(0,184,192,.32), transparent 62%),
      radial-gradient(700px 520px at 90% 95%, rgba(0,116,122,.45), transparent 60%),
      linear-gradient(165deg,#0f172a,#020617);
  }
  .bars{ position:absolute; right:-40px; bottom:-30px; width:min(560px,60%); opacity:.9; pointer-events:none; }
  .bars rect{ fill:rgba(0,184,192,.10); stroke:rgba(0,184,192,.28); stroke-width:1; transform-origin:bottom; animation:rise 1.4s var(--ease) both; }
  .bars rect:nth-child(2){ animation-delay:.12s } .bars rect:nth-child(3){ animation-delay:.24s } .bars rect:nth-child(4){ animation-delay:.36s } .bars rect:nth-child(5){ animation-delay:.48s }
  @keyframes rise{ from{ transform:scaleY(.05); opacity:0 } to{ transform:scaleY(1); opacity:1 } }
  .brand{ display:flex; align-items:center; gap:12px; position:relative; z-index:1; }
  .mark{ width:42px; height:42px; border-radius:10px; background:#fff; display:grid; place-items:center; box-shadow:0 10px 24px -8px rgba(0,0,0,.6); }
  .mark img{ width:23px; height:auto; display:block; }
  .bw{ font:680 17px/1 var(--display); letter-spacing:.02em; }
  .bw small{ display:block; margin-top:5px; font:500 9.5px/1 var(--mono); letter-spacing:.2em; color:#94a3b8; }
  .pitch{ margin:auto 0; max-width:520px; position:relative; z-index:1; }
  .eyebrow{ font:500 12px var(--mono); letter-spacing:.18em; text-transform:uppercase; color:#7fe8ec; display:flex; gap:12px; align-items:center; }
  .eyebrow::before{ content:""; width:26px; height:1px; background:#7fe8ec; }
  .pitch h1{ margin:16px 0 14px; font:600 clamp(2.2rem,3.6vw,3.3rem)/1.06 var(--display); letter-spacing:-.018em; color:#fff; }
  .pitch h1 em{ font-style:italic; font-weight:500; color:#7fe8ec; }
  .pitch p{ margin:0; font-size:18px; color:#cbd5e1; max-width:44ch; }
  .points{ list-style:none; margin:30px 0 0; padding:0; display:grid; gap:12px; }
  .points li{ display:flex; gap:12px; align-items:center; color:#e5e7eb; font-weight:500; }
  .points svg{ width:18px; height:18px; color:#7fe8ec; flex:none; }
  .legal{ position:relative; z-index:1; font:500 11px var(--mono); letter-spacing:.06em; color:#94a3b8; }

  .formpane{ flex:0 0 min(560px,46vw); background:#fff; display:flex; flex-direction:column; justify-content:center; padding:48px 60px; position:relative;
    transition:flex-basis .75s var(--ease), padding .75s var(--ease), opacity .45s var(--ease); }
  .login.go .formpane{ flex-basis:0; padding-left:0; padding-right:0; opacity:0; }
  .card{ width:100%; max-width:400px; margin:0 auto; }
  .card h2{ margin:0 0 6px; font:600 32px/1.15 var(--display); letter-spacing:-.01em; }
  .card .sub{ margin:0 0 26px; color:#475569; }
  .field{ margin-bottom:16px; }
  .field label{ display:block; margin-bottom:7px; font:700 14px var(--body); color:#0f172a; }
  .ctl{ position:relative; }
  .ctl input{
    width:100%; height:50px; border:1.5px solid #64748b; border-radius:11px; background:#fff; padding:0 46px 0 46px; font-size:17px; color:#0f172a;
    transition:border-color .15s, box-shadow .15s;
  }
  .ctl input::placeholder{ color:#64748b; }
  .ctl input:focus{ outline:none; border-color:var(--teal-d); box-shadow:0 0 0 4px rgba(0,168,172,.22); }
  .ctl .ic{ position:absolute; left:15px; top:50%; transform:translateY(-50%); width:19px; height:19px; color:#475569; pointer-events:none; }
  .ctl .eye{ position:absolute; right:6px; top:50%; transform:translateY(-50%); width:38px; height:38px; border:0; background:transparent; border-radius:8px; color:#475569; cursor:pointer; display:grid; place-items:center; }
  .ctl .eye:hover{ background:#eef2f7; } .ctl .eye svg{ width:19px; height:19px; }
  .row{ display:flex; justify-content:space-between; align-items:center; margin:2px 0 20px; font-size:14.5px; }
  .row label{ display:flex; gap:9px; align-items:center; cursor:pointer; color:#334155; font-weight:500; }
  .row input{ width:17px; height:17px; accent-color:var(--teal-d); }
  .link{ color:var(--teal-d); font-weight:600; cursor:pointer; background:none; border:0; padding:0; }
  .link:hover{ text-decoration:underline; }
  .btn{
    width:100%; height:52px; border:0; border-radius:11px; cursor:pointer; font:700 16px var(--body); display:flex; align-items:center; justify-content:center; gap:10px;
    background:linear-gradient(160deg,var(--teal-d),var(--teal-dd)); color:#fff; box-shadow:0 14px 26px -14px rgba(0,88,95,.8);
    transition:transform .15s var(--ease), box-shadow .15s, background .3s;
  }
  .btn:hover{ transform:translateY(-1px); box-shadow:0 18px 30px -14px rgba(0,88,95,.9); }
  .btn:focus-visible{ outline:3px solid rgba(0,168,172,.5); outline-offset:3px; }
  .btn.loading{ pointer-events:none; opacity:.95; }
  .btn.ok{ background:linear-gradient(160deg,#0f9d6b,#0b7a53); pointer-events:none; }
  .spin{ width:20px; height:20px; border-radius:50%; border:3px solid rgba(255,255,255,.35); border-top-color:#fff; animation:sp .7s linear infinite; }
  @keyframes sp{ to{ transform:rotate(360deg) } }
  .or{ display:flex; align-items:center; gap:14px; margin:20px 0; color:#64748b; font:500 12px var(--mono); letter-spacing:.12em; text-transform:uppercase; }
  .or::before,.or::after{ content:""; flex:1; height:1px; background:#cfd8e3; }
  .gbtn{ width:100%; height:50px; border:1.5px solid #64748b; border-radius:11px; background:#fff; color:#0f172a; font:700 15.5px var(--body); display:flex; align-items:center; justify-content:center; gap:11px; cursor:pointer; transition:background .15s, border-color .15s; }
  .gbtn:hover{ background:#f4f7fa; border-color:#334155; }
  .gbtn svg{ width:20px; height:20px; }
  .err{ display:none; margin:0 0 14px; padding:11px 14px; border-radius:10px; background:#fde8e6; border:1px solid #f3b8b1; color:#8a1f16; font-weight:600; font-size:14.5px; }
  .err.on{ display:block; }
  .shake{ animation:shake .42s; }
  @keyframes shake{ 20%{ transform:translateX(-7px) } 40%{ transform:translateX(7px) } 60%{ transform:translateX(-5px) } 80%{ transform:translateX(5px) } }
  .foot{ margin-top:26px; text-align:center; color:#475569; font-size:15px; }
  .proto{ position:absolute; left:60px; right:60px; bottom:22px; font:500 11px var(--mono); letter-spacing:.05em; color:#64748b; }

  /* ============ PORTAL (after sign-in) ============ */
  .portal{ position:fixed; inset:0; z-index:1; background:#fff; display:flex; flex-direction:column; overflow:auto; }
  .nav{ background:var(--navy); color:#e5e7eb; display:flex; justify-content:space-between; align-items:center; padding:14px 32px; transform:translateY(-100%); transition:transform .6s var(--ease) .1s; }
  .nav .brand .mark{ width:36px; height:36px; box-shadow:none; } .nav .brand .mark img{ width:20px; }
  .nav .bw{ font-size:15px; } .nav .bw small{ font-size:9px; }
  .links{ display:flex; gap:26px; font:500 14px var(--body); color:#cbd5e1; }
  .who{ display:flex; align-items:center; gap:12px; }
  .chip{ display:inline-flex; align-items:center; gap:8px; border:1px solid rgba(127,232,236,.55); color:#7fe8ec; font:700 13.5px var(--body); padding:7px 13px; border-radius:8px; }
  .chip i{ width:8px; height:8px; border-radius:50%; background:#34d399; box-shadow:0 0 0 4px rgba(52,211,153,.2); }
  .signout{ background:transparent; border:1px solid rgba(229,231,235,.35); color:#e5e7eb; font:600 13.5px var(--body); padding:7px 13px; border-radius:8px; cursor:pointer; }
  .signout:hover{ background:rgba(255,255,255,.08); }
  .body{ flex:1; display:grid; grid-template-columns:1.75fr 1fr; min-height:0; }
  .left{ padding:40px 48px; background:#fff; }
  .welcome{ display:inline-flex; align-items:center; gap:10px; padding:7px 13px; border-radius:99px; background:#e3f4f4; border:1px solid #a8dcde; color:#005a5e; font:700 13.5px var(--body); margin-bottom:14px; }
  .left h1{ margin:0 0 10px; font:600 clamp(2rem,3vw,2.7rem)/1.08 var(--display); letter-spacing:-.015em; max-width:18ch; }
  .left .lede{ margin:0; max-width:56ch; font-size:18px; color:#334155; }
  .sec{ display:flex; align-items:center; gap:14px; margin:30px 0 14px; font:700 12.5px var(--mono); letter-spacing:.12em; text-transform:uppercase; color:#334155; }
  .sec::after{ content:""; flex:1; height:1px; background:#cfd8e3; }
  .cards{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
  .c{ border:1.5px solid #b4c0cf; border-top:4px solid var(--teal); border-radius:12px; padding:20px 22px 17px; display:flex; flex-direction:column; gap:9px; min-height:178px; background:#fff; }
  .c h3{ margin:0; font:600 21px/1.2 var(--display); }
  .c p{ margin:0; color:#475569; font-size:15px; flex:1; }
  .go{ font:600 13px var(--mono); letter-spacing:.05em; text-transform:uppercase; color:var(--teal-d); display:flex; gap:8px; align-items:center; }
  .go svg{ width:15px; height:15px; }
  .pill{ display:inline-flex; align-items:center; gap:6px; font:600 11.5px/1 var(--body); padding:5px 9px; border-radius:99px; border:1px solid; width:fit-content; }
  .pill i{ width:7px; height:7px; border-radius:50%; background:currentColor; }
  .pub{ background:#e3f4f4; color:#005a5e; border-color:#a8dcde; }
  .right{ background:radial-gradient(640px 460px at 30% 0%, rgba(0,184,192,.30), transparent 60%), linear-gradient(175deg,#0f172a,#020617); color:#e5e7eb; padding:34px 32px; display:flex; flex-direction:column; gap:14px; transform:translateX(30px); opacity:0; transition:transform .7s var(--ease) .25s, opacity .7s var(--ease) .25s; }
  .right h2{ margin:0; font:600 26px/1.15 var(--display); }
  .right p{ margin:0; color:#94a3b8; }
  .me{ display:flex; align-items:center; gap:12px; background:rgba(255,255,255,.08); border:1px solid rgba(229,231,235,.2); border-radius:12px; padding:12px 14px; }
  .av{ width:38px; height:38px; border-radius:50%; background:var(--teal); color:#00161a; display:grid; place-items:center; font-weight:700; flex:none; }
  .me small{ display:block; color:#94a3b8; font-size:12.5px; }
  .tool{ display:flex; align-items:center; gap:12px; background:rgba(255,255,255,.06); border:1px solid rgba(229,231,235,.16); border-radius:10px; padding:11px 14px; font-weight:600; opacity:0; transform:translateY(10px); transition:opacity .5s var(--ease), transform .5s var(--ease); }
  .tool > svg{ width:16px; height:16px; color:#7fe8ec; flex:none; }
  .tool .pill{ margin-left:auto; }
  .tool .opn{ color:#7fe8ec; font:600 12px var(--mono); letter-spacing:.04em; text-transform:uppercase; display:flex; gap:6px; align-items:center; }
  .tool .opn svg{ width:12px; height:12px; }
  .ok{ background:rgba(16,185,129,.14); color:#6ee7b7; border-color:rgba(16,185,129,.4); }
  .bad{ background:rgba(239,68,68,.15); color:#fca5a5; border-color:rgba(239,68,68,.45); }
  .tm{ background:rgba(197,160,89,.14); color:#e6c98b; border-color:rgba(197,160,89,.45); }
  .note{ margin-top:auto; font:500 11px var(--mono); letter-spacing:.06em; color:#94a3b8; }
  .reveal{ opacity:0; transform:translateY(14px); transition:opacity .6s var(--ease), transform .6s var(--ease); }
  .portal.in .nav{ transform:none; }
  .portal.in .right{ transform:none; opacity:1; }
  .portal.in .reveal{ opacity:1; transform:none; }
  .portal.in .tool{ opacity:1; transform:none; }
  .toast{ position:fixed; left:50%; bottom:28px; transform:translate(-50%,20px); background:#0f172a; color:#fff; padding:12px 18px; border-radius:10px; font-weight:600; opacity:0; transition:opacity .25s, transform .25s; z-index:20; box-shadow:0 18px 30px -16px rgba(0,0,0,.6); }
  .toast.on{ opacity:1; transform:translate(-50%,0); }
  .sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
  @media (max-width:900px){
    body{ overflow:auto; }
    .login{ flex-direction:column; position:static; min-height:100vh; }
    .brandpane{ padding:28px; min-height:300px; } .pitch{ margin:28px 0; } .points,.bars{ display:none; }
    .formpane{ flex:none; padding:34px 24px 60px; } .proto{ left:24px; }
    .body{ grid-template-columns:1fr; } .cards{ grid-template-columns:1fr; } .links{ display:none; }
  }
  @media (prefers-reduced-motion:reduce){ *{ animation:none !important; transition-duration:.01s !important; } }
