/* RAZU ID — прототип страниц SSO (фаза 1, docs/02-sso-razu-id.md).
   Раскладка по референсу PLAUD, оформление и тексты — RAZU. Светлая тема. */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --ink: #111417;
    --muted: #6b7280;
    --line: #e5e7eb;
    --line-strong: #d1d5db;
    --accent: #2563eb;
    --radius: 12px;
    --field-h: 52px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body { color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }

.layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }

/* Левая колонка — форма */
.pane-form { position: relative; padding: 40px 48px; display: flex; flex-direction: column; }
/* «ID» — продолжение надписи RAZU из логотипа: та же высота букв и разрядка */
.brand { display: flex; align-items: center; gap: 6px; }
.brand .logo { height: 26px; width: auto; display: block; filter: brightness(0); }
.brand .brand-id { font-weight: 500; letter-spacing: 1.5px; font-size: 12px; color: var(--accent); line-height: 1; margin-top: 2px; }
.form-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.form { width: 100%; max-width: 380px; }
.form h1 { font-size: 28px; font-weight: 600; text-align: center; margin-bottom: 32px; }
.form h1 small { display: block; font-size: 15px; font-weight: 400; color: var(--muted); margin-top: 8px; }

.btn { width: 100%; height: var(--field-h); border-radius: var(--radius); font-size: 15px;
       cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
       border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font-weight: 500;
       transition: background .15s, border-color .15s; }
.btn:hover { background: #f9fafb; }
.btn.social svg, .btn.social img { width: 18px; height: 18px; }

/* Подсказка памяти входов: каким способом человек входил в прошлый раз.
   Сидит НА контуре кнопки слева, как подпись у рамки: по центру кнопки она
   налезала на название провайдера («Войти через Goo|Прошлый вход|»).
   Фон белый, как у кнопки и страницы, — подпись «разрывает» линию рамки. */
.btn.social { position: relative; }
.last-badge {
    position: absolute; left: 14px; top: 0; transform: translateY(-50%);
    background: #fff; color: #188544; font-size: 10px; font-weight: 600;
    line-height: 1; padding: 0 6px; letter-spacing: .2px;
    pointer-events: none; white-space: nowrap;
}

.badge { width: 18px; height: 18px; border-radius: 4px; display: inline-flex; align-items: center;
         justify-content: center; color: #fff; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.badge-ya { background: #FC3F1D; }
.badge-vk { background: #0077FF; font-size: 9px; letter-spacing: -.5px; }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.btn.primary:hover { background: #000; }
.btn + .btn { margin-top: 12px; }

.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 20px 0; }
.divider::before, .divider::after { content: ''; height: 1px; background: var(--line); flex: 1; }

.field { width: 100%; height: var(--field-h); border: 1px solid var(--line-strong); border-radius: var(--radius);
         padding: 0 16px; font-size: 15px; margin-bottom: 12px; outline: none; transition: border-color .15s; }
.field:focus { border-color: var(--ink); }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }
.field-row .btn { width: auto; padding: 0 18px; white-space: nowrap; }

.label { font-size: 14px; font-weight: 500; margin-bottom: 8px; display: block; }
.section { margin-top: 20px; }

.link { color: var(--accent); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }
.subtle-link { color: var(--muted); text-decoration: none; font-size: 14px; }
.subtle-link:hover { color: var(--ink); }

.switch { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }
.aux { text-align: center; margin-top: 14px; font-size: 14px; }

.consents { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.consent { display: flex; gap: 10px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.consent input { margin-top: 2px; accent-color: var(--ink); width: 16px; height: 16px; flex-shrink: 0; }
/* Согласие строкой вместо галочки: видно, но не требует действия */
.consent-note { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); text-align: center; }
/* Атрибут hidden проигрывает любому display в авторских правилах (.consent
   задаёт flex) — без этой строки спрятанная галочка остаётся на экране. */
[hidden] { display: none !important; }

.privacy-note { margin-top: 28px; display: flex; align-items: center; gap: 8px; justify-content: center;
                font-size: 13px; color: var(--muted); }
.form-error { margin: 12px 0 2px; background: #fbe9e9; color: #b91c1c; border: 1px solid #f0c9c9; border-radius: 10px;
              padding: 10px 14px; font-size: 13.5px; margin-bottom: 16px; }
.dev-hint { background: #fff6e0; color: #92600a; border: 1px solid #f3dca0; border-radius: 10px;
            padding: 10px 14px; font-size: 13px; margin-bottom: 16px; font-variant-numeric: tabular-nums; }

/* Правая колонка — брендовая панель */
.pane-brand { background: linear-gradient(160deg, #eef2ff 0%, #e0f2fe 45%, #d1fae5 100%);
              padding: 56px 48px; display: flex; flex-direction: column; align-items: center; justify-content: center;
              text-align: center; }
.pane-brand h2 { font-size: 30px; font-weight: 600; max-width: 460px; line-height: 1.3; }
.pane-brand p { color: var(--muted); margin-top: 16px; max-width: 440px; font-size: 16px; line-height: 1.5; }
.mock { margin-top: 48px; width: min(520px, 100%); background: #fff; border-radius: 16px;
        box-shadow: 0 30px 60px -20px rgba(30,41,59,.35); padding: 18px; }
.mock-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: block; }
.mock-line { height: 12px; border-radius: 6px; background: #eef2f7; margin: 10px 0; }
.mock-line.w70 { width: 70%; } .mock-line.w40 { width: 40%; } .mock-line.w90 { width: 90%; }
.mock-title { height: 18px; width: 60%; border-radius: 6px; background: #dbe4f0; margin-bottom: 16px; }

/* Верхняя строка навигации на экране верификации */
.topbar { display: flex; align-items: center; justify-content: space-between; }

@media (max-width: 900px) {
    .layout { grid-template-columns: 1fr; }
    .pane-brand { display: none; }
    .pane-form { padding: 32px 24px; }
    /* на мобильном логотип прижимался к заголовку «Создайте RAZU ID» */
    .brand { margin-bottom: 28px; }
}

/* Промо-баннер (CRM → Маркетинг) на месте макета в правой панели */
.promo-banner { display: block; width: min(880px, 92%); margin: 34px auto 0; border-radius: 16px; overflow: hidden;
    box-shadow: 0 18px 50px rgba(30, 60, 90, .18); }
.promo-banner img { display: block; width: 100%; height: auto; }
