:root {
  --b2b-blue-950: #0b3658;
  --b2b-blue-900: #0f4774;
  --b2b-blue-800: #145b91;
  --b2b-blue-700: #1469a8;
  --b2b-blue-600: #1879bd;
  --b2b-blue-100: #e9f3fa;
  --b2b-orange: #f59a18;
  --b2b-ink: #152536;
  --b2b-text: #425466;
  --b2b-muted: #738291;
  --b2b-line: #d8e1e8;
  --b2b-bg: #eef3f6;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--b2b-bg); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--b2b-text);
  background: var(--b2b-bg);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.b2b-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(370px, 46%) minmax(420px, 54%);
}
.b2b-brand-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 100vh;
  padding: 48px clamp(34px, 4.2vw, 76px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(11,54,88,.98), rgba(20,91,145,.96)),
    #0b3658;
}
.b2b-brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(135deg, #000 0%, rgba(0,0,0,.78) 48%, transparent 92%);
}
.b2b-brand-panel::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -170px;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(255,255,255,.14);
  transform: rotate(45deg);
  box-shadow:
    0 0 0 54px rgba(255,255,255,.025),
    0 0 0 108px rgba(255,255,255,.02),
    0 0 0 162px rgba(255,255,255,.015);
}
.b2b-brand-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 600px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.b2b-brand-logo {
  display: inline-flex;
  width: min(265px, 70%);
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.b2b-brand-logo img { display: block; width: 100%; height: auto; }
.b2b-brand-copy { margin: auto 0; padding: 70px 0 58px; }
.b2b-brand-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: #cfe7f6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.b2b-brand-kicker::before { content: ""; width: 28px; border-top: 2px solid var(--b2b-orange); }
.b2b-brand-copy > p {
  max-width: 540px;
  margin: 0;
  color: #d7e8f3;
  font-size: 17px;
}
.b2b-feature-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px 24px;
}
.b2b-feature-list li {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 12px;
  align-items: start;
  color: #edf7fc;
  font-size: 14px;
}
.b2b-feature-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  color: var(--b2b-orange);
}
.b2b-feature-list strong { display: block; margin-bottom: 2px; color: #fff; font-size: 14px; }
.b2b-feature-list span { color: #c4dbe9; font-size: 12px; line-height: 1.4; }
.b2b-brand-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.17);
  color: #c6dbea;
  font-size: 12px;
}
.b2b-brand-foot a { color: #fff; font-weight: 700; }
.b2b-brand-foot a:hover { color: var(--b2b-orange); }

.b2b-auth-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 52px clamp(28px, 5vw, 82px);
  background:
    radial-gradient(circle at 85% 12%, rgba(24,121,189,.08), transparent 32%),
    linear-gradient(180deg, #f7fafc 0%, #eef3f6 100%);
}
.b2b-auth-wrap { width: min(100%, 510px); }
.b2b-auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}
.b2b-portal-name { display: flex; align-items: center; gap: 12px; color: var(--b2b-blue-950); }
.b2b-portal-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  background: transparent;
}
.b2b-portal-mark img {
  width: 48px;
  height: 50px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(33%) sepia(35%) saturate(2179%) hue-rotate(167deg) brightness(92%) contrast(92%);
}
.b2b-portal-name strong { display: block; font-size: 17px; line-height: 1.15; }
.b2b-portal-name span { display: block; margin-top: 2px; color: var(--b2b-muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.b2b-back-link { color: var(--b2b-blue-800); font-size: 13px; font-weight: 750; white-space: nowrap; }
.b2b-back-link:hover { color: var(--b2b-orange); }
.b2b-card {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 4vw, 44px);
  border: 1px solid var(--b2b-line);
  background: rgba(255,255,255,.97);
  box-shadow: 0 22px 55px rgba(11,54,88,.11);
}
.b2b-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--b2b-orange) 0 22%, var(--b2b-blue-700) 22% 100%);
}
.b2b-view[hidden] { display: none !important; }
.b2b-card-head { margin-bottom: 28px; }
.b2b-card-head .b2b-eyebrow {
  margin: 0 0 10px;
  color: var(--b2b-blue-700);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.b2b-card-head h2 { margin: 0; color: var(--b2b-blue-950); font-size: 30px; line-height: 1.12; letter-spacing: -.02em; }
.b2b-card-head p { margin: 10px 0 0; color: var(--b2b-muted); font-size: 14px; }
.b2b-form { display: grid; gap: 18px; }
.b2b-field { display: grid; gap: 7px; }
.b2b-field label { color: var(--b2b-ink); font-size: 13px; font-weight: 750; }
.b2b-input-wrap { position: relative; }
.b2b-input {
  width: 100%;
  height: 50px;
  border: 1px solid #c9d5df;
  border-radius: 0;
  outline: none;
  padding: 0 15px;
  color: var(--b2b-ink);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.b2b-input::placeholder { color: #94a3af; }
.b2b-input:hover { border-color: #9fb3c2; }
.b2b-input:focus { border-color: var(--b2b-blue-600); box-shadow: 0 0 0 3px rgba(24,121,189,.11); }
.b2b-input.has-action { padding-right: 52px; }
.b2b-input-action {
  position: absolute;
  right: 1px;
  top: 1px;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--b2b-blue-800);
  display: grid;
  place-items: center;
}
.b2b-input-action:hover { background: var(--b2b-blue-100); }
.b2b-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.b2b-check { display: inline-flex; align-items: center; gap: 8px; color: var(--b2b-muted); font-size: 13px; cursor: pointer; }
.b2b-check input { width: 16px; height: 16px; accent-color: var(--b2b-blue-700); }
.b2b-text-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--b2b-blue-700);
  font-size: 13px;
  font-weight: 750;
}
.b2b-text-button:hover { color: var(--b2b-orange); }
.b2b-submit {
  position: relative;
  min-height: 50px;
  border: 1px solid var(--b2b-blue-700);
  background: var(--b2b-blue-700);
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.b2b-submit:hover:not(:disabled) { background: var(--b2b-blue-950); border-color: var(--b2b-blue-950); transform: translateY(-1px); }
.b2b-submit:disabled { cursor: wait; opacity: .88; }
.b2b-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: b2bSpin .7s linear infinite;
}
.b2b-submit.is-loading .b2b-spinner { display: block; }
@keyframes b2bSpin { to { transform: rotate(360deg); } }
.b2b-status {
  display: none;
  min-height: 44px;
  padding: 11px 13px;
  border-left: 3px solid transparent;
  font-size: 13px;
  line-height: 1.45;
}
.b2b-status.is-visible { display: block; }
.b2b-status.is-working { border-color: var(--b2b-blue-600); background: #f1f7fb; color: var(--b2b-blue-900); }
.b2b-status.is-error { border-color: #cf4a43; background: #fff4f2; color: #8d302b; }
.b2b-status.is-success { border-color: #38946a; background: #f1faf6; color: #246b4c; }
.b2b-working-dots span { animation: b2bDots 1.2s infinite; opacity: .25; }
.b2b-working-dots span:nth-child(2) { animation-delay: .16s; }
.b2b-working-dots span:nth-child(3) { animation-delay: .32s; }
@keyframes b2bDots { 0%, 75%, 100% { opacity: .25; } 35% { opacity: 1; } }
.b2b-recovery-back { margin-top: 2px; justify-self: start; }

@media (max-width: 980px) {
  .b2b-shell { grid-template-columns: 1fr; }
  .b2b-brand-panel { min-height: auto; padding: 30px 28px; }
  .b2b-brand-copy { padding: 44px 0 34px; }
    .b2b-brand-copy > p { max-width: 700px; }
  .b2b-feature-list { grid-template-columns: repeat(2, minmax(0,1fr)); max-width: 720px; }
  .b2b-brand-foot { margin-top: 12px; }
  .b2b-auth-panel { min-height: auto; padding: 42px 24px 56px; }
}
@media (max-width: 620px) {
  .b2b-brand-panel { padding: 24px 20px; }
  .b2b-brand-logo { width: 210px; padding: 0; }
  .b2b-brand-copy { padding: 36px 0 26px; }
  .b2b-brand-copy > p { font-size: 15px; }
  .b2b-feature-list { grid-template-columns: 1fr; gap: 13px; margin-top: 28px; }
  .b2b-feature-list li:nth-child(n+3) { display: none; }
  .b2b-brand-foot { align-items: flex-start; flex-direction: column; gap: 7px; }
  .b2b-auth-panel { padding: 32px 14px 44px; }
  .b2b-auth-top { margin-bottom: 18px; }
  .b2b-back-link { font-size: 0; }
  .b2b-back-link::after { content: "← На сайт"; font-size: 13px; }
  .b2b-card { padding: 30px 20px; }
  .b2b-card-head h2 { font-size: 27px; }
  .b2b-row { align-items: flex-start; flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .b2b-submit, .b2b-input, .b2b-marker, .b2b-spinner { transition: none !important; animation-duration: .001ms !important; }
}
