/* ADESS CERP login page standalone stylesheet. Patch V27B: browser autofill friendly login. */
:root{--navy:#061d3d;--gold:#f6b600;--ink:#0b1730;--muted:#53647d;--line:#dce5f0;--soft:#f6f8fb;--danger:#a31f1f;--green:#15aa5c}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Arial,'Helvetica Neue',sans-serif;background:linear-gradient(135deg,#eef5ff 0%,#f8fbff 45%,#fff7dc 100%);color:var(--ink)}a{color:inherit;text-decoration:none}.login-shell{min-height:100vh;display:grid;place-items:center;padding:28px}.login-card{width:min(1040px,100%);display:grid;grid-template-columns:1fr 440px;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:0 24px 70px rgba(6,29,61,.14);overflow:hidden}.brand-panel{position:relative;padding:42px 42px 34px;background:linear-gradient(145deg,var(--navy),#092d5c);color:#fff;min-height:650px}.brand-panel:before{content:"";position:absolute;inset:auto -70px -95px auto;width:260px;height:260px;border-radius:50%;background:rgba(246,182,0,.18)}.brand-panel:after{content:"";position:absolute;left:38px;bottom:35px;width:150px;height:150px;border-radius:38px;background:rgba(255,255,255,.06);transform:rotate(8deg)}.logo-box{position:relative;z-index:2;display:flex;align-items:center;gap:16px;margin-bottom:42px}.logo-box img{max-width:210px;max-height:76px;object-fit:contain;filter:drop-shadow(0 12px 20px rgba(0,0,0,.16))}.brand-panel h1{position:relative;z-index:2;margin:0 0 14px;font-size:44px;line-height:1.08;letter-spacing:.2px}.brand-panel p{position:relative;z-index:2;margin:0;color:#d9e6f6;font-size:17px;line-height:1.55;max-width:460px}.feature-list{position:relative;z-index:2;display:grid;gap:14px;margin-top:36px}.feature{display:flex;gap:12px;align-items:flex-start;padding:14px;border:1px solid rgba(255,255,255,.14);border-radius:16px;background:rgba(255,255,255,.07);backdrop-filter:blur(8px)}.feature i{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--gold);color:var(--navy);font-style:normal;font-weight:900;flex:0 0 auto}.feature b{display:block;font-size:15px}.feature small{display:block;margin-top:3px;color:#c8d9ec;line-height:1.35}.form-panel{padding:46px 46px 34px;display:flex;flex-direction:column;justify-content:center}.form-panel h2{margin:0 0 8px;font-size:32px;color:var(--navy)}.form-panel .sub{margin:0 0 26px;color:var(--muted);line-height:1.45}.err{background:#fff0f0;color:var(--danger);border:1px solid #ffc9c9;padding:12px 14px;border-radius:12px;margin-bottom:16px;font-weight:700}.field{display:block;margin-bottom:16px}.field span{display:block;font-weight:900;margin:0 0 8px;color:#102743}.input-wrap{height:50px;border:1px solid #cfdbea;border-radius:14px;display:flex;align-items:center;overflow:hidden;background:#fff;transition:.18s}.input-wrap:focus-within{border-color:var(--gold);box-shadow:0 0 0 4px rgba(246,182,0,.16)}.input-wrap input{width:100%;height:100%;border:0;outline:0;padding:0 14px;font-size:16px;background:transparent}.input-icon{width:48px;text-align:center;color:#6b7c93}.toggle-pass{border:0;background:#f3f6fb;color:#183456;font-weight:900;height:100%;padding:0 13px;cursor:pointer}.row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:6px 0 18px}.check{display:flex;align-items:center;gap:9px;color:#2d405c;font-weight:800;font-size:14px}.check input{width:18px;height:18px;accent-color:var(--navy)}.link{color:#092d5c;font-weight:900;font-size:14px}.login-btn{height:52px;width:100%;border:0;border-radius:14px;background:var(--navy);color:#fff;font-size:16px;font-weight:900;cursor:pointer;box-shadow:0 14px 28px rgba(6,29,61,.18)}.login-btn:hover{filter:brightness(1.08)}.remember-note{margin:10px 0 0;color:#697b91;font-size:12px;line-height:1.45}.support-box{margin-top:24px;padding:16px;border:1px solid #dfe8f3;border-radius:16px;background:#f8fbff}.support-box b{display:block;color:#102743;margin-bottom:8px}.support-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.pill{display:inline-flex;align-items:center;gap:7px;border:1px solid #d8e2ee;border-radius:999px;background:#fff;padding:9px 12px;font-size:13px;font-weight:900;color:#183456}.footer-note{margin-top:20px;color:#8090a5;font-size:12px;text-align:center}.saved-note{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-3px 0 14px;padding:10px 12px;border-radius:12px;background:#fff9e8;border:1px solid #ffe3a4;color:#6a4b00;font-size:13px}.saved-note a{font-weight:900;color:#092d5c}@media(max-width:900px){.login-shell{padding:16px}.login-card{grid-template-columns:1fr}.brand-panel{min-height:auto;padding:30px 26px}.brand-panel h1{font-size:32px}.feature-list{grid-template-columns:1fr;gap:10px;margin-top:22px}.form-panel{padding:30px 24px}.row{align-items:flex-start;flex-direction:column}.logo-box{margin-bottom:24px}.logo-box img{max-width:170px}}
/* v749: left = TrakBAS product logo from SA (no white box: the dark-background logo sits on the navy); right = the company's own logo */
.logo-box.product-logo img{max-width:220px;max-height:64px;background:none;filter:none}
.product-word{display:grid;gap:2px;color:#fff}.product-word b{font-size:30px;letter-spacing:.08em;font-weight:900}.product-word small{font-size:14px;color:#c9d6ea;font-weight:600}
.company-logo{display:flex;justify-content:flex-end;margin:-8px 0 14px}.company-logo img{max-width:180px;max-height:64px;object-fit:contain}
@media(max-width:860px){.company-logo{justify-content:flex-start}}
/* v750: TrakBAS lockup - the logo at the height SA sets; the name fills the top 5/8 of that height, the line the bottom 3/8 */
.tb-lockup{position:relative;z-index:2;display:flex;align-items:center;gap:calc(var(--tb-h) * .22);margin-bottom:34px;min-height:var(--tb-h)}
.tb-lockup img{height:var(--tb-h);width:auto;max-width:calc(var(--tb-h) * 2.6);object-fit:contain;flex:0 0 auto}
.tb-words{display:grid;grid-template-rows:5fr 3fr;height:var(--tb-h);min-width:0}
.tb-words b{display:flex;align-items:flex-end;font-size:calc(var(--tb-h) * .54);line-height:1;font-weight:900;letter-spacing:.06em;color:#fff;white-space:nowrap}
.tb-words small{display:flex;align-items:center;font-size:calc(var(--tb-h) * .2);line-height:1.1;font-weight:600;color:#c9d6ea;letter-spacing:.01em}
.company-logo{display:flex;align-items:center;gap:14px;justify-content:flex-start;margin:0 0 18px}
.company-logo img{max-width:120px;max-height:64px;object-fit:contain}
.company-logo b{font-size:17px;line-height:1.25;color:var(--navy);font-weight:800}
.feature-list{position:relative;z-index:2}
/* the story: request -> loading -> payment, 12 s, one scene at a time */
.tb-story{position:relative;z-index:2;margin:26px 0 0;padding:10px 12px 12px;border:1px solid rgba(255,255,255,.14);border-radius:18px;background:rgba(255,255,255,.05)}
.tb-story svg{display:block;width:100%;height:auto}
.tb-story figcaption{position:relative;height:20px;margin-top:4px;text-align:center;font-size:13.5px;color:#c9d6ea;font-weight:600}
.tb-cap{position:absolute;inset:0;opacity:0;animation:tbScene 12s infinite}
.tb-sc{opacity:0;animation:tbScene 12s infinite}
.tb-sc2,.tb-cap2{animation-delay:4s}.tb-sc3,.tb-cap3{animation-delay:8s}
@keyframes tbScene{0%{opacity:0}4%{opacity:1}30%{opacity:1}34%{opacity:0}100%{opacity:0}}
.tb-paper{animation:tbPaper 12s infinite}
@keyframes tbPaper{0%,6%{transform:translateX(0)}22%,100%{transform:translateX(205px)}}
.tb-tick{stroke-dasharray:60;stroke-dashoffset:60;animation:tbTick 12s infinite}
@keyframes tbTick{0%,22%{stroke-dashoffset:60}28%,100%{stroke-dashoffset:0}}
.tb-box{animation:tbBox 12s infinite}.tb-box.b1{animation-delay:4s}.tb-box.b2{animation-delay:4.4s}.tb-box.b3{animation-delay:4.8s}
@keyframes tbBox{0%{transform:translate(-190px,-10px);opacity:0}6%{opacity:1}12%,100%{transform:translate(0,0);opacity:1}}
.tb-truck{animation:tbTruck 12s infinite;animation-delay:4s}
@keyframes tbTruck{0%,18%{transform:translateX(0)}30%{transform:translateX(40px)}31%,100%{transform:translateX(0)}}
.tb-coin{opacity:0;animation:tbCoin 12s infinite}.tb-coin.c1{animation-delay:8.3s}.tb-coin.c2{animation-delay:9s}.tb-coin.c3{animation-delay:9.7s}
@keyframes tbCoin{0%{transform:translateY(0);opacity:0}2%{opacity:1}9%{transform:translateY(48px);opacity:1}11%,100%{transform:translateY(48px);opacity:0}}
@media(prefers-reduced-motion:reduce){.tb-sc,.tb-cap,.tb-paper,.tb-tick,.tb-box,.tb-truck,.tb-coin{animation:none}.tb-sc1,.tb-cap1{opacity:1}.tb-tick{stroke-dashoffset:0}.tb-paper{transform:translateX(205px)}}
@media(max-width:860px){.tb-story{display:none}.tb-lockup{margin-bottom:20px}}
.login-card>*{min-width:0}
/* v755: the logo and the name both follow SA's height everywhere (a 48 px cap for narrow windows kept the logo small while the name grew) */
/* v751: phones - no navy panel; the company logo on the left, TrakBAS on the right, so the sign-in fields show without scrolling;
   support contacts and the TrakBAS footer stay */
.tb-phone{display:none}
@media(max-width:860px){
  .brand-panel{display:none!important}
  .company-logo{justify-content:space-between;margin:0 0 14px}
  .company-logo>b{display:none}
  .company-logo img{max-height:48px;max-width:46%}
  .tb-phone{display:flex;align-items:center;justify-content:flex-end;font-weight:900;font-size:20px;letter-spacing:.06em;color:var(--navy);max-width:46%}
  .tb-phone img{max-height:40px;max-width:100%;object-fit:contain}
}
@media(max-width:860px){.tb-phone.on-dark{background:var(--navy);border-radius:10px;padding:6px 10px}}   /* v751: only a dark-background logo published - give it its navy */
/* v752: every badge the same size - wide enough for the longest one (set by the page in --tb-badge) */
.feature-list .feature i{width:var(--tb-badge,36px);height:var(--tb-badge,36px);min-width:var(--tb-badge,36px);font-size:12px;letter-spacing:.02em}
.feature-list .tb-story{margin:0}
.feature-list{display:grid;gap:12px}
.tb-cell{opacity:0;animation:tbCell 12s infinite}
@keyframes tbCell{0%{opacity:0}2%,30%{opacity:1}34%,100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.tb-cell{animation:none;opacity:1}}
/* v755: the built-in five-scene stories (app/LoginStory.php) - 4 s a scene, 20 s a round; no words inside, a dot per step */
.tbs svg{display:block;width:100%;height:auto}
.tbs-sc{opacity:0;animation:tbsScene 20s infinite;animation-delay:var(--d)}
@keyframes tbsScene{0%{opacity:0}1.5%,18.5%{opacity:1}20%,100%{opacity:0}}
.tbs-sc *{transform-box:fill-box}
.tbs-fly{animation:tbsFly 20s infinite;animation-delay:var(--d);animation-timing-function:cubic-bezier(.45,0,.2,1)}
@keyframes tbsFly{0%,3%{transform:translate(0,0)}12%,100%{transform:translate(var(--tx),var(--ty))}}
.tbs-pop{transform-origin:center;animation:tbsPop 20s infinite;animation-delay:calc(var(--d) + var(--pd,0s))}
@keyframes tbsPop{0%,7%{transform:scale(0);opacity:0}10%{transform:scale(1.12);opacity:1}12%,100%{transform:scale(1);opacity:1}}
.tbs-draw{stroke-dasharray:1;stroke-dashoffset:1;animation:tbsDraw 20s infinite;animation-delay:calc(var(--d) + var(--pd,0s))}
@keyframes tbsDraw{0%,9%{stroke-dashoffset:1}14%,100%{stroke-dashoffset:0}}
.tbs-drive{animation:tbsDrive 20s infinite;animation-delay:var(--d);animation-timing-function:ease-in-out}
@keyframes tbsDrive{0%,1%{transform:translateX(0)}16%,100%{transform:translateX(var(--dx))}}
.tbs-dash{animation:tbsDash 20s infinite linear;animation-delay:var(--d)}
@keyframes tbsDash{0%{stroke-dashoffset:0}20%,100%{stroke-dashoffset:66}}
.tbs-drop{opacity:0;animation:tbsDrop 20s infinite;animation-delay:calc(var(--d) + .3s)}
.tbs-drop.c2{animation-delay:calc(var(--d) + 1.1s)}.tbs-drop.c3{animation-delay:calc(var(--d) + 1.9s)}
@keyframes tbsDrop{0%{transform:translateY(0);opacity:0}1%{opacity:1}5%{transform:translateY(62px);opacity:1}6%,100%{transform:translateY(62px);opacity:0}}
.tbs-fill{transform-origin:left center;animation:tbsFill 20s infinite;animation-delay:calc(var(--d) + var(--pd,0s))}
@keyframes tbsFill{0%,2%{transform:scaleX(0)}13%,100%{transform:scaleX(1)}}
.tbs-wave{animation:tbsWave 20s infinite;animation-delay:var(--d)}
@keyframes tbsWave{0%,4%{opacity:0}6%{opacity:1}9%{opacity:.3}11%{opacity:1}14%{opacity:.3}16%,100%{opacity:1}}
.tbs-confetti{animation:tbsConfetti 20s infinite;animation-delay:var(--d)}
@keyframes tbsConfetti{0%,8%{transform:translateY(-30px);opacity:0}10%{opacity:1}19%{transform:translateY(40px);opacity:0}100%{opacity:0}}
.tbs-steps{list-style:none;margin:8px 0 0;padding:0;display:flex;justify-content:center;align-items:center;gap:0}
.tbs-steps li{display:flex;align-items:center}
.tbs-steps li+li::before{content:"";width:34px;height:2px;background:rgba(255,255,255,.2)}
.tbs-steps i{width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,.28);animation:tbsStep 20s infinite;animation-delay:var(--d)}
@keyframes tbsStep{0%,19%{background:#f6b600;transform:scale(1.35)}20%,100%{background:rgba(255,255,255,.28);transform:scale(1)}}
.tbs-own img,.tbs-own video{display:block;width:100%;height:auto;max-height:240px;object-fit:contain;border-radius:12px}
.tbs-owncap{margin-top:8px;text-align:center;font-size:13.5px;color:#c9d6ea;font-weight:600}
@media(prefers-reduced-motion:reduce){
  .tbs-sc,.tbs-fly,.tbs-pop,.tbs-draw,.tbs-drive,.tbs-dash,.tbs-drop,.tbs-fill,.tbs-wave,.tbs-confetti,.tbs-steps i{animation:none}
  .tbs-sc{opacity:0}.tbs-sc:last-child{opacity:1}.tbs-draw{stroke-dashoffset:0}.tbs-fly{transform:translate(var(--tx),var(--ty))}.tbs-drive{transform:translateX(var(--dx))}.tbs-drop{opacity:0}
  .tbs-steps li:last-child i{background:#f6b600}
}
/* v1073 eight-scene stories (@business): 4 s a scene, 32 s a round - the same moves with the timings scaled 5/8 */
.tbs8 .tbs-sc{animation-name:tbsScene8;animation-duration:32s}
@keyframes tbsScene8{0%{opacity:0}.94%,11.56%{opacity:1}12.5%,100%{opacity:0}}
.tbs8 .tbs-fly{animation-name:tbsFly8;animation-duration:32s}
@keyframes tbsFly8{0%,1.875%{transform:translate(0,0)}7.5%,100%{transform:translate(var(--tx),var(--ty))}}
.tbs8 .tbs-pop{animation-name:tbsPop8;animation-duration:32s}
@keyframes tbsPop8{0%,4.375%{transform:scale(0);opacity:0}6.25%{transform:scale(1.12);opacity:1}7.5%,100%{transform:scale(1);opacity:1}}
.tbs8 .tbs-draw{animation-name:tbsDraw8;animation-duration:32s}
@keyframes tbsDraw8{0%,5.625%{stroke-dashoffset:1}8.75%,100%{stroke-dashoffset:0}}
.tbs8 .tbs-drive{animation-name:tbsDrive8;animation-duration:32s}
@keyframes tbsDrive8{0%,.625%{transform:translateX(0)}10%,100%{transform:translateX(var(--dx))}}
.tbs8 .tbs-dash{animation-name:tbsDash8;animation-duration:32s}
@keyframes tbsDash8{0%{stroke-dashoffset:0}12.5%,100%{stroke-dashoffset:66}}
.tbs8 .tbs-drop{animation-name:tbsDrop8;animation-duration:32s}
@keyframes tbsDrop8{0%{transform:translateY(0);opacity:0}.625%{opacity:1}3.125%{transform:translateY(62px);opacity:1}3.75%,100%{transform:translateY(62px);opacity:0}}
.tbs8 .tbs-fill{animation-name:tbsFill8;animation-duration:32s}
@keyframes tbsFill8{0%,1.25%{transform:scaleX(0)}8.125%,100%{transform:scaleX(1)}}
.tbs8 .tbs-wave{animation-name:tbsWave8;animation-duration:32s}
@keyframes tbsWave8{0%,2.5%{opacity:0}3.75%{opacity:1}5.625%{opacity:.3}6.875%{opacity:1}8.75%{opacity:.3}10%,100%{opacity:1}}
.tbs8 .tbs-confetti{animation-name:tbsConfetti8;animation-duration:32s}
@keyframes tbsConfetti8{0%,5%{transform:translateY(-30px);opacity:0}6.25%{opacity:1}11.875%{transform:translateY(40px);opacity:0}100%{opacity:0}}
.tbs8 .tbs-steps li+li::before{width:20px}
.tbs-caps{position:relative;height:22px;margin-top:6px}
.tbs-cap{position:absolute;left:0;right:0;top:0;text-align:center;font-size:14px;font-weight:700;color:#e3ebf7;opacity:0;animation:tbsScene8 32s infinite;animation-delay:var(--d)}
@media(prefers-reduced-motion:reduce){.tbs-cap{animation:none}.tbs-cap:last-child{opacity:1}}
.tbs8 .tbs-steps i{animation-name:tbsStep8;animation-duration:32s}
@keyframes tbsStep8{0%,11.875%{background:#f6b600;transform:scale(1.35)}12.5%,100%{background:rgba(255,255,255,.28);transform:scale(1)}}
/* v757: delivery - the truck faces forward and stays; the road dashes and speed lines run right to left */
.tbs-road{animation:tbsRoad .7s linear infinite}
@keyframes tbsRoad{from{stroke-dashoffset:0}to{stroke-dashoffset:22}}
.tbs-speed path{animation:tbsSpeed .7s linear infinite}
.tbs-speed path:nth-child(2){animation-delay:.25s}.tbs-speed path:nth-child(3){animation-delay:.45s}
@keyframes tbsSpeed{from{transform:translateX(0);opacity:1}to{transform:translateX(-60px);opacity:0}}
.tbs-bob{animation:tbsBob .35s ease-in-out infinite alternate}
@keyframes tbsBob{from{transform:translateY(0)}to{transform:translateY(-1.5px)}}
@media(prefers-reduced-motion:reduce){.tbs-road,.tbs-speed path,.tbs-bob{animation:none}}
/* v884 (owner, 21 Nov): phones - one screen, no scrolling: the navy top with the TrakBAS logo and the same trade story as the
   desktop (RFQ - quotation - order - delivery - payment), the sign-in form as a white sheet rising over it. Sizes follow the
   phone's height (clamp / dvh), so a small 8 cm phone and a tall one both fit; on short screens the story shrinks, then gives way. */
@media(max-width:860px){
  html,body{height:100%;min-height:0}
  body{overflow-x:hidden;overflow-y:auto;scrollbar-width:none;-webkit-text-size-adjust:100%;background:#061d3d}
  body::-webkit-scrollbar{display:none}
  .login-shell{min-height:100dvh;height:100dvh;padding:0;display:block}
  .login-card{width:100%;height:100dvh;min-height:0;display:flex;flex-direction:column;border:0;border-radius:0;box-shadow:none;background:#061d3d;overflow:hidden}
  body .login-card .brand-panel{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:6px;flex:0 0 auto;min-height:0;height:clamp(150px,34dvh,300px);padding:14px 18px 30px;overflow:hidden;background:radial-gradient(120% 90% at 10% 0%,#0f3f7f 0%,#061d3d 55%,#041430 100%)}
  body .login-card .brand-panel::before{width:200px;height:200px;inset:auto -60px -80px auto;animation:lgFloat 9s ease-in-out infinite alternate}
  body .login-card .brand-panel::after{left:-30px;bottom:auto;top:-40px;width:120px;height:120px;animation:lgFloat 11s ease-in-out infinite alternate-reverse}
  body .login-card .brand-panel .tb-lockup{--tb-h:clamp(40px,8dvh,64px)!important;margin:0!important;flex:0 0 auto;flex-wrap:nowrap;justify-content:center;max-width:100%;animation:lgDrop .7s cubic-bezier(.2,.8,.2,1) both}   /* v885: sized by its own height, not scaled - a scale left the full-size box behind (logo cut off, name under the sheet, story pushed out) */
  body .login-card .brand-panel .tb-lockup img{max-width:calc(var(--tb-h) * 2.2)}
  body .login-card .brand-panel .tb-words small{white-space:nowrap}
  body .login-card .brand-panel .feature-list{margin:0!important;width:100%;max-width:420px;flex:1 1 auto;min-height:0;display:flex!important;align-items:center;justify-content:center}
  body .login-card .brand-panel .feature-list > .feature{display:none!important}
  body .login-card .brand-panel .feature-list > .tb-story{display:block!important;width:100%;max-height:100%;animation:lgFade .9s .25s both}
  body .login-card .brand-panel .feature-list > .tb-story ~ .tb-story{display:none!important}
  body .login-card .brand-panel .tbs svg{max-height:calc(34dvh - 96px);width:auto;max-width:100%;margin:0 auto}
  body .login-card .brand-panel .tbs-steps{margin-top:4px}
  body .login-card .brand-panel .tbs-steps li+li::before{width:22px}
  body .login-card .brand-panel .tbs-own img,body .login-card .brand-panel .tbs-own video{max-height:calc(34dvh - 90px)}
  .form-panel{position:relative;z-index:3;flex:1 1 auto;min-height:0;margin-top:-22px;padding:16px 18px calc(10px + env(safe-area-inset-bottom,0px));border-radius:24px 24px 0 0;background:#fff;justify-content:flex-start;box-shadow:0 -14px 40px rgba(0,0,0,.25);animation:lgRise .65s cubic-bezier(.2,.8,.2,1) both}
  .form-panel::before{content:"";display:block;width:42px;height:4px;border-radius:4px;background:#d6deea;margin:-6px auto 10px}
  .company-logo{margin:0 0 6px!important;gap:10px}
  .company-logo img{max-height:34px!important}
  .company-logo>b{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal!important;line-height:1.2;font-size:13.5px;color:var(--navy);flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .tb-phone{display:none!important}
  .form-panel h2{font-size:22px;margin:0 0 2px}
  .form-panel .sub{font-size:13px;margin:0 0 10px}
  .field{margin-bottom:10px;animation:lgFade .5s both}
  .field:nth-of-type(1){animation-delay:.25s}.field:nth-of-type(2){animation-delay:.35s}
  .field span{font-size:12.5px;margin:0 0 5px}
  .input-wrap{height:46px;border-radius:13px}
  .input-icon{width:38px;flex:0 0 38px;font-style:normal;font-size:14px}
  .input-wrap input{padding:0 12px 0 2px}
  .row{flex-direction:row!important;align-items:center!important;margin:2px 0 10px;gap:8px}
  .check,.link{font-size:12.5px}
  .login-btn{height:48px;border-radius:14px;position:relative;overflow:hidden;background:linear-gradient(135deg,#0b2a5b,#061d3d);animation:lgFade .5s .45s both}
  .login-btn::after{content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.28),transparent);animation:lgShine 3.2s 1.2s ease-in-out infinite}
  .remember-note{display:none}
  .saved-note{margin:0 0 8px;padding:7px 10px;font-size:12px}
  .err{padding:8px 10px;margin-bottom:8px;font-size:13px}
  .support-box{margin-top:10px;padding:0;border:0;background:none;display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
  .support-box>b,.support-box>span{display:none}
  .support-actions{margin:0;gap:6px;justify-content:center;flex-wrap:nowrap;max-width:100%}
  .pill{padding:6px 9px;font-size:11.5px;white-space:nowrap;min-width:0;overflow:hidden;text-overflow:ellipsis}
  .footer-note{margin-top:6px;font-size:10.5px}
}
/* v885: the navy top takes every bit of height the form leaves (no white gap at the bottom), and the story fits inside it -
   the drawing shrinks to the space left, its steps stay under it, nothing goes behind the sheet */
@media(max-width:860px){
  body .login-card .brand-panel{height:auto!important;flex:1 1 auto!important;min-height:clamp(120px,26dvh,240px)!important;justify-content:flex-start!important;padding:clamp(10px,2.4dvh,22px) 18px 34px!important}
  body .login-card .brand-panel .feature-list{flex:1 1 0!important;min-height:0!important;align-items:stretch!important}
  body .login-card .brand-panel .feature-list > .tb-story{display:flex!important;flex-direction:column;justify-content:center;height:100%;min-height:0;margin:0}
  body .login-card .brand-panel .tbs svg{flex:0 1 auto;min-height:0;height:100%;max-height:min(100%,230px)!important;width:100%}
  body .login-card .brand-panel .tbs-steps{flex:0 0 auto}
  .form-panel{flex:0 0 auto!important}
}
@media(max-width:860px) and (max-height:590px){
  body .login-card .brand-panel .feature-list{display:flex!important}   /* v885: the story fits itself to the space, so a small phone keeps it */
  body .login-card .brand-panel .tbs-steps{margin-top:2px}
}
/* short phones: smaller story, then only the logo */
@media(max-width:860px) and (max-height:700px){
  body .login-card .brand-panel{height:clamp(120px,27dvh,220px);padding-bottom:28px}
  body .login-card .brand-panel .tb-lockup{--tb-h:clamp(34px,7dvh,48px)!important}
  body .login-card .brand-panel .tbs svg{max-height:calc(27dvh - 80px)}
  .form-panel .sub,.footer-note{display:none}
  .support-box{margin-top:6px}
}
@media(max-width:860px) and (max-height:590px){
  body .login-card .brand-panel{height:96px}
  .support-box{display:none}
}
@keyframes lgRise{from{transform:translateY(60px);opacity:.3}to{transform:none;opacity:1}}
@keyframes lgFade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes lgDrop{from{opacity:0;transform:scale(.5) translateY(-12px)}to{opacity:1}}
@keyframes lgFloat{from{transform:translate(0,0) rotate(0)}to{transform:translate(-14px,10px) rotate(12deg)}}
@keyframes lgShine{0%{left:-60%}55%,100%{left:130%}}
@media(max-width:860px) and (max-height:700px){body .login-card .brand-panel .tb-lockup{animation:none}}

/* v884: the signed-out screen - full screen on every device; a ring and a tick draw themselves, gold sparks float out */
.bye{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:16px;background:radial-gradient(120% 80% at 50% 0%,#0f3f7f 0%,#061d3d 60%,#041430 100%);overflow:hidden;animation:lgFade .4s both}
body.is-bye{overflow:hidden}
body.is-bye .login-shell{visibility:hidden}
body.bye-out .bye{animation:byeOut .38s ease-in forwards;pointer-events:none}
.bye[hidden]{display:none!important}   /* v941 */
.bye-glow i{position:absolute;border-radius:50%;filter:blur(2px);opacity:.5}
.bye-glow i:nth-child(1){width:260px;height:260px;right:-80px;top:-60px;background:rgba(246,182,0,.18);animation:lgFloat 10s ease-in-out infinite alternate}
.bye-glow i:nth-child(2){width:180px;height:180px;left:-60px;bottom:8%;background:rgba(59,111,208,.25);animation:lgFloat 12s ease-in-out infinite alternate-reverse}
.bye-glow i:nth-child(3){width:90px;height:90px;left:18%;top:12%;background:rgba(255,255,255,.07);animation:lgFloat 8s ease-in-out infinite alternate}
.bye-card{position:relative;width:min(420px,100%);max-height:calc(100dvh - 32px);padding:22px 22px 18px;border-radius:24px;background:#fff;text-align:center;box-shadow:0 30px 80px rgba(0,0,0,.35);animation:lgRise .6s .1s cubic-bezier(.2,.8,.2,1) both}
.bye-brand{display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:6px}
.bye-brand img{max-height:34px;max-width:120px;object-fit:contain}
.bye-brand b{font-size:18px;letter-spacing:.06em;color:var(--navy)}
.bye-mark{position:relative;width:clamp(96px,22dvh,140px);height:clamp(96px,22dvh,140px);margin:6px auto 4px}
.bye-mark svg{width:100%;height:100%;display:block}
.bye-ring{fill:none;stroke:#22c55e;stroke-width:7;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;transform:rotate(-90deg);transform-origin:center;animation:byeDraw .8s .35s ease-out forwards}
.bye-tick{fill:none;stroke:#22c55e;stroke-width:9;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;animation:byeDraw .45s 1.05s ease-out forwards}
.bye-mark::before{content:"";position:absolute;inset:12%;border-radius:50%;background:radial-gradient(circle,#e9fbef 0%,rgba(233,251,239,0) 70%);animation:byePulse 2.4s 1.4s ease-in-out infinite}
.bye-dot{position:absolute;left:50%;top:50%;width:8px;height:8px;margin:-4px;border-radius:50%;background:#f6b600;opacity:0;animation:byeSpark 1.1s 1.3s ease-out forwards}
.bye-dot.d1{--x:-70px;--y:-40px}.bye-dot.d2{--x:70px;--y:-46px;background:#3b6fd0}.bye-dot.d3{--x:-58px;--y:52px;background:#22c55e}.bye-dot.d4{--x:64px;--y:48px}.bye-dot.d5{--x:0px;--y:-78px;background:#22c55e}.bye-dot.d6{--x:-4px;--y:76px;background:#3b6fd0}
.bye h1{margin:4px 0 6px;font-size:clamp(20px,3.4dvh,26px);color:var(--navy)}
.bye p{margin:0 auto 12px;max-width:320px;color:var(--muted);font-size:14px;line-height:1.45}
.bye-meta{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.bye-chip{padding:7px 11px;border-radius:999px;background:#eef3fa;color:#1d3a66;font-size:12.5px;font-weight:800}
.bye-chip.ok{background:#e8f7ee;color:#145a2e}
.bye-btn{display:flex;align-items:center;justify-content:center;height:50px;border-radius:14px;background:linear-gradient(135deg,#f6b600,#e9a500);color:#061d3d;font-weight:900;font-size:16px;box-shadow:0 12px 26px rgba(246,182,0,.35);position:relative;overflow:hidden}
.bye-btn::after{content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.5),transparent);animation:lgShine 3s 2s ease-in-out infinite}
.bye-foot{display:block;margin-top:10px;color:#8090a5;font-size:12px}
@keyframes byeDraw{to{stroke-dashoffset:0}}
@keyframes byePulse{0%,100%{transform:scale(.9);opacity:.6}50%{transform:scale(1.08);opacity:1}}
@keyframes byeSpark{0%{opacity:0;transform:translate(0,0) scale(.4)}20%{opacity:1}100%{opacity:0;transform:translate(var(--x),var(--y)) scale(1)}}
@keyframes byeOut{to{opacity:0;transform:scale(1.03)}}
@media(max-height:560px){.bye-card p,.bye-foot{display:none}.bye-mark{width:80px;height:80px}}
@media(prefers-reduced-motion:reduce){
  .bye,.bye-card,.form-panel,.field,.login-btn,body .login-card .brand-panel .tb-lockup,body .login-card .brand-panel .feature-list>.tb-story{animation:none!important}
  .bye-ring,.bye-tick{animation:none;stroke-dashoffset:0}.bye-dot,.bye-glow i,.login-btn::after,.bye-btn::after,.bye-mark::before,body .login-card .brand-panel::before,body .login-card .brand-panel::after{animation:none!important}
}
