.login{ min-height:100vh; display:grid; grid-template-columns:1fr 1fr; background:var(--bg-canvas); font-family:var(--font); }

.login .lg-brand{ position:relative; overflow:hidden; display:flex; align-items:center; justify-content:center; background:var(--brand-panel); }
.login .lg-brand .lg-lines{ position:absolute; inset-block:0; right:50%; height:100%; transform:translateX(62%); }
.login .lg-brand .lg-lines path{ stroke:rgb(56 198 218 / .7); stroke-width:1.5; stroke-dasharray:100; stroke-dashoffset:100; vector-effect:non-scaling-stroke;
  animation:brand-draw 1.4s cubic-bezier(.6,0,.3,1) forwards; }
.login .lg-brand > .app-logo{ position:relative; z-index:1; animation:brand-logo .9s cubic-bezier(.2,.7,.2,1) .2s both; }
.login .lg-brand .lg-waves{ position:absolute; inset:0; width:100%; height:100%; z-index:0; pointer-events:none; opacity:.45; overflow:visible;
  -webkit-mask-image:linear-gradient(to right, #000 45%, transparent); mask-image:linear-gradient(to right, #000 45%, transparent); }
.login .lg-brand .lg-waves path{ fill:none; stroke:url(#lg-wave-grad); stroke-width:1.1; vector-effect:non-scaling-stroke; }
.login .lg-brand .lg-flow{ animation:waves-move 7s linear infinite; }
@keyframes waves-move{ to{ transform:translateX(275.5px); } }
@keyframes brand-draw{ to{ stroke-dashoffset:0; } }
@keyframes brand-logo{ from{ opacity:0; transform:translateY(8px) scale(.96); } }

.login .lg-panel{ display:flex; flex-direction:column; min-height:100vh; padding:22.5px 29px; }
.login .lg-top{ display:flex; align-items:center; justify-content:space-between; }
.login .lg-tbtn{ width:29px; height:29px; display:grid; place-items:center; border:none; border-radius:var(--radius-ctl); background:transparent;
  color:var(--text-toned); cursor:pointer; }
.login .lg-tbtn:hover{ background:var(--bg-elevated); color:var(--text-highlighted); }
.login .lg-tbtn svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }

.login .lg-card{ width:min(389px, 100%); margin:auto; background:var(--bg); border:1px solid var(--border); border-radius:11px;
  box-shadow:0 1px 2px rgb(17 24 39 / .04); padding:24.5px 22.5px 22.5px; }
.login .lg-card h1{ margin:0; font-size:14.5px; line-height:22.5px; font-weight:700; color:var(--text-highlighted); }
.login .lg-card .lg-sep{ color:var(--text-dimmed); font-weight:400; margin:0 2px; }
.login .lg-card .lg-nw{ white-space:nowrap; }

.login .lg-body{ margin-top:18px; display:flex; flex-direction:column; gap:14.5px; }
.login label{ display:flex; flex-direction:column; gap:6.5px; }
.login label > span{ font-size:11px; font-weight:600; color:var(--text-highlighted); }
.login input{ height:34px; width:100%; border:1px solid var(--bg-accented); border-radius:var(--radius-ctl); background:var(--bg); color:var(--text-highlighted);
  font:inherit; font-size:11px; padding:0 11px; text-align:left; transition:border-color .15s, box-shadow .15s; }
.login input:placeholder-shown{ direction:rtl; text-align:right; }
.login input::placeholder{ color:var(--text-dimmed); }
.login input:focus{ outline:none; border-color:var(--primary); box-shadow:0 0 0 2.5px color-mix(in oklab,var(--primary) 18%,transparent); }
.login .lg-pw{ position:relative; }
.login .lg-pw input{ padding-left:37.5px; }
.login .lg-eye{ position:absolute; left:5px; top:50%; transform:translateY(-50%); width:26px; height:26px; display:grid; place-items:center;
  border:none; border-radius:5px; background:transparent; color:var(--text-muted); cursor:pointer; }
.login .lg-eye:hover{ background:var(--bg-elevated); color:var(--text-highlighted); }
.login .lg-eye svg, .login .lg-go svg{ width:14.5px; height:14.5px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }

.login .lg-err{ background:color-mix(in oklab,var(--error) 10%,transparent); color:var(--error); border-radius:var(--radius-ctl); padding:7px 10px; font-size:10.5px; font-weight:500; }
.login .lg-go{ height:35.5px; border:none; border-radius:var(--radius-ctl); background:var(--primary); color:#fff; font:inherit; font-size:12px; font-weight:600;
  cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:6.5px; transition:background .15s, opacity .15s; }
.login .lg-go:hover:not(:disabled){ background:color-mix(in oklab,var(--primary) 88%,black); }
.login .lg-go:disabled{ opacity:.45; cursor:not-allowed; }
.login .lg-go[aria-busy="true"]{ opacity:.75; cursor:progress; }
.login .lg-spin{ width:13px; height:13px; border-radius:50%; border:2px solid rgba(255,255,255,.4); border-top-color:#fff; animation:spin .7s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }
.login .lg-foot{ margin:13px 0 0; text-align:center; font-size:10px; color:var(--text-dimmed); }

@media (max-width: 900px){
  .login{ grid-template-columns:1fr; }
  .login .lg-brand{ display:none; }
  .login .lg-panel{ padding:16px 13px; }
  .login .lg-card{ padding:19.5px 14.5px; }
}
@media (prefers-reduced-motion: reduce){
  .login .lg-spin{ animation-duration:2s; }
  .login .lg-brand .lg-lines path{ animation:none; stroke-dashoffset:0; }
  .login .lg-brand > .app-logo{ animation:none; }
  .login .lg-brand .lg-flow{ animation:none; }
}
