/* Оформление по образцу «Альфа Селлер» (10.11.2026): вход и мастер подключения
   в той же палитре и тех же шрифтах, что кабинет /app (см. web-prototype/web/css/tokens.css).
   Роли цветов прежние, значения новые: --blue теперь чёрный акцент, --green — тёмно-зелёный
   текст статусов, главная кнопка — лайм с чёрным текстом. Лайм только заливкой. */
html.design-v3 {
  --bg: #f4f4f4;
  --surface: #ffffff;
  --surface-soft: #f4f4f4;
  --ink: #232427;
  --ink-2: #555555;
  --muted: #6b6b6b;
  --line: #efefef;
  --line-strong: #e6e6e6;
  --green: #3c7d0a;
  --green-dark: #2f6408;
  --green-soft: #eef9d4;
  --amber: #a86400;
  --amber-soft: #fdf1d8;
  --red: #dc200c;
  --red-soft: #fdebe8;
  --blue: #1c1d20;
  --blue-soft: #ececec;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 4px 16px rgba(0, 0, 0, .035);
  --lime: #a6ed00;
  --lime-hover: #b6f62e;
  --on-lime: #1c1d20;
  --on-blue: #ffffff;
  font-family: 'Mulish', 'Segoe UI', system-ui, sans-serif;
}

html.design-v3[data-theme="dark"] {
  --bg: #111214;
  --surface: #1b1c1f;
  --surface-soft: #232428;
  --ink: #f2f2f2;
  --ink-2: #b9b9bc;
  --muted: #8f8f94;
  --line: #26282c;
  --line-strong: #303237;
  --green: #a6ed00;
  --green-dark: #b6f62e;
  --green-soft: rgba(166, 237, 0, .12);
  --amber: #f0b44c;
  --amber-soft: rgba(240, 180, 76, .14);
  --red: #ff5a47;
  --red-soft: rgba(255, 90, 71, .14);
  --blue: #f2f2f2;
  --blue-soft: #2a2b2f;
  --shadow: 0 1px 2px rgba(0, 0, 0, .45);
  --on-lime: #111214;
  --on-blue: #111214;
}

html.design-v3 body { font-size: 16px; font-weight: 500; }

/* Знак — чёрная плитка, белая ось; слово — Unbounded, как цифры кабинета. */
html.design-v3 .wordmark { font-family: 'Unbounded', 'Mulish', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: 0; }
html.design-v3 .wordmark .mark { color: var(--on-blue); }
html.design-v3 .wordmark .mark-dot { fill: var(--on-blue); }

/* Надзаголовки — без капса и разрядки, серые 15. */
html.design-v3 .kicker,
html.design-v3 .eyebrow,
html.design-v3 .auth-copy .kicker {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

/* Декоративные круги за заголовком убраны: в образце фон чистый. */
html.design-v3 .auth-story::after { display: none; }
html.design-v3 .auth-copy h1 { font-weight: 800; letter-spacing: -.035em; }
html.design-v3 .auth-copy > p:last-child { font-size: 18px; }
html.design-v3 .auth-proof span { height: 36px; display: inline-flex; align-items: center; padding: 0 14px; font-size: 15px; }

/* Форма: карточка радиусом 18, вкладки — серая дорожка с белой плиткой. */
html.design-v3 .auth-form { border-color: #ebebeb; border-radius: 18px; }
html.design-v3[data-theme="dark"] .auth-form { border-color: var(--line); }
html.design-v3 .auth-tabs { padding: 4px; border: 0; border-radius: 12px; background: var(--blue-soft); }
html.design-v3 .auth-tab { height: 40px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
html.design-v3 .auth-tab.active { color: var(--ink); background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .09); }
html.design-v3 .auth-heading h2 { font-size: 28px; letter-spacing: -.01em; }

/* Кнопки и поля: высота 44, радиус 12; главная — лайм с чёрным текстом. */
html.design-v3 .button { min-height: 44px; border-radius: 12px; font-size: 15px; }
html.design-v3 .button.primary,
html.design-v3 .launch-card .button.inverse { background: var(--lime); color: var(--on-lime); }
html.design-v3 .button.primary:hover:not(:disabled),
html.design-v3 .launch-card .button.inverse:hover:not(:disabled) { background: var(--lime-hover); color: var(--on-lime); }
html.design-v3 .button.quiet { color: var(--ink); }
html.design-v3 input,
html.design-v3 select { height: 44px; border-radius: 12px; font-size: 16px; }
html.design-v3 input:focus,
html.design-v3 select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(166, 237, 0, .35); }
html.design-v3 .segmented { border-radius: 12px; }
html.design-v3 .segmented button.active { color: var(--ink); }
html.design-v3 .nav-count { background: var(--lime); color: var(--on-lime); }

/* ── Регистрация по образцу MarketGuru (12.11.2026) ─────────────────────────
   Форма — светлой карточкой слева, тёмная панель «что в кабинете» справа.
   Без лаймовой подсветки: главная кнопка и кольцо фокуса — чёрные. */
html.design-v3 .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); }

