/* /login/ and /zh/login/: red (clients) | ivory (agents). Standalone full-viewport page. Loads after styles.css.
   Red is the site's button red #D7132B (white text 5.2:1); #ED1B34 would give white text only 4.4:1. */
html,body{height:100%}
.page-login{--login-red:#D7132B;min-height:100vh;min-height:100dvh;margin:0;overflow:hidden;background:var(--bg)}
.lx-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.lx-split{display:flex;height:100vh;height:100dvh;width:100%}
.lx-half{flex:1 1 50%;min-width:0;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;
  padding:clamp(104px,13vh,136px) clamp(24px,4vw,64px);transition:flex-basis .45s cubic-bezier(.22,.9,.26,1)}
.lx-client{background:var(--login-red);color:#fff}
.lx-agent{background:var(--bg);color:var(--ink)}
@media (hover:hover) and (min-width:768px){
  .lx-split:hover .lx-half{flex-basis:46%}
  .lx-split .lx-half:hover{flex-basis:54%}
}

/* corners */
.lx-logo{position:absolute;top:48px;left:48px;display:inline-flex;align-items:center;min-height:44px}
.lx-logo img{height:48px;width:auto}
.lx-back{position:absolute;top:44px;right:48px;display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--ink);font:600 14px var(--sans);text-decoration:none;transition:color .25s,border-color .25s}
.lx-back:hover{color:var(--red-ink);border-color:var(--red)}

/* the card (whole block is the link) */
.lx-card{display:flex;flex-direction:column;align-items:center;gap:clamp(14px,2.2vh,22px);text-decoration:none;color:inherit;border-radius:28px;padding:16px 24px}
.lx-card:focus-visible{outline:3px solid currentColor;outline-offset:6px}
.lx-ic{width:clamp(72px,7vw,96px);height:clamp(72px,7vw,96px);border-radius:26px;display:grid;place-items:center;transition:transform .35s cubic-bezier(.22,.9,.26,1)}
.lx-client .lx-ic{background:rgba(255,255,255,.18);color:#fff}
.lx-agent .lx-ic{background:#fff;color:var(--ink);box-shadow:0 14px 40px rgba(22,22,26,.08)}
.lx-ic svg{width:46%;height:46%;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.lx-half:hover .lx-ic,.lx-card:focus-visible .lx-ic{transform:translateY(-4px) scale(1.05)}
.lx-k{font:700 12px var(--sans);letter-spacing:.2em;text-transform:uppercase}
.lx-client .lx-k{color:#fff}                     /* solid white: 70% white on red would be ~3:1 */
.lx-agent .lx-k{color:var(--red-ink)}            /* #C8102E: 5.4:1 on ivory */
.lx-title{position:relative;display:block;padding:10px 26px}
.lx-title h2{position:relative;font:700 clamp(34px,4.2vw,58px)/1.04 var(--disp);letter-spacing:-.035em;text-align:center}
.lx-host{font:500 clamp(14px,1.15vw,16px) var(--sans)}
.lx-client .lx-host{color:#fff}
.lx-agent .lx-host{color:var(--ink-60)}
.lx-go{margin-top:clamp(4px,1.2vh,12px);display:inline-flex;align-items:center;gap:10px;min-height:52px;padding:0 26px;border-radius:999px;font:600 15px var(--sans);
  transition:transform .3s cubic-bezier(.22,.9,.26,1),background .25s,color .25s,box-shadow .3s}
.lx-go i{font-style:normal;font-size:20px;line-height:1;transition:transform .3s cubic-bezier(.22,.9,.26,1)}
.lx-client .lx-go{background:#fff;color:var(--login-red)}
.lx-agent .lx-go{background:var(--ink);color:#fff}
.lx-half:hover .lx-go,.lx-card:focus-visible .lx-go{transform:translateY(-3px)}
.lx-half:hover .lx-go i,.lx-card:focus-visible .lx-go i{transform:translateX(4px)}
.lx-client:hover .lx-go{box-shadow:0 12px 30px rgba(80,0,10,.25)}
.lx-agent:hover .lx-go,.lx-agent .lx-card:focus-visible .lx-go{background:var(--login-red);box-shadow:0 12px 30px rgba(215,19,43,.3)}

/* legal line: once, bottom-right on the ivory half (ink 60%: 4.6:1 on ivory) */
.lx-legal{position:absolute;bottom:20px;right:48px;margin:0;color:rgba(22,22,26,.6);display:block;line-height:44px;white-space:nowrap}   /* block, not flex: flex drops the spaces around "·" */   /* block, not flex: flex drops the spaces around "·" */

/* mobile: stack (red on top), no hover-width effect, back link pinned to the viewport corner, legal line at the bottom on ivory */
@media (max-width:767px){
  .page-login{overflow:auto}
  .lx-split{flex-direction:column;height:auto;position:relative}
  .lx-agent{position:static}   /* so the back link and legal line position against the whole page, not the ivory half */
  .lx-half{flex:none;min-height:50vh;min-height:50dvh;padding:104px 20px 56px}
  .lx-logo{top:20px;left:20px}
  .lx-logo img{height:40px}
  /* top of the page (scrolls away with it), solid ivory pill so it always reads on red */
  .lx-back{position:absolute;z-index:5;top:max(16px,env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right));background:#F7F4EE;border:1px solid rgba(22,22,26,.14);box-shadow:0 6px 18px rgba(22,22,26,.18)}
  .lx-agent{padding-bottom:96px}
  .lx-legal{left:0;right:0;padding:0 16px;text-align:center;white-space:normal}
}
@media (prefers-reduced-motion:reduce){
  .lx-half,.lx-ic,.lx-go,.lx-go i{transition:none!important}
  .lx-half:hover .lx-ic,.lx-half:hover .lx-go,.lx-half:hover .lx-go i{transform:none}
  .lx-split:hover .lx-half,.lx-split .lx-half:hover{flex-basis:50%}
}
