@import url("site.css?v=c3cefbfe52"); /* site.css → styles.css (токены, кнопки, шапка/подвал) + общие компоненты (.qlist, .ibox, .kicker) */

/* ============================================================
   Вход, регистрация, восстановление пароля, приглашение в команду.
   Редизайн 22.10.2026 (TANLO-REDESIGN-PROMPT §4.4, §4.5): фон corp-bg,
   карточка формы 480 px (паддинг 36), поля 46 px с видимыми подписями,
   радиус 2 px, без теней. Регистрация и главное действие — красная
   кнопка, вход — тёмная (.btn-primary / .btn-dark из tokens/ui.css).
   Тот же файл подключают interests.html (кабинет, тёмная тема по выбору)
   и страница отказа Telegram-входа на сервере (src/routes_oauth.rs), поэтому
   цвета — семантические токены, а разметка без классов (.box label/input/
   button) по-прежнему получает оформление.
   ============================================================ */

body { min-height: 100vh; } /* короткая форма: подвал прижат к низу окна, без белой полосы */
.auth-main { flex: 1; background: var(--surface-sunken); padding: 32px 16px 56px; }
@media (min-width: 900px) { .auth-main { padding: 64px 32px 96px; } }

.auth-layout { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 40px 80px; max-width: 1200px; margin: 0 auto; }
.auth-layout > .box { flex: 0 1 480px; }
.auth-main > .box { margin: 0 auto; }

.box {
  background: var(--surface-card);
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 28px 20px;
  width: 100%;
  max-width: 480px;
  box-sizing: border-box;
}
@media (min-width: 600px) { .box { padding: 36px; } }
.box .brand-logo { height: 24px; width: auto; margin-bottom: var(--space-4); }
.box h1 { font-family: var(--font-display); font-size: 28px; line-height: 1.39; font-weight: var(--weight-semibold); letter-spacing: 0; color: var(--text-strong); margin: 0; }
.box p.hint { margin: 6px 0 20px; color: var(--text-muted); font-family: var(--font-body); font-size: 15px; line-height: 1.45; }

/* Подписи полей — видимые, 13/600 (не placeholder вместо label). */
.box label { display: block; font-family: var(--font-body); font-size: 13px; font-weight: var(--weight-semibold); letter-spacing: 0; text-transform: none; line-height: 1.3; margin: 18px 0 8px; color: var(--text-strong); }
.box input:not([type="checkbox"]):not([type="radio"]) {
  display: block; width: 100%; box-sizing: border-box; appearance: none;
  font-family: var(--font-body); font-size: 15px; height: 46px;
  padding: 0 14px; border-radius: var(--radius-control);
  border: var(--border-width) solid var(--border-default);
  background: var(--bg-elevated); color: var(--text-body);
  transition: border-color 120ms var(--ease-out);
}
.box input::placeholder { color: var(--text-subtle); opacity: 1; }
.box input:not([type="checkbox"]):not([type="radio"]):hover { border-color: var(--corp-ink-300); }
/* Фокус — рамка 2 px corp-ink-900 (как у поля поиска, §5). */
.box input:not([type="checkbox"]):not([type="radio"]):focus { outline: 2px solid var(--border-focus); outline-offset: -1px; border-color: var(--border-focus); }
.box input[aria-invalid="true"] { border-color: var(--state-urgent-fg); }
.box input:disabled { opacity: 0.55; cursor: not-allowed; background: var(--surface-sunken); }

/* Кнопка без классов (interests.html, join.html — «Присоединиться») = красная 46 px. */
.box button:not(.btn):not(.btn-oauth):not(.nav-burger):not(.pw-toggle) {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  width: 100%; margin-top: 20px;
  height: 46px; padding: 0 20px;
  font-family: var(--font-body); font-weight: var(--weight-semibold); font-size: 15px;
  letter-spacing: 0; line-height: 1;
  border-radius: var(--radius-control); border: var(--border-width) solid transparent;
  background: var(--corp-accent); color: #fff; cursor: pointer; white-space: nowrap;
  transition: background-color 120ms var(--ease-out);
}
.box button:not(.btn):not(.btn-oauth):not(.nav-burger):not(.pw-toggle):hover:not(:disabled) { background: var(--corp-accent-hover); }
.box button:not(.btn):not(.btn-oauth):not(.nav-burger):not(.pw-toggle):active:not(:disabled) { background: var(--corp-accent-pressed); }
.box button:not(.btn):not(.btn-oauth):not(.nav-burger):not(.pw-toggle):focus-visible { outline: 2px solid var(--corp-ink-900); outline-offset: 2px; }
.box button:not(.btn):not(.btn-oauth):not(.nav-burger):not(.pw-toggle):disabled { opacity: 0.55; cursor: not-allowed; }
.box .btn-submit { margin-top: 22px; }
.box .btn-submit:disabled { cursor: progress; }

