
/* V22.4 Login logo + buttons cleanup */
.bistrova-login-logo{
  display:block!important;
  width:auto!important;
  max-width:230px!important;
  height:auto!important;
  object-fit:contain!important;
  margin:0 auto 20px!important;
}

/* Keep only demo as floating action */
#bistrovaCleanActionPanel{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:99999;
  display:flex;
  flex-direction:column;
  gap:8px;
  width:min(230px, calc(100vw - 32px));
  pointer-events:none;
}
#bistrovaCleanActionPanel button{
  pointer-events:auto;
  border-radius:999px;
  padding:11px 14px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 16px 42px rgba(0,0,0,.18);
  border:0;
}
#bistrovaCleanActionPanel .demo{
  background:linear-gradient(135deg,#ff7a2f,#ff9b45);
  color:#fff;
}

/* Hide old overlapping floating buttons */
#bistrovaForgotFixed,
#demoFixedLaunch,
#abonnementFloatingBtn,
#exitDemoBtn,
.install-pwa-btn,
.demo-fixed-launch,
.abonnement-floating-btn,
.exit-demo-btn,
#cleanForgotBtn,
#cleanSubBtn,
#cleanExitDemoBtn{
  display:none!important;
}

/* Forgot password integrated in login */
.bistrova-forgot-inline{
  display:block!important;
  text-align:center!important;
  margin:8px auto 14px!important;
  color:#c8942d!important;
  font-weight:800!important;
  font-size:14px!important;
  text-decoration:underline!important;
  background:transparent!important;
  border:0!important;
  cursor:pointer!important;
  width:auto!important;
  box-shadow:none!important;
  padding:0!important;
}

@media(max-width:820px){
  html,body{
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
    min-width:0!important;
  }
  #authPage,.auth-page,.login-page,.login-screen{
    width:100%!important;
    min-height:100svh!important;
    max-width:100%!important;
    padding:18px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
    overflow-x:hidden!important;
  }
  #authPage > *,.auth-page > *,.login-page > *,.login-screen > *,
  .login-card,.auth-card,.login-box,.auth-box,#loginBox,form{
    width:100%!important;
    max-width:430px!important;
    min-width:0!important;
    box-sizing:border-box!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  input,select,textarea,button{
    max-width:100%!important;
    box-sizing:border-box!important;
    font-size:16px!important;
  }
  main,#appPage,.app,.container,.content,.dashboard,section,.card{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    overflow-x:hidden!important;
  }
  .layout,.grid,.dashboard-grid,.products-grid,.reports-grid,.settings-grid,.stock-grid{
    grid-template-columns:1fr!important;
  }
  #bistrovaCleanActionPanel{
    right:14px;
    bottom:14px;
    width:min(210px, calc(100vw - 28px));
  }
}
