/* Login entrance and request feedback. Motion starts only when the login overlay opens. */
#login-overlay{background:transparent;isolation:isolate}
#login-overlay::before{content:"";position:fixed;inset:0;z-index:-1;background:radial-gradient(ellipse at 18% 18%,rgba(0,158,149,.09),transparent 48%),radial-gradient(ellipse at 86% 85%,rgba(0,158,149,.055),transparent 42%),var(--bg);pointer-events:none}
#login-overlay .auth-card{margin:auto;flex-shrink:0}
#login-overlay.show .auth-card{animation:auth-card-enter .58s cubic-bezier(.16,1,.3,1) both}
#login-overlay .auth-left{position:relative;isolation:isolate;overflow:hidden}
#login-overlay .auth-left::after{content:"";position:absolute;z-index:-1;right:-128px;bottom:-135px;width:255px;height:255px;border:1px solid rgba(0,158,149,.13);border-radius:50%;box-shadow:0 0 0 35px rgba(0,158,149,.035),0 0 0 70px rgba(0,158,149,.025);pointer-events:none}
#login-overlay .auth-brand{display:flex;align-items:center;gap:12px}
#login-overlay .auth-brand::before{content:"C";display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:10px;background:var(--teal);box-shadow:0 5px 14px rgba(0,158,149,.14);color:#fff;font-size:22px;line-height:1;letter-spacing:0;font-weight:700}
#login-overlay.show .auth-brand{animation:auth-content-enter .48s .1s cubic-bezier(.16,1,.3,1) both}
#login-overlay.show .auth-slogan{animation:auth-content-enter .52s .17s cubic-bezier(.16,1,.3,1) both}
#login-overlay.show .auth-desc{animation:auth-content-enter .52s .23s cubic-bezier(.16,1,.3,1) both}
#login-overlay.show .auth-right>form{animation:auth-content-enter .45s .16s cubic-bezier(.16,1,.3,1) both}
#login-overlay.show .auth-form>.field{animation:auth-content-enter .42s .22s cubic-bezier(.16,1,.3,1) both}
#login-overlay.show .auth-form>.field:nth-child(2){animation-delay:.27s}
#login-overlay .auth-submit{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;transition:background-color .18s,box-shadow .18s,transform .18s}
#login-overlay .auth-submit:not(:disabled):hover{transform:translateY(-1px);box-shadow:0 5px 13px rgba(0,158,149,.17)}
#login-overlay .auth-submit:not(:disabled):active{transform:translateY(0);box-shadow:none}
#login-overlay .auth-submit:focus-visible{outline:3px solid rgba(0,158,149,.28);outline-offset:3px}
#login-overlay .auth-submit.is-loading{cursor:wait;opacity:1;box-shadow:none;background:var(--teal)}
#login-overlay .auth-submit.is-loading::before{content:"";flex:0 0 14px;width:14px;height:14px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:auth-submit-spin .7s linear infinite;pointer-events:none}
@keyframes auth-card-enter{from{opacity:0;transform:translate3d(0,18px,0) scale(.985)}to{opacity:1;transform:none}}
@keyframes auth-content-enter{from{opacity:0;transform:translate3d(0,10px,0)}to{opacity:1;transform:none}}
@keyframes auth-submit-spin{to{transform:rotate(360deg)}}
/* On successful sign-in the two real card panels part, revealing the prepared workspace. */
#login-overlay.is-entering-workspace{overflow:hidden;pointer-events:none}
#login-overlay.is-entering-workspace::before{animation:auth-backdrop-leave 1.15s ease both}
#login-overlay.is-entering-workspace .auth-card{animation:none;background:transparent;overflow:visible;box-shadow:none}
#login-overlay.is-entering-workspace .auth-left{border-radius:14px 0 0 14px;animation:auth-panel-left-leave 1.45s cubic-bezier(.25,.1,.25,1) both,auth-panel-fade 1.45s cubic-bezier(.33,0,.4,1) both}
#login-overlay.is-entering-workspace .auth-right{background:var(--card);border-radius:0 14px 14px 0;animation:auth-panel-right-leave 1.45s cubic-bezier(.25,.1,.25,1) both,auth-panel-fade 1.45s cubic-bezier(.33,0,.4,1) both}
#login-overlay.is-entering-workspace .auth-brand,#login-overlay.is-entering-workspace .auth-slogan,#login-overlay.is-entering-workspace .auth-desc,#login-overlay.is-entering-workspace .auth-right>form,#login-overlay.is-entering-workspace .auth-form>.field{animation:none}
body.locked.login-transition .layout{visibility:visible}
body.login-transition .layout{pointer-events:none;transform-origin:50% 45%;animation:auth-workspace-reveal 1.55s .05s cubic-bezier(.22,.65,.3,1) both}
@keyframes auth-backdrop-leave{to{opacity:0}}
@keyframes auth-panel-left-leave{from{transform:none}to{transform:translate3d(-34vw,0,0)}}
@keyframes auth-panel-right-leave{from{transform:none}to{transform:translate3d(34vw,0,0)}}
@keyframes auth-panel-fade{from{opacity:1}to{opacity:0}}
@keyframes auth-workspace-reveal{from{opacity:0;clip-path:inset(0 49.8% 0 49.8%);transform:scale(.985)}to{opacity:1;clip-path:inset(0 0 0 0);transform:none}}
@media(max-width:640px){
  #login-overlay{padding:18px 14px}
  #login-overlay .auth-card{width:100%;max-width:420px;min-height:0;flex-direction:column;border-radius:16px}
  #login-overlay .auth-left{flex-basis:auto;padding:24px 26px}
  #login-overlay .auth-slogan{margin-top:20px;font-size:24px}
  #login-overlay .auth-desc{max-width:none;margin-top:10px;font-size:12px}
  #login-overlay .auth-right{padding:26px}
  #login-overlay .auth-language{font-size:11px;margin-bottom:18px}
  #login-overlay .auth-form{margin-top:20px}
  #login-overlay .auth-submit{height:42px}
  #login-overlay.is-entering-workspace .auth-left{border-radius:16px 16px 0 0}
  #login-overlay.is-entering-workspace .auth-right{border-radius:0 0 16px 16px}
}
@media(prefers-reduced-motion:reduce){
  #login-overlay.show .auth-card,#login-overlay.show .auth-brand,#login-overlay.show .auth-slogan,#login-overlay.show .auth-desc,#login-overlay.show .auth-right>form,#login-overlay.show .auth-form>.field,#login-overlay .auth-submit.is-loading::before{animation:none}
  #login-overlay .auth-submit{transition:none}
  #login-overlay .auth-submit:not(:disabled):hover,#login-overlay .auth-submit:not(:disabled):active{transform:none}
  #login-overlay.is-entering-workspace::before,#login-overlay.is-entering-workspace .auth-left,#login-overlay.is-entering-workspace .auth-right,body.login-transition .layout{animation:none}
}
