/* Страницы регистрации/входа — реализация дизайна Объектив-регистрация.dc.html.
   Все стили классами (CSP style-src 'self'); Golos Text — самохост из /landing/fonts. */

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/landing/fonts/golos-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/landing/fonts/golos-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* { box-sizing: border-box; }

/* Автор-стиль с display:flex не должен перебивать hidden-атрибут (урок Sprint 97). */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: #F6F7F8;
  font-family: 'Golos Text', system-ui, sans-serif;
  color: #24262A;
}

a { color: #C05B2E; }
a:hover { color: #A64E27; }

.au-page { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px 64px; }
.au-card-outer { width: min(400px, 100%); }

/* Шапка экрана: логотип + заголовок + подстрока */
.au-head { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 22px; text-align: center; }
.au-head a { display: inline-flex; }
.au-title { font-size: 20px; font-weight: 700; }
.au-sub { font-size: 13px; color: #5C636B; }

/* Белая карточка */
.au-card {
  background: #fff; border: 1px solid #E0E2E5; border-radius: 8px; padding: 22px;
  display: flex; flex-direction: column; gap: 13px;
}
.au-card-center { align-items: center; text-align: center; gap: 12px; padding: 26px; }

.au-field { display: flex; flex-direction: column; }
.au-field-col { display: flex; flex-direction: column; gap: 13px; margin: 0; }
.au-label { font-size: 12.5px; font-weight: 500; margin-bottom: 5px; }
.au-label-row { margin-bottom: 5px; }
.au-label-row .au-label { margin-bottom: 0; }
.au-field input {
  height: 42px; border: 1px solid #D8DBDF; border-radius: 6px; padding: 0 12px;
  font-family: inherit; font-size: 14px; color: #24262A; background: #fff; outline: none; width: 100%;
}
.au-field input:focus { border-color: #C05B2E; box-shadow: 0 0 0 3px rgba(192, 91, 46, 0.12); }
.au-hint-sm { font-size: 11.5px; color: #8A9096; margin-top: 4px; }

/* Кнопки */
.au-btn-primary {
  height: 44px; background: #C05B2E; border: none; border-radius: 6px; color: #fff;
  font-family: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
.au-btn-primary:hover { background: #A64E27; color: #fff; }
.au-btn-primary:disabled { opacity: 0.45; cursor: default; }
.au-btn-block { width: 100%; }
.au-btn-outline {
  height: 44px; border: 1px solid #D8DBDF; border-radius: 6px; background: #fff;
  font-family: inherit; font-size: 14px; font-weight: 500; color: #24262A; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.au-btn-outline:hover { border-color: #C9CDD2; }
.au-btn-sm { height: 34px; padding: 0 12px; font-size: 12.5px; white-space: nowrap; }
.au-btn-blue {
  height: 46px; background: #3B6EA5; border-radius: 6px; color: #fff; font-size: 14.5px;
  font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  text-decoration: none;
}
.au-btn-blue:hover { background: #33608F; color: #fff; }
.au-tgmark {
  width: 18px; height: 18px; border-radius: 50%; background: #3B6EA5; color: #fff;
  font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.au-tgmark-inv { width: 20px; height: 20px; background: #fff; color: #3B6EA5; }
.au-link {
  border: none; background: none; padding: 0; font-family: inherit; font-size: 12.5px;
  color: #C05B2E; font-weight: 500; cursor: pointer;
}
.au-link:hover { color: #A64E27; }

.au-divider { display: flex; align-items: center; gap: 10px; margin: 2px 0; }
.au-divider span { flex: 1; height: 1px; background: #E8EAED; }
.au-divider b { font-size: 12px; color: #8A9096; font-weight: 400; }

.au-foot { font-size: 12px; color: #8A9096; text-align: center; margin-top: 14px; }
.au-stub-msg { margin: 0; font-size: 12.5px; line-height: 1.5; color: #A8730A; background: #F4EAD2; border-radius: 6px; padding: 10px 12px; }
.au-muted { font-size: 12.5px; color: #8A9096; }
.au-hint { font-size: 12.5px; color: #8A9096; text-align: center; }
.au-row-between { display: flex; justify-content: space-between; align-items: baseline; }

/* Код из письма (вшитый экран) */
.au-code-row { display: flex; gap: 8px; justify-content: center; }
.au-code {
  width: 46px; height: 54px; border: 1px solid #D8DBDF; border-radius: 6px; text-align: center;
  font-family: inherit; font-size: 22px; font-weight: 700; outline: none;
}
.au-code:focus { border: 1.5px solid #C05B2E; box-shadow: 0 0 0 3px rgba(192, 91, 46, 0.12); }

/* Роли (вшитый экран профиля) */
.au-role-col { display: flex; flex-direction: column; gap: 8px; }
.au-role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.au-role {
  height: 42px; border: 1px solid #D8DBDF; border-radius: 6px; background: #fff;
  font-family: inherit; font-size: 13.5px; color: #5C636B; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.au-role-active { border: 1.5px solid #C05B2E; background: #F6E9E1; font-weight: 600; color: #A64E27; }

/* Возвратный аккаунт */
.au-remembered {
  height: 46px; border: 1px solid #D8DBDF; border-radius: 6px;
  display: flex; align-items: center; gap: 10px; padding: 0 12px;
}
.au-avatar {
  width: 26px; height: 26px; border-radius: 50%; background: #D9DCE0; color: #5A616A;
  font-size: 10px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.au-remembered-main { flex: 1; min-width: 0; }
.au-remembered-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-remembered-meta { font-size: 11px; color: #8A9096; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Telegram-флоу */
.au-steps { display: flex; flex-direction: column; gap: 9px; font-size: 13px; color: #4A5058; line-height: 1.45; }
.au-step { display: flex; gap: 9px; }
.au-step span { font-family: ui-monospace, Menlo, monospace; font-size: 12px; font-weight: 700; color: #C05B2E; flex: none; }
.au-qr-row { border-top: 1px solid #EEF0F2; padding-top: 12px; display: flex; align-items: center; gap: 10px; }
.au-qr {
  width: 74px; height: 74px; border: 1px solid #E0E2E5; border-radius: 6px; flex: none;
  padding: 6px; background: #fff; cursor: pointer;
}
.au-qr:hover { border-color: #C9CDD2; }
.au-qr img { width: 100%; height: 100%; display: block; }

/* Оверлей с увеличенным QR: картинка и кнопка — активные ссылки в бота */
.au-qr-overlay {
  position: fixed; inset: 0; background: rgba(36, 38, 42, 0.6); z-index: 50;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.au-qr-big {
  background: #fff; border-radius: 10px; padding: 20px;
  display: flex; flex-direction: column; gap: 12px; width: min(320px, 100%);
}
.au-qr-big img {
  width: 100%; height: auto; display: block; background: #fff;
  border: 1px solid #E0E2E5; border-radius: 6px; padding: 10px;
}
.au-qr-note { font-size: 12.5px; color: #8A9096; line-height: 1.45; }
.au-status { font-size: 12.5px; color: #5C636B; text-align: center; }

/* Предупреждение «не подтвердился» */
.au-warn {
  margin-top: 14px; background: #fff; border: 1px solid #E0E2E5; border-radius: 8px;
  padding: 16px; display: flex; align-items: center; gap: 12px;
}
.au-warn-mark {
  width: 34px; height: 34px; border-radius: 999px; background: #F4EAD2; color: #A8730A;
  font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.au-warn-text { flex: 1; font-size: 12.5px; line-height: 1.45; color: #4A5058; }

/* Онбординг компании («Ваша компания» / «Проверьте реквизиты») */
.au-req { color: #B3403A; }
.au-opt { color: #8A9096; font-weight: 400; }
.au-sep { border-top: 1px solid #EEF0F2; padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.au-dropzone {
  border: 1.5px dashed #C9CDD2; border-radius: 8px; padding: 16px; background: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  font-family: inherit; cursor: pointer;
}
.au-dropzone:hover { border-color: #C05B2E; }
.au-filetile {
  width: 34px; height: 34px; border: 1px solid #E0E2E5; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: ui-monospace, Menlo, monospace; font-size: 9px; font-weight: 700; color: #B3403A;
  background: #fff; flex: none;
}
.au-filetile-sm { width: 30px; height: 30px; }
.au-dz-title { font-size: 13px; font-weight: 500; color: #24262A; }
.au-dz-sub { font-size: 11.5px; color: #8A9096; }
.au-file-row {
  display: flex; align-items: center; gap: 10px; border: 1px solid #E8EAED;
  border-radius: 6px; padding: 9px 12px;
}
.au-file-main { flex: 1; min-width: 0; }
.au-file-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-file-note { font-size: 11px; color: #2E7D52; }
.au-file-note.warn { color: #A8730A; }
.au-two { display: flex; gap: 10px; }
.au-two .au-field { flex: 1; }
.au-mono { font-family: ui-monospace, Menlo, monospace; }

/* Мост «Telegram привязан» */
.au-ok-mark {
  width: 44px; height: 44px; border-radius: 999px; background: #E3EFE7; color: #2E7D52;
  font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.au-done-title { font-size: 18px; font-weight: 700; }
.au-done-sub { font-size: 13.5px; color: #5C636B; line-height: 1.5; max-width: 280px; }
.au-done-list { width: 100%; border-top: 1px solid #EEF0F2; padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.au-done-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #4A5058; text-align: left; }
.au-dot { width: 6px; height: 6px; border-radius: 999px; background: #8A9096; flex: none; }
.au-dot-ok { background: #2E7D52; }
