/* KOSMOS ARES immersive authentication 6.2.159 — approved direction.
   Keep the existing login form and actual recovery routes unchanged. */
body.kosmos-ares-auth57,body.kosmos-auth-page{
  background:radial-gradient(ellipse at 50% -40%,rgba(209,226,255,.85),transparent 55%),
             linear-gradient(145deg,#ecf3fe,#f8fbff 42%,#e7effc)!important;
}
body.kosmos-ares-auth57 .login-card,body.kosmos-auth-page .auth-shell,
body.kosmos-ares-auth57 .licence-card{
  border:1px solid rgba(205,223,249,.87)!important;border-radius:23px!important;
  box-shadow:0 18px 65px rgba(20,47,92,.18)!important;overflow:hidden!important;
}
body.kosmos-ares-auth57 .login-content {min-height:626px!important;grid-template-columns:minmax(340px,.94fr) minmax(430px,1.06fr)!important;}
body.kosmos-ares-auth57 .login-left,body.kosmos-auth-page .auth-brand,
body.kosmos-ares-auth57 .licence-left{
  position:relative!important;isolation:isolate;overflow:hidden!important;
  background:radial-gradient(ellipse at 48% 40%,#174779 0%,transparent 57%),
             linear-gradient(150deg,#06172e,#092447 72%,#0d347b 100%)!important;
}
body.kosmos-ares-auth57 .login-left{min-height:626px!important;padding:39px 28px 31px!important;gap:24px!important;justify-content:center!important;}
/* The canvas is decorative, never intercepts clicks or focus. */
.ares59-network-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;z-index:0;pointer-events:none;opacity:.86;}
body.kosmos-ares-auth57 .login-left::before,body.kosmos-auth-page .auth-brand::before,
body.kosmos-ares-auth57 .licence-left::before{
  content:""!important;display:block!important;position:absolute!important;pointer-events:none!important;
  width:116%;height:42%;top:-24%;left:-30%;transform:rotate(-19deg);z-index:1;
  border:1.7px solid rgba(254,203,104,.82);border-radius:50%;
  background:none!important;box-shadow:0 0 22px rgba(255,191,68,.18)!important;
}
body.kosmos-ares-auth57 .login-left::after,body.kosmos-auth-page .auth-brand::after,
body.kosmos-ares-auth57 .licence-left::after{
  content:""!important;display:block!important;position:absolute!important;pointer-events:none!important;
  width:134%;height:48%;bottom:-25%;right:-32%;transform:rotate(-20deg);z-index:1;
  border:1.3px solid rgba(254,203,104,.80);border-radius:50%;
  background:none!important;box-shadow:0 0 24px rgba(254,203,104,.13)!important;
}
body.kosmos-ares-auth57 .auth-orbs{z-index:1!important;opacity:.77;}
body.kosmos-ares-auth57 .login-logo,body.kosmos-ares-auth57 .auth-brand-meta,
body.kosmos-auth-page .auth-brand>:not(.ares59-network-canvas),
body.kosmos-ares-auth57 .licence-left>:not(.ares59-network-canvas){position:relative;z-index:3!important;}
body.kosmos-ares-auth57 .login-logo{width:min(330px,94%)!important;flex:0 0 auto!important;}
body.kosmos-ares-auth57 .login-logo-card,body.kosmos-auth-page .auth-logo-card{
  background:#fff!important;border:1px solid rgba(253,226,175,.9)!important;
  border-radius:18px!important;box-shadow:0 0 0 2px rgba(255,255,255,.06),0 0 34px rgba(51,140,250,.39)!important;
}
body.kosmos-ares-auth57 .login-right{
  padding:35px clamp(26px,4.2vw,55px) 69px!important;background:#fff!important;
}
body.kosmos-ares-auth57 .login-right h2{font-size:clamp(23px,2.2vw,30px)!important;font-weight:790!important;line-height:1.14!important;}
body.kosmos-ares-auth57 .login-right h2::after{
 content:"";display:block;width:54px;height:4px;margin-top:11px;
 background:linear-gradient(90deg,#ba852c,#f4cf71);border-radius:99px;
}
body.kosmos-ares-auth57 .login-right .subtitle{font-size:13px!important;margin-bottom:19px!important;color:#425d7e!important;}
body.kosmos-ares-auth57 .auth-company-name{font-size:clamp(16px,1.5vw,19px)!important;line-height:1.3!important;text-align:center!important;}
body.kosmos-ares-auth57 .auth-company-sub{font-size:12px!important;line-height:1.55!important;}
body.kosmos-ares-auth57 .auth-brand-meta{width:min(370px,96%)!important;gap:10px!important;text-align:center!important;}
body.kosmos-ares-auth57 .kosmos-auth-status--brand{
  background:rgba(34,77,122,.44)!important;border-color:rgba(135,194,255,.50)!important;
  border-radius:999px!important;box-shadow:inset 0 1px rgba(255,255,255,.10)!important;
}
body.kosmos-ares-auth57 .auth-version-chip{border-radius:999px!important;}
body.kosmos-ares-auth57 .auth-live-pill{
  border-radius:12px!important;border:1px solid #cddcf1!important;
  background:#f4f8ff!important;padding:12px!important;
}
body.kosmos-ares-auth57 :is(.form-group input,.kosmos-password-wrap input):not([type="checkbox"]){
  background:#f5f8ff!important;border-color:#c8d9f3!important;border-radius:12px!important;
  min-height:49px!important;font-size:14px!important;
}
body.kosmos-ares-auth57 #loginSubmit{
  min-height:52px!important;background:linear-gradient(105deg,#176dff,#113fd0)!important;
  border:1px solid #1b5ce5!important;border-radius:12px!important;
  box-shadow:0 8px 19px rgba(13,69,177,.17)!important;font-size:15px!important;
}
/* Recovered functions from the original login, now in a compact animated-help rail. */
body.kosmos-ares-auth57 .ares59-help-rail{
  position:relative;display:grid;grid-template-columns:1fr 1fr 1fr;gap:9px;align-items:center;
  margin-top:15px;padding:13px 1px;isolation:isolate;
}
body.kosmos-ares-auth57 .ares59-help-rail::before{
  content:"";position:absolute;left:2%;right:2%;top:50%;height:56px;transform:translateY(-50%);
  border-radius:50%;border:1px solid rgba(83,149,243,.24);pointer-events:none;z-index:-1;
  box-shadow:0 0 32px rgba(91,146,233,.12);
  animation:ares59-help-breath 6s ease-in-out infinite;
}
body.kosmos-ares-auth57 .ares59-help-rail>a,
body.kosmos-ares-auth57 .ares59-help-rail .forgot-password>a{
  min-width:0;min-height:40px;display:flex!important;align-items:center;justify-content:center;
  gap:6px;padding:7px 9px;border:1px solid #d9e7fc!important;border-radius:999px;
  background:linear-gradient(#fff,#f8faff)!important;color:#174fb6!important;
  font-size:11px!important;font-weight:700;text-decoration:none!important;
  box-shadow:0 4px 13px rgba(38,93,190,.10);white-space:nowrap;
}
body.kosmos-ares-auth57 .ares59-help-rail .forgot-password{margin:0!important;text-align:initial!important;min-width:0;}
body.kosmos-ares-auth57 .ares59-help-rail .ares59-help-primary{
  color:#fff!important;border-color:#1c6cf4!important;
  background:linear-gradient(105deg,#2789ff,#164ddf)!important;
  box-shadow:0 4px 20px rgba(41,111,235,.30);animation:ares59-help-glow 4.8s ease-in-out infinite;
}
body.kosmos-ares-auth57 .ares59-help-rail :is(a:hover,a:focus-visible){transform:translateY(-1px);}
body.kosmos-ares-auth57 .login-footer{
  position:absolute;right:12px;bottom:12px;width:calc(53% - 36px);
  border:0!important;background:transparent!important;padding:7px!important;
  margin:0!important;color:#667e9f!important;text-align:center!important;
}
body.kosmos-ares-auth57 .login-footer .login-release-line{display:none!important;}
body.kosmos-ares-auth57 .login-footer p{margin:0!important;font-size:10px!important;}
@keyframes ares59-help-breath{0%,100%{transform:translateY(-50%) scale(.98);opacity:.65}50%{transform:translateY(-50%) scale(1.02);opacity:1}}
@keyframes ares59-help-glow{0%,100%{box-shadow:0 4px 12px rgba(41,111,235,.2)}50%{box-shadow:0 4px 23px rgba(41,111,235,.48)}}
@media(max-width:900px){
 body.kosmos-ares-auth57 .login-content{display:flex!important;flex-direction:column!important;min-height:0!important;}
 body.kosmos-ares-auth57 .login-left{min-height:0!important;padding:26px 21px!important;gap:17px!important;}
 body.kosmos-ares-auth57 .login-right{padding:24px 21px 25px!important;}
 body.kosmos-ares-auth57 .login-footer{position:static!important;width:100%!important;padding:12px!important;border-top:1px solid #e8eef8!important;}
 body.kosmos-ares-auth57 .login-right h2{font-size:23px!important;}
}
@media(max-width:520px){
 body.kosmos-ares-auth57:has(.login-container){background:#edf3fb!important;padding:9px!important;}
 body.kosmos-ares-auth57 .login-card{border:1px solid #d0def2!important;min-height:0!important;border-radius:17px!important;}
 body.kosmos-ares-auth57 .login-left{padding:18px 12px!important;gap:11px!important;}
 body.kosmos-ares-auth57 .login-logo-card{max-height:88px!important;min-height:0!important;padding:7px 13px!important;}
 body.kosmos-ares-auth57 .login-logo-card img{max-height:61px!important;}
 body.kosmos-ares-auth57 .auth-brand-meta{gap:5px!important;}
 body.kosmos-ares-auth57 .auth-company-name{font-size:14px!important;line-height:1.22!important;}
 body.kosmos-ares-auth57 .auth-company-sub{font-size:10.5px!important;}
 body.kosmos-ares-auth57 .login-right{padding:18px 15px 19px!important;}
 body.kosmos-ares-auth57 .login-right h2{font-size:19px!important;line-height:1.18!important;}
 body.kosmos-ares-auth57 .login-right .subtitle{font-size:11.5px!important;}
 body.kosmos-ares-auth57 .ares59-help-rail{grid-template-columns:1fr 1fr;gap:7px;margin-top:10px;}
 body.kosmos-ares-auth57 .ares59-help-rail .ares59-help-primary{grid-column:1/-1;grid-row:1;}
 body.kosmos-ares-auth57 .ares59-help-rail>a,body.kosmos-ares-auth57 .ares59-help-rail .forgot-password>a{
  font-size:10px!important;white-space:normal;text-align:center;min-height:36px;padding:6px!important;
 }
 body.kosmos-ares-auth57 .login-footer{border:0!important;padding:9px 10px!important;}
}
@media(prefers-reduced-motion:reduce){
 .ares59-network-canvas{opacity:.5!important;}
 body.kosmos-ares-auth57 .ares59-help-rail::before,
 body.kosmos-ares-auth57 .ares59-help-rail .ares59-help-primary{animation:none!important;}
}
