/* ============================================================
   Страница входа CSORT (вход через мессенджеры).
   ============================================================ */
:root {
    --brand: #e01818;
    --text: #5b6579;
    --text-strong: #2b3242;
    --bg-alt: #f2f2f2;
    --surface: #ffffff;
    --radius: 8px;
    --shadow: 0 12px 32px rgba(91, 101, 121, 0.18);
    --max: #1d6fff;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Ubuntu, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
    min-height: 100vh;
}

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface);
    border-radius: 14px; box-shadow: var(--shadow); padding: 36px 30px; text-align: center; }
.auth-logo { display: inline-block; margin-bottom: 18px; }
.auth-logo img { display: block; }
.auth-title { color: var(--text-strong); margin: 0 0 8px; font-size: 24px; }
.auth-sub { margin: 0 0 26px; font-size: 15px; }

.auth-providers { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.auth-provider { min-height: 48px; display: grid; place-items: center; }

.auth-btn { display: block; width: 100%; padding: 13px 18px; border-radius: var(--radius);
    font-weight: 500; font-size: 16px; color: #fff; cursor: pointer; transition: opacity .12s ease; }
.auth-btn:hover { opacity: .9; }
.auth-btn--tg { background: #29a9eb; }
.auth-btn--max { background: var(--max); }

.auth-hint { font-size: 14px; color: var(--text); background: var(--bg-alt);
    border-radius: var(--radius); padding: 12px 14px; width: 100%; }
.auth-hint--warn { background: #fff4f4; color: var(--brand); }
.auth-hint code, .auth-hint--warn code { font-family: monospace; font-size: 13px; }

.auth-qr { display: flex; justify-content: center; margin: 4px 0; }
.auth-qr img, .auth-qr canvas { border-radius: 8px; }

.auth-code { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.auth-code code { font-family: monospace; font-size: 13px; background: var(--surface); border: 1px solid #e3e6ec; border-radius: 6px; padding: 6px 8px; word-break: break-all; }
.auth-copy { border: none; background: var(--max); color: #fff; border-radius: 6px; padding: 7px 12px; font-size: 13px; cursor: pointer; }
.auth-copy:hover { opacity: .9; }

.auth-foot { margin: 26px 0 0; font-size: 12px; opacity: .7; }

/* ==========================================================================
   Видимый фокус с клавиатуры.
   В проекте 44 объявления outline:none и ни одного :focus-visible — пройти
   форму табом было невозможно, каретка «терялась». :focus-visible не трогает
   клик мышью, поэтому внешний вид при обычной работе не меняется.
   ========================================================================== */
:focus-visible {
  outline: 2px solid #e01818;
  outline-offset: 2px;
  border-radius: 4px;
}
