/* Almajad CRM 3.6.36 | production login redesign | presentation-only changes.
   The PHP login form and permissions remain exactly the existing endpoint. */
:root{--alm36-navy:#153f66;--alm36-navy-deep:#123650;--alm36-soft:#eef5fa;--alm36-orange:#f4a56e;--alm36-text:#1d405f}
html:has(body.login-body){min-height:100%;background:#f0f5f8}
body.login-body{
  background-color:#dde9ee!important;
  background-image:url('/assets/img/tenant-login-bg.webp')!important;
  background-repeat:no-repeat!important;
  background-position:center center!important;
  background-size:cover!important;
  background-attachment:fixed!important;
  min-height:100dvh!important;display:flex!important;align-items:center!important;justify-content:center!important;
  padding:22px!important;margin:0!important;position:relative!important;isolation:isolate;
  overflow-x:hidden!important;
}
/* Dark vignette is applied only on the left, never bleach / blur the entire lobby photo. */
body.login-body::before{
  content:""!important;display:block!important;position:fixed!important;inset:0!important;z-index:-1!important;pointer-events:none!important;
  background:linear-gradient(90deg,rgba(12,39,57,.50) 0%,rgba(17,59,77,.25) 29%,rgba(24,65,93,.01) 54%,transparent 100%)!important;
  filter:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;
}
body.login-body::after{display:none!important}
.login-body .login-wrap.crm365-login-wrap.crm3636-login-page{
  display:grid!important;grid-template-columns:minmax(0,.87fr) minmax(0,1.13fr)!important;
  direction:rtl!important;align-items:center!important;gap:clamp(30px,3.8vw,72px)!important;
  margin:0 auto!important;width:min(1280px,100%)!important;max-width:100%!important;
  min-height:0!important;height:auto!important;
  background:transparent!important;border:0!important;border-radius:0!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  box-shadow:none!important;overflow:visible!important;position:relative!important;
}
.login-body .crm3636-login-page::before{display:none!important}
/* Right-side actual login form, frosted but readable. */
.login-body .login-card.crm365-login-card.crm3636-glass-card{
  grid-column:1!important;justify-self:stretch!important;align-self:center!important;
  min-width:0!important;max-width:100%!important;
  background:rgba(249,252,255,.84)!important;
  border:1.5px solid rgba(255,255,255,.90)!important;
  border-radius:30px!important;
  padding:clamp(26px,3.4vw,50px) clamp(26px,3.45vw,52px)!important;
  -webkit-backdrop-filter:blur(21px) saturate(115%)!important;
  backdrop-filter:blur(21px) saturate(115%)!important;
  box-shadow:0 26px 70px rgba(17,52,82,.20),inset 0 1px 0 rgba(255,255,255,.84)!important;
  position:relative!important;z-index:2!important;
  text-align:center!important;
}
.login-body .crm3636-login-brand{display:flex;flex-direction:column;align-items:center;gap:14px;margin-bottom:17px}
.login-body .crm3636-login-brand .login-logo{
  display:block!important;width:min(220px,76%)!important;max-width:220px!important;
  max-height:144px!important;height:auto!important;object-fit:contain!important;
  mix-blend-mode:multiply;
}
.login-body .crm3636-brand-rule{display:block;width:136px;height:2px;border-radius:3px;background:linear-gradient(90deg,#b7cee1 0 40%,#f7a66e 40% 62%,#b7cee1 62% 100%)}
.login-body .login-intro.crm3636-intro{margin:0 0 23px!important;text-align:center!important;}
.login-body .login-intro.crm3636-intro h1{
  color:#153d6b!important;font-size:clamp(29px,2.7vw,39px)!important;font-weight:900!important;
 margin:0 0 8px!important;line-height:1.35!important;text-shadow:none!important;letter-spacing:0!important;
}
.login-body .login-intro.crm3636-intro p{
  color:#6f879d!important;font-size:clamp(14px,1vw,16px)!important;font-weight:550!important;line-height:1.65!important;
  max-width:none!important;text-align:center!important;margin:0!important;
}
.login-body .crm3636-form{text-align:right!important;direction:rtl!important}
.login-body .crm3636-form label{display:block!important;color:#365c79!important;font-weight:750!important;font-size:12px!important;margin-bottom:5px!important}
.login-body .crm3636-form .input-wrap{
  display:flex!important;align-items:center!important;gap:12px!important;min-width:0!important;
  min-height:55px!important;margin:7px 0 14px!important;padding:0 14px!important;
  background:rgba(255,255,255,.96)!important;border:1px solid rgba(202,218,229,.88)!important;
  border-radius:14px!important;box-shadow:0 3px 12px rgba(17,62,87,.04)!important;
  transition:border-color .18s,box-shadow .18s!important;
}
.login-body .crm3636-form .input-wrap:focus-within{border-color:#579cc1!important;box-shadow:0 0 0 3px rgba(39,116,165,.12)!important}
.login-body .crm3636-form .input-wrap > svg{color:#7799b0!important;flex:0 0 auto!important}
.login-body .crm3636-form .input-wrap input{
  width:100%!important;min-width:0!important;flex:1 1 auto!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
  color:#1b4769!important;font-size:16px!important;text-align:right!important;
  padding:12px 0!important;height:auto!important;line-height:1.4!important;
}
.login-body .crm3636-form .input-wrap input::placeholder{color:#869aaa!important;opacity:1}
.login-body .crm3636-form .crm365-eye{
  color:#436985!important;background:transparent!important;min-width:35px!important;min-height:35px!important;
  border:0!important;box-shadow:none!important;border-radius:10px!important;
}
.login-body .crm3636-form .crm365-eye:hover{background:#e9f2f7!important}
.login-body .crm3636-form .crm365-submit{
  margin-top:22px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:13px!important;
  width:100%!important;min-height:55px!important;padding:12px 20px!important;
  background:linear-gradient(112deg,#16527d,#126c9a)!important;
  color:#fff!important;border:0!important;border-radius:14px!important;
  font-size:17px!important;font-weight:850!important;
  box-shadow:0 11px 22px rgba(15,77,123,.17)!important;
}
.login-body .crm3636-form .crm365-submit:hover{background:linear-gradient(112deg,#154d75,#0e628e)!important;filter:none!important;transform:translateY(-1px)}
.login-body .crm3636-form .crm365-submit:focus-visible{outline:3px solid #83bddc!important;outline-offset:3px!important}
.login-body .crm3636-glass-card .login-footer{font-size:11px!important;margin:16px 0 0!important;color:#8aa0ae!important;text-align:center!important}
.login-body .crm3636-glass-card .message{margin:0 0 16px!important;text-align:right!important}
/* Editorial text over background (left side on desktop). */
.login-body .login-aside.crm365-aside.crm3636-aside,
.login-body .login-wrap[data-theme="1"] .crm365-aside.crm3636-aside,
.login-body .login-wrap[data-theme="2"] .crm365-aside.crm3636-aside,
.login-body .login-wrap[data-theme="3"] .crm365-aside.crm3636-aside{
  grid-column:2!important;align-self:end!important;min-width:0!important;min-height:0!important;
  background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;display:flex!important;align-items:flex-end!important;overflow:visible!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;color:#fff!important;
}
.login-body .login-aside.crm3636-aside::before,
.login-body .login-aside.crm3636-aside::after{display:none!important}
.login-body .login-aside .crm3636-aside-content{
  width:100%!important;max-width:600px!important;position:relative!important;z-index:2!important;
  background:transparent!important;padding:0 15px clamp(8px,3vw,40px)!important;
  text-align:right!important;
}
.login-body .crm3636-aside-content .pill{
  display:inline-block!important;background:rgba(16,57,84,.42)!important;
  border:1px solid rgba(255,255,255,.38)!important;color:#fff!important;
  border-radius:40px!important;font-size:11px!important;letter-spacing:.05em!important;
  padding:8px 14px!important;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);
}
.login-body .crm3636-aside-content h2{
  color:#fff!important;font-size:clamp(35px,3.6vw,54px)!important;line-height:1.32!important;
  font-weight:900!important;margin:15px 0 12px!important;
  text-shadow:0 3px 22px rgba(5,30,54,.40)!important;
}
.login-body .login-aside.crm365-aside.crm3636-aside .crm3636-aside-content h2 em{color:#fff!important;font-style:normal!important}
.login-body .crm3636-aside-content p{
  color:#f4f9fc!important;font-weight:650!important;font-size:clamp(14px,1.25vw,17px)!important;
  line-height:1.75!important;max-width:480px!important;
  text-shadow:0 2px 12px rgba(8,33,56,.6)!important;
}
.login-body .crm3636-aside-content .crm365-aside-metrics{margin-top:20px!important;display:flex!important;gap:9px!important;flex-wrap:wrap!important}
.login-body .crm3636-aside-content .crm365-aside-metrics span{
  color:#fff!important;font-size:12px!important;font-weight:750!important;
  border:1px solid rgba(255,255,255,.4)!important;
  background:rgba(14,54,79,.34)!important;border-radius:12px!important;
  box-shadow:none!important;padding:10px 13px!important;
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
}
/* Mobile crop prioritizes branded wall and leaves natural scroll instead of shrinking everything. */
@media(max-width:920px){
  body.login-body{
    background-attachment:scroll!important;
    background-position:22% center!important;
    align-items:flex-start!important;padding:0 12px 25px!important;
  }
  body.login-body::before{background:linear-gradient(180deg,rgba(13,50,75,.08),rgba(13,50,75,.08) 30%,rgba(6,32,55,.30) 100%)!important}
  .login-body .login-wrap.crm365-login-wrap.crm3636-login-page{
    display:flex!important;flex-direction:column!important;align-items:center!important;
    width:100%!important;max-width:560px!important;margin:clamp(130px,23vh,260px) auto 12px!important;
    padding:0!important;min-height:0!important;gap:0!important;
  }
  .login-body .login-card.crm365-login-card.crm3636-glass-card{
    flex:0 1 auto!important;width:100%!important;padding:28px clamp(19px,5vw,36px)!important;
    border-radius:28px!important;background:rgba(250,253,255,.90)!important;
  }
  .login-body .login-aside.crm365-aside.crm3636-aside{display:none!important}
  .login-body .crm3636-login-brand .login-logo{width:min(185px,75%)!important;max-width:185px!important;max-height:125px!important}
  .login-body .login-intro.crm3636-intro h1{font-size:32px!important}
}
@media(max-width:440px){
  body.login-body{padding:0 10px 23px!important;background-position:19% center!important}
  .login-body .login-wrap.crm365-login-wrap.crm3636-login-page{margin-top:clamp(116px,21vh,205px)!important;max-width:100%!important}
  .login-body .login-card.crm365-login-card.crm3636-glass-card{
    padding:22px 19px 26px!important;border-radius:23px!important;
  }
  .login-body .crm3636-login-brand{gap:8px;margin-bottom:12px}
  .login-body .crm3636-login-brand .login-logo{width:162px!important;max-width:162px!important;max-height:111px!important}
  .login-body .login-intro.crm3636-intro h1{font-size:30px!important}
  .login-body .login-intro.crm3636-intro p{font-size:13px!important}
  .login-body .crm3636-form .input-wrap{min-height:53px!important;margin-bottom:12px!important}
  .login-body .crm3636-form .crm365-submit{min-height:54px!important;margin-top:19px!important}
}
@media(prefers-reduced-motion:reduce){.login-body .crm3636-form .crm365-submit{transition:none!important;transform:none!important}}
