/* KOSMOS ARES 6.2.160: one geometry for login, forgotten password, reset and MFA.
 * Native form handlers and security conditions are left completely unchanged. */
:root{--a160-auth-width:1120px;--a160-auth-height:690px;--a160-auth-break:900px;}
body.kosmos-ares-auth57:has(.login-container),body.kosmos-auth-page{
 display:flex!important;align-items:center!important;justify-content:center!important;
 min-height:100dvh!important;padding:clamp(12px,2.3vw,28px)!important;
}
body.kosmos-ares-auth57:has(.login-container) .login-container{
 width:min(var(--a160-auth-width),100%)!important;max-width:var(--a160-auth-width)!important;margin:0 auto!important;
}
body.kosmos-ares-auth57 .login-card,body.kosmos-auth-page .auth-shell{
 width:100%!important;max-width:var(--a160-auth-width)!important;min-height:var(--a160-auth-height)!important;
 border-radius:23px!important;margin:0 auto!important;overflow:hidden!important;
 box-shadow:0 20px 64px rgba(10,34,81,.17)!important;
}
body.kosmos-ares-auth57 .login-content,body.kosmos-auth-page .auth-shell{
 display:grid!important;grid-template-columns:minmax(0,47%) minmax(0,53%)!important;
 align-items:stretch!important;min-height:var(--a160-auth-height)!important;
}
body.kosmos-ares-auth57 .login-left,body.kosmos-auth-page .auth-brand{
 min-height:var(--a160-auth-height)!important;height:100%!important;
 display:flex!important;flex-direction:column!important;align-items:center!important;
 justify-content:center!important;gap:23px!important;padding:37px 28px!important;
}
body.kosmos-ares-auth57 .login-right,body.kosmos-auth-page .auth-panel{
 min-height:var(--a160-auth-height)!important;height:100%!important;
 display:flex!important;flex-direction:column!important;justify-content:center!important;
 padding:40px clamp(23px,3vw,49px) 50px!important;
}
body.kosmos-auth-page .auth-logo-card{flex-shrink:0!important;}
body.kosmos-auth-page .auth-brand-copy{margin:0!important;flex-shrink:0!important;}
body.kosmos-auth-page .auth-security-list{margin:0!important;flex-shrink:0!important;}
body.kosmos-auth-page .auth-panel h2{font-size:clamp(23px,2.2vw,30px)!important;line-height:1.18!important;}
body.kosmos-auth-page .auth-panel .auth-intro{font-size:13px!important;line-height:1.52!important;margin-bottom:19px!important;}
body.kosmos-auth-page .auth-panel .auth-footer{
 text-align:center!important;margin-top:22px!important;padding:12px 4px 0!important;
 background:transparent!important;border-top:1px solid #e8eef7!important;
}
body.kosmos-ares-auth57 .login-footer{width:calc(53% - 25px)!important;right:12px!important;bottom:12px!important;}
@media(max-width:900px){
 body.kosmos-ares-auth57:has(.login-container),body.kosmos-auth-page{padding:12px!important;align-items:flex-start!important;}
 body.kosmos-ares-auth57 .login-card,body.kosmos-auth-page .auth-shell{min-height:0!important;height:auto!important;width:100%!important;max-width:640px!important;border-radius:17px!important;}
 body.kosmos-ares-auth57 .login-container{max-width:640px!important;}
 body.kosmos-ares-auth57 .login-content,body.kosmos-auth-page .auth-shell{display:flex!important;flex-direction:column!important;min-height:0!important;}
 body.kosmos-ares-auth57 .login-left,body.kosmos-auth-page .auth-brand{
  height:auto!important;min-height:190px!important;gap:13px!important;padding:20px 18px!important;
 }
 body.kosmos-ares-auth57 .login-right,body.kosmos-auth-page .auth-panel{
  height:auto!important;min-height:0!important;padding:24px 23px 35px!important;
 }
 body.kosmos-ares-auth57 .login-footer{position:static!important;width:100%!important;}
}
@media(max-width:520px){
 body.kosmos-ares-auth57:has(.login-container),body.kosmos-auth-page{padding:9px!important;background:#edf3fb!important;}
 body.kosmos-ares-auth57 .login-container{width:100%!important;max-width:100%!important;}
 body.kosmos-ares-auth57 .login-card,body.kosmos-auth-page .auth-shell{width:100%!important;min-height:0!important;height:auto!important;border-radius:16px!important;border:1px solid #d0def2!important;}
 body.kosmos-ares-auth57 .login-left,body.kosmos-auth-page .auth-brand{min-height:135px!important;padding:16px 13px!important;gap:9px!important;}
 body.kosmos-auth-page .auth-brand-copy{display:none!important;}
 body.kosmos-auth-page .auth-logo-card{height:90px!important;min-height:90px!important;width:min(220px,90%)!important;padding:8px 13px!important;}
 body.kosmos-auth-page .auth-logo-card img{max-height:64px!important;}
 body.kosmos-ares-auth57 .login-right,body.kosmos-auth-page .auth-panel{padding:19px 17px 23px!important;}
 body.kosmos-auth-page .auth-panel h2{font-size:20px!important;}
 body.kosmos-ares-auth57 .login-right h2{font-size:19px!important;}
 body.kosmos-auth-page .auth-actions{margin-top:13px!important;gap:10px!important;}
 body.kosmos-auth-page .auth-footer{margin-top:16px!important;font-size:10px!important;}
}
@media(prefers-reduced-motion:reduce){
 body.kosmos-auth-page .auth-brand *,body.kosmos-ares-auth57 .login-left *{animation:none!important;transition:none!important;}
}

/* Exact card footprint on desktop; small screens keep content-driven heights. */
@media(min-width:901px){
 body.kosmos-auth-page .auth-shell{box-sizing:border-box!important;height:690px!important;min-height:690px!important;}
 body.kosmos-auth-page .auth-brand,body.kosmos-auth-page .auth-panel{box-sizing:border-box!important;min-height:0!important;height:100%!important;}
 body.kosmos-ares-auth57:has(.login-container) .login-container{padding:0!important;}
}
@media(max-width:900px){
 body.kosmos-ares-auth57:has(.login-container) .login-container{padding:0!important;margin:0 auto!important;}
}
@media(max-width:520px){
 body.kosmos-ares-auth57:has(.login-container) .login-card,body.kosmos-auth-page .auth-shell{box-sizing:border-box!important;}
}

/* Login actually renders login-content inside login-card; fill the card, not a shorter inner strip. */
@media(min-width:901px){
 body.kosmos-ares-auth57:has(.login-container) .login-card{box-sizing:border-box!important;height:690px!important;min-height:690px!important;}
 body.kosmos-ares-auth57:has(.login-container) .login-content{height:688px!important;min-height:688px!important;max-height:688px!important;}
 body.kosmos-ares-auth57:has(.login-container) .login-left,
 body.kosmos-ares-auth57:has(.login-container) .login-right{min-height:0!important;height:100%!important;box-sizing:border-box!important;}
}
@media(max-width:900px){
 body.kosmos-ares-auth57:has(.login-container) .login-card,
 body.kosmos-ares-auth57:has(.login-container) .login-content{height:auto!important;min-height:0!important;max-height:none!important;}
 body.kosmos-ares-auth57:has(.login-container) .login-left,
 body.kosmos-ares-auth57:has(.login-container) .login-right{height:auto!important;min-height:0!important;}
}
