/*
 * CRM login v24
 * A single ambient image plus one responsive HTML card.
 * There is deliberately no artboard, JS sizing, transform or nested scene.
 */
body.crm-login-v24-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

#crmLoginV24,
#crmLoginV24 *,
#crmLoginV24 *::before,
#crmLoginV24 *::after {
  box-sizing: border-box;
}

#crmLoginV24 {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: grid;
  width: 100vw;
  height: 100dvh;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #0a2a63;
  font-family: Montserrat, Arial, sans-serif;
  background: #001947 url('/crm-workspace/assets/login-ambient-v24.webp') center / auto 100% no-repeat;
  place-items: center;
}

#crmLoginV24.crm-login-v24-hidden { display: none; }

/* This is a real grid, not a scaled canvas.  Its width always follows the
   available viewport height, keeping the entire card inside the browser. */
#crmLoginV24Card {
  display: grid;
  grid-template-columns: 49.11197% 50.88803%;
  width: min(1295px, calc(100vw - 64px), calc(166.0256dvh - 264px));
  max-height: calc(100dvh - 64px);
  aspect-ratio: 1295 / 780;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(225, 243, 255, .94);
  border-radius: 31px;
  background: #f8fbff;
  box-shadow: 0 28px 74px rgba(0, 10, 56, .34);
  container-type: inline-size;
}

/* Approved left-side artwork.  It is one background asset, so the logo,
   packaging and light trails remain exactly aligned at every desktop size. */
#crmLoginV24 .crm-login-v24-brand {
  min-width: 0;
  min-height: 0;
  background: #001947 url('/crm-workspace/assets/login-brand-v24.webp') center / 100% 100% no-repeat;
}

#crmLoginV24 .crm-login-v24-panel {
  display: flex;
  min-width: 0;
  min-height: 0;
  padding: 3.475cqw 4.942cqw 1.853cqw;
  overflow: hidden;
  flex-direction: column;
  background: linear-gradient(145deg, #fff 0%, #f9fbff 62%, #edf4ff 100%);
}

#crmLoginV24 .crm-login-v24-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 3.552cqw;
  margin: 0;
  padding: 0 1.544cqw;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(100deg, #e4f0ff, #c9e2ff);
  color: #0647dd;
  font-size: 1.158cqw;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  white-space: nowrap;
}

#crmLoginV24 .crm-login-v24-badge svg {
  width: 1.776cqw;
  height: 1.776cqw;
  margin-right: .849cqw;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

#crmLoginV24 .crm-login-v24-title {
  margin: 2.317cqw 0 0;
  color: #06275f;
  font-size: 4.402cqw;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.08em;
  white-space: nowrap;
}

#crmLoginV24 .crm-login-v24-subtitle {
  margin: 1.081cqw 0 0;
  color: #4a6591;
  font-size: 1.390cqw;
  font-weight: 500;
  line-height: 1.42;
  white-space: nowrap;
}

#crmLoginV24 .crm-login-v24-fields {
  display: grid;
  gap: 1.544cqw;
  margin: 2.934cqw 0 0;
  padding: 0;
}

#crmLoginV24 .crm-login-v24-field-label { display: block; margin: 0; font-size: 0; }

#crmLoginV24 .crm-login-v24-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

#crmLoginV24 .crm-login-v24-field { position: relative; display: block; }

#crmLoginV24 .crm-login-v24-field input {
  display: block;
  width: 100%;
  height: 5.251cqw;
  min-height: 0;
  margin: 0;
  padding: 0 4.633cqw 0 5.328cqw;
  border: 1px solid #c3d3e7;
  border-radius: 1.235cqw;
  outline: 0;
  background: rgba(255, 255, 255, .88);
  color: #112f61;
  font: 600 1.313cqw/1 Montserrat, Arial, sans-serif;
  box-shadow: none;
}

#crmLoginV24 .crm-login-v24-field input::placeholder {
  color: #627aa4;
  font-weight: 500;
  opacity: 1;
}

