@font-face {
  font-family: Manrope;
  src: url("/static/fonts/crm/manrope-400-600-700-latin-8bd97e6bbb.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("/static/fonts/crm/manrope-400-600-700-cyrillic-93bef303b8.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Manrope, system-ui, sans-serif;
  color: #142843;
  background: #fbfcfe;
}
::selection { background: #bfeafe; color: #112238; }
.login-layout {
  display: grid;
  grid-template-columns: 52% 1fr;
  min-height: 100vh;
  min-height: 100svh;
}
.identity {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 64px);
  background: #07111d;
  color: #f6f9ff;
}
.signature { display: flex; align-items: center; gap: 10px; }
.signature b { font: 850 28px/1 system-ui, sans-serif; letter-spacing: .035em; }
.signature small { display: none; }
.showroom {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.plate { opacity: .96; }
.wall-sign { opacity: .9; }
.lamps { opacity: .62; }
.spill { opacity: .31; }
@media (prefers-reduced-motion: no-preference) {
  .plate { animation: expose-photo 1.8s both; }
  .wall-sign { animation: power-sign 1.45s both; }
  .lamps { animation: power-lamps 1.8s both; }
  .spill { animation: power-reflection 1.8s both; }
}
@keyframes expose-photo {
  0% { opacity: .23; }
  15% { opacity: .25; }
  42% { opacity: .44; }
  78% { opacity: .9; }
  100% { opacity: .96; }
}
@keyframes power-sign {
  0%, 14% { opacity: .13; }
  45% { opacity: 1; }
  100% { opacity: .9; }
}
@keyframes power-lamps {
  0%, 12% { opacity: 0; }
  26% { opacity: .21; }
  46% { opacity: 1; }
  68% { opacity: .75; }
  100% { opacity: .62; }
}
@keyframes power-reflection {
  0%, 18% { opacity: 0; }
  49% { opacity: .86; }
  100% { opacity: .31; }
}
.salon-caption {
  margin: 0;
  font-size: clamp(48px, 4.5vw, 75px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.02;
  text-shadow: 0 2px 16px #04101b55;
}
.access { display: grid; place-items: center; padding: 52px 34px; }
.entry { width: min(100%, 388px); }
h1 { margin: 0 0 39px; font-size: 40px; line-height: 1.14; letter-spacing: -.04em; }
label { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 700; }
.token-field {
  display: flex;
  align-items: center;
  height: 54px;
  background: white;
  border: 1px solid #8597ac;
  border-radius: 8px;
}
.token-field:focus-within, :is(button, summary):focus-visible {
  outline: 2px solid #2961cf;
  outline-offset: 2px;
}
.token-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 15px;
  border: 0;
  outline: 0;
  border-radius: inherit;
  font: inherit;
  font-size: 16px;
  color: inherit;
  background: transparent;
  caret-color: #245ce1;
}
.token-field input::placeholder { color: #5e7085; }
.eye {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #526984;
  cursor: pointer;
}
.eye:hover { color: #142843; }
.eye-slash { display: none; }
.eye[aria-pressed="true"] .eye-slash { display: block; }
.entry svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  margin-top: 16px;
  padding: 0 17px;
  border: 0;
  border-radius: 8px;
  background: #255de2;
  color: white;
  font: 700 16px Manrope, sans-serif;
  cursor: pointer;
}
.submit:hover { background: #194fc8; }
.submit:disabled { background: #526faa; cursor: wait; }
#partnerLoginError { margin: 0; font-size: 14px; color: #a52a39; }
#partnerLoginError:not(:empty) { margin-top: 8px; }
.help {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #d7dfe8;
  font-size: 14px;
  line-height: 1.6;
  color: #465c75;
}
.help summary { display: inline-flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; }
.help summary:hover { text-decoration: underline; }
.help summary::-webkit-details-marker { display: none; }
.help summary svg { width: 14px; }
.help[open] summary svg { transform: rotate(180deg); }
.help p { margin: 7px 0 0; }

@media (max-width: 720px) {
  .login-layout { display: flex; flex-direction: column; }
  .identity { justify-content: center; min-height: 132px; padding: 20px 22px; }
  .salon-caption, .wall-sign { display: none; }
  .showroom {
    left: auto;
    width: 57%;
    mask-image: linear-gradient(90deg, transparent, black 15%);
  }
  .signature {
    display: grid;
    grid-template-columns: 34px auto;
    justify-content: start;
    gap: 3px 11px;
  }
  .signature img { grid-row: 1 / 3; }
  .signature b { font-size: 24px; }
  .signature small { display: block; font-size: 13px; line-height: 1.25; color: #c4d2e3; }
  .access { align-items: start; padding: clamp(26px, 8svh, 70px) 24px 32px; }
  h1 { margin-bottom: 32px; font-size: 34px; }
}
@media (max-height: 580px) {
  .identity { padding-block: 14px; min-height: 100px; }
  .access { padding-block: 16px; }
  h1 { font-size: 30px; margin-bottom: 16px; }
  .help { margin-top: 14px; padding-top: 10px; }
  .salon-caption { font-size: 42px; }
}
@media (orientation: landscape) and (max-height: 450px) {
  .login-layout { display: grid; grid-template-columns: 30% 1fr; }
  .identity { justify-content: flex-start; padding: 16px; }
  .showroom { width: 100%; mask-image: none; }
  .wall-sign, .salon-caption { display: none; }
  .signature { display: grid; grid-template-columns: 28px auto; justify-content: start; gap: 3px 7px; }
  .signature img { grid-row: 1 / 3; width: 28px; height: auto; }
  .signature b { font-size: 22px; }
  .signature small { display: block; font-size: 11px; line-height: 1.25; color: #c4d2e3; }
  .access { align-items: center; padding: 12px 20px; }
  h1 { margin-bottom: 12px; }
  .token-field, .eye { height: 44px; }
  .submit { min-height: 44px; margin-top: 10px; }
  .help { margin-top: 10px; padding-top: 8px; }
}
