/* Login page card: cream form side and a slanted navy blade, boxed on the dark page (drift.css draws the page). Loaded only by the login page; every rule sits under .lgx */
body.lgxp>main.wrap{max-width:none;padding:0}
.lgx{--navy:#1b2a44;--navy-2:#2c4066;--ink:#14203a;--gold:#f3b444;--gold-d:#a8721a;--paper:#f7f3ea;--line:#d9d1bf;--muted:#5f6675;--page:#0f1a2e;--display:"Fraunces",Georgia,serif;--body:"Inter",system-ui,sans-serif;--ease:cubic-bezier(.77,0,.18,1);--t:.9s;
  background:none;padding:40px 16px 56px;font-family:var(--body)}
.lgx *,.lgx *::before,.lgx *::after{box-sizing:border-box}
.lgx .stage{position:static;inset:auto;background:none;opacity:1;transition:none;animation:none}
.lgx .row{gap:0;flex-wrap:nowrap;align-items:center}
.lgx .f .bar{border-radius:0;overflow:visible;margin:0}
.lgx .auth{position:relative;max-width:1148px;margin:0 auto;min-height:600px;border-radius:22px;overflow:hidden;background:var(--paper);color:var(--ink);box-shadow:0 40px 90px -30px rgba(0,0,0,.7),0 0 0 1px rgba(243,180,68,.18)}
.lgx .auth:has(#paneIn .note:not([hidden])){min-height:680px}
.lgx .pane{position:absolute;top:0;bottom:0;width:44%;display:flex;flex-direction:column;justify-content:center;padding:48px 56px;transition:opacity .45s ease,transform var(--t) var(--ease)}
.lgx .pane{left:0}
.lgx .blade{position:absolute;top:-2px;bottom:-2px;left:50%;width:64%;transform:translateX(0) skewX(-11deg);transform-origin:50% 50%;background:linear-gradient(160deg,var(--navy) 0%,#22355a 55%,var(--navy-2) 100%);transition:transform var(--t) var(--ease),left var(--t) var(--ease);z-index:3;overflow:hidden}
.lgx .blade::before,.lgx .blade::after{content:"";position:absolute;top:0;bottom:0;width:2px;background:linear-gradient(180deg,transparent,var(--gold) 30%,var(--gold) 70%,transparent);opacity:.9}
.lgx .blade::before{left:0}
.lgx .blade::after{right:0}
.lgx .bl-in{position:absolute;inset:0;transform:skewX(11deg)}
.lgx .bl-copy{position:absolute;top:50%;width:min(340px,70%);transform:translateY(-50%);transition:opacity .4s ease,transform var(--t) var(--ease)}
.lgx .bl-copy{left:14%}
.lgx .eyebrow{font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:var(--gold);font-weight:600;margin:0 0 14px}
.lgx .bl-copy h2{font-family:var(--display);font-weight:700;font-size:clamp(40px,5vw,58px);line-height:1;margin:0 0 18px;color:#fff;letter-spacing:-.02em;text-wrap:balance;text-align:left}
.lgx .bl-copy h2 i{display:block;color:var(--gold);font-style:italic;font-weight:600}
.lgx .bl-copy p{color:#c9d3e3;font-size:15px;line-height:1.55;margin:0;max-width:30ch}
.lgx .char{position:absolute;width:230px;height:230px;bottom:-10px;left:46%;background:url(brand/login-character.webp) center/cover;-webkit-mask:radial-gradient(circle at 50% 50%,#000 46%,transparent 70%);mask:radial-gradient(circle at 50% 50%,#000 46%,transparent 70%);opacity:.95;transition:left var(--t) var(--ease),bottom var(--t) var(--ease),transform var(--t) var(--ease)}
.lgx .pane h1{font-family:var(--display);font-weight:700;font-size:30px;margin:0 0 6px;letter-spacing:-.01em;text-align:left;color:var(--ink)}
.lgx .pane h1::after{content:"";display:block;width:38px;height:3px;background:var(--gold);border-radius:2px;margin-top:10px}
.lgx .sub{color:var(--muted);font-size:14px;margin:4px 0 24px;line-height:1.5}
.lgx .note{margin:0 0 14px}
.lgx .gwrap{display:flex;justify-content:center;min-height:44px;max-width:360px;width:100%}
.lgx .gbtn{width:100%;max-width:360px;display:flex;justify-content:center}
.lgx #gmsg{margin:10px 0 0}
.lgx .or{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:12px;letter-spacing:.06em;margin:20px 0 6px}
.lgx .or::before,.lgx .or::after{content:"";flex:1;height:1px;background:var(--line)}
.lgx form{margin:0}
.lgx .f{position:relative;margin-top:16px}
.lgx .f label{display:block;font-size:12px;font-weight:600;color:var(--muted)}
.lgx .f input{width:100%;border:0;border-bottom:1.5px solid var(--line);background:transparent;font:500 16px var(--body);color:var(--ink);padding:8px 34px 9px 0;outline:none;border-radius:0;box-shadow:none;margin:0}
.lgx .f input:focus{border-color:var(--gold-d)}
.lgx .f .bar{position:absolute;left:0;bottom:0;height:2px;width:0;background:var(--gold);transition:width .35s var(--ease)}
.lgx .f input:focus~.bar{width:100%}
.lgx .f .ic{position:absolute;right:2px;bottom:9px;width:20px;height:20px;color:#8a8f99;background:none;border:0;padding:0;cursor:pointer;min-height:0;box-shadow:none}
.lgx .f .ic svg{width:20px;height:20px;display:block}
.lgx .row{display:flex;justify-content:flex-end;margin-top:12px}
.lgx .lk{color:var(--ink);font-weight:600;font-size:13px;text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:3px;text-decoration-thickness:2px;background:none;border:0;padding:0;cursor:pointer;font-family:var(--body);min-height:0;box-shadow:none;letter-spacing:0;text-transform:none;width:auto}
.lgx .btn{display:flex;align-items:center;justify-content:center;width:100%;height:50px;margin-top:22px;border:0;border-radius:999px;background:var(--navy);color:#fff!important;font:800 15px var(--body);letter-spacing:.08em;text-decoration:none;cursor:pointer;padding:0 1.2em}
.lgx .btn:hover{background:var(--navy-2)}
.lgx .alt{margin:22px 0 0;font-size:14px;color:var(--muted);text-align:center}
.lgx .alt .lk{font-size:14px}
@media (max-width:760px){
  .lgx .auth,.lgx .auth:has(#paneIn .note:not([hidden])){min-height:0;border-radius:20px}
  .lgx .blade{position:relative;left:0!important;width:auto;height:226px;transform:none!important;top:0;clip-path:polygon(0 0,100% 0,100% 82%,0 100%)}
  .lgx .blade::before,.lgx .blade::after{display:none}
  .lgx .bl-in{transform:none}
  .lgx .bl-copy{left:24px!important;top:26px;transform:none;width:62%}
  .lgx .bl-copy h2{font-size:38px;margin-bottom:10px}
  .lgx .bl-copy p{font-size:13px;max-width:24ch}
  .lgx .eyebrow{margin-bottom:8px}
  .lgx .char{width:170px;height:170px;left:auto;right:-14px;bottom:10px}
  .lgx .stage{display:grid}
  .lgx .pane{position:relative;grid-area:1/1;width:auto;padding:12px 22px 28px;justify-content:flex-start}
  .lgx .pane h1{display:none}
  .lgx .sub{margin-top:0}
}
@media (prefers-reduced-motion:reduce){
  .lgx .pane,.lgx .blade,.lgx .bl-copy,.lgx .char,.lgx .f .bar{transition:none!important}
}
/* Intro, once on page load (about 0.9s): the card rises, the blade sweeps in from the side it rests on, then the words fade in. The page script drops .intro on the first tap or focus, so the card is usable at once. Skipped when an error shows or the device asks for less motion */
@media (prefers-reduced-motion:no-preference){
  .lgx .auth.intro:not(:has(.note.bad:not([hidden]))){animation:lgi1 .45s cubic-bezier(.2,.7,.2,1) backwards}
  .lgx .auth.intro:not(:has(.note.bad:not([hidden]))) .blade{animation:lgi2 .5s var(--ease) .25s backwards}
  .lgx .auth.intro:not(:has(.note.bad:not([hidden]))) :is(.bl-copy,.char,.pane>*){animation:lgi4 .3s ease-out .62s backwards}
  .lgx .auth.intro:not(:has(.note.bad:not([hidden]))) :is(.char,.pane>.sub){animation-delay:.68s}
  .lgx .auth.intro:not(:has(.note.bad:not([hidden]))) .pane>:not(h1):not(.sub){animation-delay:.74s}
  @media (max-width:760px){.lgx .auth.intro:not(:has(.note.bad:not([hidden]))) .blade{animation-name:lgi5}}
}
@keyframes lgi1{from{opacity:0;translate:0 24px}}
@keyframes lgi2{from{translate:120% 0}}
@keyframes lgi3{from{translate:-120% 0}}
@keyframes lgi4{from{opacity:0;translate:0 10px}}
@keyframes lgi5{from{translate:0 -100%}}