/* Пароль: кнопка-глаз внутри поля (aria-pressed), «Забыли пароль?» под полем справа. */
.pw-field { position: relative; }
.box .pw-field input { padding-right: 48px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: var(--radius-control);
  background: transparent; color: var(--corp-ink-700); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 120ms var(--ease-out), color 120ms var(--ease-out);
}
.pw-toggle:hover { color: var(--text-strong); background: var(--surface-sunken); }
.pw-toggle:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 0; }
.forgot-row { display: flex; justify-content: flex-end; margin-top: 10px; }
.forgot-link { font-family: var(--font-body); font-size: 13px; font-weight: var(--weight-semibold); color: var(--text-link); text-decoration: none; white-space: nowrap; }
.forgot-link:hover { color: var(--text-link-hover); text-decoration: underline; text-underline-offset: 3px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.label-row label { flex: 1; }
.field-note { margin: 6px 0 0; font-family: var(--font-body); font-size: 13px; line-height: 1.4; color: var(--text-muted); }

/* Согласие с офертой — чекбокс 16 px, радиус 2, рамка corp-ink-700 (контраст ≥ 3:1). */
.box label.check, .box label.consent-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; font-weight: var(--weight-regular); line-height: 1.45; letter-spacing: normal; text-transform: none; color: var(--text-body); cursor: pointer; }
.box label.consent-check { margin: 18px 0 0; }
.box label.check input { border-radius: var(--radius-xs); }
.box label.consent-check input { appearance: none; width: 16px; height: 16px; margin: 1px 0 0; flex-shrink: 0; border: var(--border-width) solid var(--corp-ink-700); border-radius: var(--radius-xs); background: var(--bg-elevated); display: grid; place-content: center; cursor: pointer; transition: background-color 120ms var(--ease-out), border-color 120ms var(--ease-out); }
.box label.consent-check input::before { content: ""; width: 10px; height: 10px; transform: scale(0); background: #fff; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
.box label.consent-check input:checked { background: var(--corp-ink-900); border-color: var(--corp-ink-900); }
.box label.consent-check input:checked::before { transform: scale(1); }
.box label.consent-check input:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.box label.consent-check input[aria-invalid="true"] { border-color: var(--state-urgent-fg); outline: 2px solid var(--state-urgent-fg); outline-offset: 1px; }
.box label.consent-check a { color: var(--text-link); text-decoration: underline; text-underline-offset: 2px; }
.box p.hint.consent { margin: 16px 0 0; font-size: 13px; }

.error, .success {
  margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-xs);
  font-family: var(--font-body); font-size: 14px; line-height: 1.45; display: none;
}
.error { background: var(--state-urgent-bg); color: var(--state-urgent-fg); }
.success { background: var(--state-success-bg); color: var(--state-success-fg); }
.switch { margin-top: 22px; text-align: center; font-family: var(--font-body); font-size: 14px; line-height: 1.45; color: var(--text-muted); }
.switch a { color: var(--text-link); font-weight: var(--weight-semibold); text-decoration: none; }
.switch a:hover { color: var(--text-link-hover); text-decoration: underline; text-underline-offset: 3px; }
/* «Создать — 7 дней «Профи» в подарок» на входе — красная ссылка-действие (§4.5). */
.switch a.switch-go { color: var(--corp-accent); }
.switch a.switch-go:hover { color: var(--corp-accent-hover); }
.back {
  display: inline-flex; align-items: center; gap: 4px; margin-bottom: 16px; font-family: var(--font-body);
  font-size: 13px; font-weight: var(--weight-semibold); color: var(--text-link); text-decoration: none;
}
.back:hover { color: var(--text-link-hover); text-decoration: underline; text-underline-offset: 3px; }
.divider { height: var(--border-width); background: var(--border-default); margin: var(--space-6) 0 4px; }

/* Google / Telegram / Яндекс — контурные кнопки 46 px во всю ширину. */
.oauth-buttons { display: flex; flex-direction: column; gap: 16px; }
.btn-oauth {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 46px; box-sizing: border-box; margin: 0; padding: 0 16px; border-radius: var(--radius-control);
  border: var(--border-width) solid var(--border-default); background: var(--surface-card);
  color: var(--text-strong); font-family: var(--font-body); font-weight: var(--weight-semibold);
  font-size: 15px; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 120ms var(--ease-out), border-color 120ms var(--ease-out);
}
.btn-oauth svg { flex-shrink: 0; }
.btn-oauth .ic { color: var(--corp-ink-700); }
.btn-oauth:hover { background: var(--surface-sunken); border-color: var(--corp-ink-700); color: var(--text-strong); text-decoration: none; }
.btn-oauth:active { background: var(--border-default); }
.btn-oauth:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.btn-oauth[aria-busy="true"] { cursor: progress; }
.oauth-or {
  display: flex; align-items: center; gap: 12px; margin: 22px 0 4px;
  font-family: var(--font-body); font-size: 13px; color: var(--text-muted);
}
.oauth-or::before, .oauth-or::after { content: ""; flex: 1; height: var(--border-width); background: var(--border-default); }
.oauth-note { margin: 0; font-size: 13px; line-height: 1.4; color: var(--state-urgent-fg); }
.oauth-note:empty { display: none; }
#telegramLoginWidget { display: flex; justify-content: center; }

/* Колонка «Что откроется после регистрации» (§4.4), 420 px справа. */
.auth-aside { flex: 0 1 420px; min-width: 0; padding-top: 12px; }
.auth-aside h2 { margin: 14px 0 0; font-size: 24px; line-height: 1.3; font-weight: var(--weight-semibold); color: var(--text-strong); }
@media (max-width: 899px) { .auth-aside { padding-top: 0; } .auth-aside h2 { font-size: 21px; } }
.auth-aside .qlist { margin-top: 24px; gap: 20px; }
.auth-aside .ibox { background: var(--surface-card); }
.auth-aside .qlist b { font-size: 15px; }
.auth-aside .qlist div > span { font-size: 14px; }
.auth-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; padding: 14px 16px; background: var(--surface-card); border: var(--border-width) solid var(--border-default); border-radius: var(--radius-xs); font-size: 13px; line-height: 1.5; color: var(--text-body); }
.auth-note svg { flex-shrink: 0; margin-top: 2px; color: var(--corp-ink-700); }

/* Профиль интересов: чекбоксы — обычный текст, а не подписи полей формы (UX-аудит 05.10). */
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 var(--space-4); }
.box label.check { margin: 0; font-size: var(--step-body-sm); }
.box .field-group h3 { font-size: var(--step-body); font-weight: var(--weight-semibold); margin: var(--space-5) 0 var(--space-2); }