#crmLoginV24 .crm-login-v24-field input:focus {
  border-color: #137cfa;
  box-shadow: 0 0 0 .309cqw rgba(19, 124, 250, .13);
}

#crmLoginV24 .crm-login-v24-field-icon {
  position: absolute;
  top: 50%;
  left: 1.699cqw;
  width: 2.008cqw;
  height: 2.008cqw;
  color: #506e9f;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  pointer-events: none;
  transform: translateY(-50%);
}

#crmLoginV24 .crm-login-v24-password-toggle {
  position: absolute;
  top: 50%;
  right: 1.235cqw;
  display: grid;
  width: 2.625cqw;
  height: 2.625cqw;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: .695cqw;
  background: transparent;
  color: #506e9f;
  cursor: pointer;
  place-items: center;
  transform: translateY(-50%);
}

#crmLoginV24 .crm-login-v24-password-toggle:hover { color: #095edc; background: #eef5ff; }

#crmLoginV24 .crm-login-v24-password-toggle svg {
  width: 1.853cqw;
  height: 1.853cqw;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

#crmLoginV24 .crm-login-v24-remember {
  display: inline-flex;
  align-items: center;
  gap: 1.081cqw;
  width: max-content;
  height: 2.317cqw;
  margin: .309cqw 0 0;
  color: #102958;
  font-size: 1.235cqw;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

#crmLoginV24 .crm-login-v24-remember input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  opacity: 0;
}

#crmLoginV24 .crm-login-v24-check {
  display: grid;
  width: 2.239cqw;
  height: 2.239cqw;
  flex: 0 0 2.239cqw;
  border: 1px solid #9dbdf0;
  border-radius: .541cqw;
  background: #fff;
  box-shadow: 0 .154cqw .386cqw rgba(30, 77, 151, .08);
  place-items: center;
}

#crmLoginV24 .crm-login-v24-remember input:checked + .crm-login-v24-check {
  border-color: #125aeb;
  background: #125aeb;
  box-shadow: 0 .309cqw .695cqw rgba(18, 90, 235, .22);
}

#crmLoginV24 .crm-login-v24-remember input:checked + .crm-login-v24-check::after {
  content: '✓';
  color: #fff;
  font-size: 1.621cqw;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-.077cqw);
}

#crmLoginV24 .crm-login-v24-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.544cqw;
  width: 100%;
  height: 5.251cqw;
  min-height: 0;
  margin: 1.081cqw 0 0;
  padding: 0 1.544cqw;
  border: 0;
  border-radius: 1.235cqw;
  background: linear-gradient(102deg, #0785fb 0%, #123be0 100%);
  box-shadow: 0 1.081cqw 2.085cqw rgba(10, 75, 218, .29);
  color: #fff;
  font: 800 1.467cqw/1 Montserrat, Arial, sans-serif;
  cursor: pointer;
}

#crmLoginV24 .crm-login-v24-submit:hover { filter: brightness(1.04); }
#crmLoginV24 .crm-login-v24-submit:disabled { cursor: wait; opacity: .72; }

#crmLoginV24 .crm-login-v24-footer {
  position: relative;
  display: flex;
  min-height: 10.579cqw;
  margin-top: auto;
  padding-top: 1.931cqw;
  flex: 0 0 10.579cqw;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

#crmLoginV24 .crm-login-v24-footer::before {
  position: absolute;
  top: 1.390cqw;
  right: 0;
  left: 0;
  height: 1px;
  background: #b9cbe8;
  content: '';
}

#crmLoginV24 .crm-login-v24-footer-label {
  position: relative;
  z-index: 1;
  margin-top: -1.313cqw;
  padding: 0 1.313cqw;
  background: #f8fbff;
  color: #4e6793;
  font-size: 1.081cqw;
  font-weight: 600;
  line-height: 1;
}