/* Левая половина — форма. Знак сверху-слева, карточка по центру. */
html.design-v3 .auth-panel {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(32px, 5vw, 60px); background: var(--bg);
}
html.design-v3 .auth-panel .wordmark {
  position: absolute; top: clamp(28px, 4vw, 44px); left: clamp(32px, 5vw, 60px); color: var(--ink);
}
html.design-v3 .auth-panel .wordmark .mark { color: var(--ink); }
html.design-v3 .auth-panel .wordmark .mark-dot { fill: var(--ink); }
html.design-v3 .auth-panel .wordmark span { color: var(--ink); }
html.design-v3 .auth-form,
html.design-v3 .auth-pending {
  width: min(100%, 420px); margin: 0 auto; padding: clamp(26px, 3vw, 36px);
  border: 1px solid #ececec; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow);
}
html.design-v3[data-theme="dark"] .auth-form,
html.design-v3[data-theme="dark"] .auth-pending { border-color: var(--line); }

/* Главная кнопка — чёрная (не лайм). Поля — без зелёного кольца фокуса. */
html.design-v3 .auth .button.primary { background: var(--ink); color: #fff; }
html.design-v3 .auth .button.primary:hover:not(:disabled) { background: #000; }
html.design-v3[data-theme="dark"] .auth .button.primary { background: #fff; color: #111214; }
html.design-v3[data-theme="dark"] .auth .button.primary:hover:not(:disabled) { background: #e9e9e9; }
html.design-v3 .auth input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(35, 36, 39, .12); }
html.design-v3 .auth .field > input { background: var(--surface-soft); border-color: transparent; }
html.design-v3 .auth .field > input:focus { background: var(--surface); }
html.design-v3 .auth .legal { color: var(--muted); }

/* Правая половина — тёмная панель с возможностями. */
html.design-v3 .auth-story {
  order: 1; justify-content: center; padding: clamp(40px, 5vw, 80px);
  background: #1b1c1f; color: #f2f2f2;
}
html.design-v3 .auth-feature { max-width: 560px; width: 100%; }
html.design-v3 .auth-story .kicker { color: #8f8f94; margin: 0 0 14px; }
html.design-v3 .auth-story h1 {
  margin: 0 0 14px; color: #fff; font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1.1; letter-spacing: -.03em; font-weight: 800;
}
html.design-v3 .auth-feats { list-style: none; margin: 26px 0 0; padding: 0; }
html.design-v3 .auth-feat {
  display: flex; align-items: center; gap: 18px; padding: 19px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
html.design-v3 .af-ic {
  flex: none; width: 46px; height: 46px; border-radius: 13px;
  background: rgba(255, 255, 255, .06); display: grid; place-items: center;
}
html.design-v3 .af-ic svg {
  width: 23px; height: 23px; fill: none; stroke: #cfd2d6;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
html.design-v3 .auth-feat strong { display: block; color: #fff; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
html.design-v3 .auth-feat small { display: block; margin-top: 3px; color: #9a9da2; font-size: 14px; line-height: 1.45; }

/* Мобильно — форма сверху, тёмная панель ниже и компактнее. */
@media (max-width: 860px) {
  html.design-v3 .auth { grid-template-columns: 1fr; }
  html.design-v3 .auth-panel { min-height: auto; padding: 72px 20px 40px; }
  html.design-v3 .auth-story { min-height: auto; padding: 40px 24px; }
  html.design-v3 .auth-story h1 { font-size: 30px; }
}

/* Полосы прокрутки — как в кабинете (12.11.2026): тонкий скруглённый бегунок
   без стрелок и дорожки. Своих токенов здесь нет — нейтральный серый читается
   и в светлой, и в тёмной теме. */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-thumb { min-height: 40px; border: 2px solid transparent; border-radius: 8px; background: rgba(128,128,128,.38) padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(128,128,128,.6); }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: rgba(128,128,128,.38) transparent; }
}
