* { box-sizing: border-box; }
.crm-auth {
  margin: 0;
  font: 16px/1.55 system-ui, sans-serif;
  color: #142746;
  background: #f4f8ff;
}
.crm-auth__split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 100vh;
  min-height: 100svh;
}
.crm-auth__visual {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  margin: 0;
  overflow: hidden;
  background: #06172f;
}
.crm-auth__visual img {
  display: block;
  min-height: 0;
  width: 100%;
  height: 100%;
  max-height: 100svh;
  object-fit: contain;
}
.crm-auth__panel {
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 80px);
  background: radial-gradient(ellipse at top right, #e4eeff, transparent 70%), #f8fbff;
}
.crm-auth__content { width: min(100%, 440px); }
.crm-auth__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 30px;
  font-size: 22px;
  font-weight: 780;
}
.crm-auth__brand img { object-fit: contain; }
.crm-auth__brand small { color: #49618a; font-size: 14px; font-weight: 650; }
.crm-auth h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.crm-auth__intro { margin: 12px 0 26px; color: #4f637f; }
.crm-auth__form { display: grid; gap: 16px; }
.crm-auth__form label { display: grid; gap: 6px; font-size: 14px; font-weight: 650; }
.crm-auth__form input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #bdcde5;
  border-radius: 10px;
  background: #fff;
  color: inherit;
  font: inherit;
}
.crm-auth__form input:focus-visible, .crm-auth :is(a, button):focus-visible {
  outline: 3px solid #367cff;
  outline-offset: 3px;
}
.crm-auth__button {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 13px 18px;
  border: 0;
  border-radius: 10px;
  background: #225bdc;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.crm-auth__button:hover { background: #1749bc; }
.crm-auth__links { margin-top: 18px; font-size: 14px; }
.crm-auth__links a { color: #1749bc; text-underline-offset: 3px; }
.crm-auth__notice {
  padding: 12px 14px;
  margin: 0 0 14px;
  border-radius: 10px;
  background: #ffe9e9;
  color: #852a37;
}
.crm-auth__notice--success { background: #e4f1ff; color: #214371; }
.crm-auth__hint { color: #4f637f; font-size: 13px; }
@media (max-width: 760px) {
  .crm-auth__split { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .crm-auth__visual { aspect-ratio: 2.3; }
  .crm-auth__visual img { height: 100%; object-fit: cover; object-position: center 48%; }
  .crm-auth__panel { padding: 32px 22px 42px; }
  .crm-auth__brand { margin-bottom: 20px; }
}

.crm-auth__form .crm-auth__hint { margin: -8px 0 0; }
/* Keep the page scrollable when a small screen or zoom needs extra space. */
.crm-auth-registration { scrollbar-width: none; }
.crm-auth-registration::-webkit-scrollbar { display: none; }

.crm-auth-registration .crm-auth__panel { padding: 24px clamp(20px, 3vw, 52px); }
.crm-auth-registration .crm-auth__content { width: min(100%, 500px); }
.crm-auth-registration .crm-auth__brand { margin-bottom: 16px; }
.crm-auth-registration .crm-auth__brand img { width: 36px; height: 36px; }
.crm-auth-registration h1 { font-size: clamp(30px, 3.5vw, 46px); }
.crm-auth-registration .crm-auth__intro { margin: 8px 0 18px; }
.crm-auth-registration .crm-auth__form { gap: 12px 14px; }
.crm-auth-registration .crm-auth__form label { gap: 4px; min-width: 0; }
.crm-auth-registration .crm-auth__form input { min-height: 44px; padding-inline: 12px; }
.crm-auth-registration .crm-auth__form .crm-auth__hint { margin: 0; }
.crm-auth-registration .crm-auth__button { min-height: 44px; padding-block: 10px; }
.crm-auth-registration .crm-auth__links { margin: 14px 0 0; }

@media (min-width: 460px) {
  .crm-auth-registration .crm-auth__form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-auth-registration .crm-auth__form > :is(.crm-auth__hint, button) { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .crm-auth-registration .crm-auth__visual { aspect-ratio: 3; }
}