#crmLoginV24 .crm-login-v24-developer {
  display: block;
  width: 14.981cqw;
  height: 6.255cqw;
  margin-top: .618cqw;
  overflow: hidden;
}

#crmLoginV24 .crm-login-v24-developer img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

@media (max-width: 900px), (max-height: 570px) {
  body.crm-login-v24-open { overflow: auto !important; }

  #crmLoginV24 {
    position: relative;
    display: block;
    height: auto;
    min-height: 100dvh;
    overflow: auto;
    background-size: cover;
  }

  #crmLoginV24Card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: min(650px, 100%);
    max-height: none;
    min-height: 0;
    margin: 0 auto;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
  }

  #crmLoginV24 .crm-login-v24-brand { min-height: min(540px, 78vw); }
  #crmLoginV24 .crm-login-v24-panel { padding: 44px 42px 34px; }
  #crmLoginV24 .crm-login-v24-badge { min-height: 46px; padding: 0 20px; font-size: 15px; }
  #crmLoginV24 .crm-login-v24-badge svg { width: 23px; height: 23px; margin-right: 11px; }
  #crmLoginV24 .crm-login-v24-title { margin-top: 30px; font-size: 57px; }
  #crmLoginV24 .crm-login-v24-subtitle { margin-top: 14px; font-size: 18px; }
  #crmLoginV24 .crm-login-v24-fields { gap: 20px; margin-top: 38px; }
  #crmLoginV24 .crm-login-v24-field input { height: 68px; padding: 0 60px 0 69px; border-radius: 16px; font-size: 17px; }
  #crmLoginV24 .crm-login-v24-field-icon { left: 22px; width: 26px; height: 26px; }
  #crmLoginV24 .crm-login-v24-password-toggle { right: 16px; width: 34px; height: 34px; border-radius: 9px; }
  #crmLoginV24 .crm-login-v24-password-toggle svg { width: 24px; height: 24px; }
  #crmLoginV24 .crm-login-v24-remember { gap: 14px; height: 30px; margin-top: 4px; font-size: 16px; }
  #crmLoginV24 .crm-login-v24-check { width: 29px; height: 29px; flex-basis: 29px; border-radius: 7px; }
  #crmLoginV24 .crm-login-v24-remember input:checked + .crm-login-v24-check::after { font-size: 21px; }
  #crmLoginV24 .crm-login-v24-submit { height: 68px; margin-top: 14px; border-radius: 16px; font-size: 19px; }
  #crmLoginV24 .crm-login-v24-footer { min-height: 137px; padding-top: 25px; flex-basis: 137px; }
  #crmLoginV24 .crm-login-v24-footer::before { top: 18px; }
  #crmLoginV24 .crm-login-v24-footer-label { margin-top: -17px; padding: 0 17px; font-size: 14px; }
  #crmLoginV24 .crm-login-v24-developer { width: 194px; height: 81px; margin-top: 8px; }
}

@media (max-width: 480px) {
  #crmLoginV24 .crm-login-v24-brand { min-height: 390px; }
  #crmLoginV24 .crm-login-v24-panel { padding: 35px 24px 28px; }
  #crmLoginV24 .crm-login-v24-title { font-size: 39px; }
  #crmLoginV24 .crm-login-v24-subtitle { font-size: 15px; white-space: normal; }
  #crmLoginV24 .crm-login-v24-fields { gap: 16px; margin-top: 30px; }
  #crmLoginV24 .crm-login-v24-field input { height: 61px; padding-left: 58px; font-size: 14px; }
  #crmLoginV24 .crm-login-v24-field-icon { left: 17px; width: 23px; height: 23px; }
  #crmLoginV24 .crm-login-v24-submit { height: 61px; font-size: 17px; }
  #crmLoginV24 .crm-login-v24-remember { font-size: 14px; }
  #crmLoginV24 .crm-login-v24-footer { min-height: 112px; flex-basis: 112px; }
}
