/* Реєстрація і вхід. Поверх site.css (токени, кнопки, логотип). */
body.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff; }
.auth-l { display: flex; flex-direction: column; min-height: 100vh; padding: 28px 48px 32px; }
.auth-hd { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-hd .logo { color: var(--ink); }
.auth-hd a:not(.logo) { font-size: 15px; font-weight: 600; color: var(--muted); }
.auth-hd a:not(.logo):hover { color: var(--ink); }
.auth-box { width: 100%; max-width: 400px; margin: auto; padding: 48px 0; }
.auth-box h1 { font-size: clamp(28px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.03em; }
.auth-box .lead { margin-top: 10px; font-size: 17px; }
.auth-step[hidden] { display: none; }
.auth-form { display: grid; gap: 14px; margin-top: 32px; }

.btn-google { width: 100%; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-google:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-google svg { width: 20px; height: 20px; }
.btn-block { width: 100%; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.fld { display: grid; gap: 6px; }
.fld > span { font-size: 14px; font-weight: 600; }
.phone-in { display: flex; align-items: center; height: 54px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s; }
.phone-in:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.phone-in b { padding: 0 6px 0 16px; font-weight: 600; }
.phone-in input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; letter-spacing: .02em; }
.fld-err { color: #d4483b; font-size: 14px; }
.fine { font-size: 13px; color: var(--muted); }
.fine a, .auth-alt a, .link { color: var(--accent-d); font-weight: 600; }
.fine a:hover, .auth-alt a:hover, .link:hover { text-decoration: underline; }
.auth-alt { margin-top: 28px; font-size: 15px; color: var(--muted); }

/* Код: 4 клітинки */
.code { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 28px; }
.code input { height: 64px; width: 100%; border: 0; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); text-align: center; font: inherit; font-size: 28px; font-weight: 700; outline: 0; }
.code input:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.code-to { margin-top: 10px; color: var(--muted); }
.code-to b { color: var(--ink); }
.resend { margin-top: 18px; font-size: 15px; color: var(--muted); }
.resend button { padding: 0; border: 0; background: none; font: inherit; color: var(--accent-d); font-weight: 600; cursor: pointer; }
.resend button:disabled { color: var(--muted); font-weight: 400; cursor: default; }
.demo-note { margin-top: 24px; padding: 10px 14px; border-radius: 10px; background: var(--soft); font-size: 13px; color: var(--muted); }

/* Права половина: фото з текстом */
.auth-r { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.auth-r img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.auth-r::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,16,19,.1) 30%, rgba(14,16,19,.88) 100%); }
.auth-r-t { position: absolute; z-index: 1; left: 48px; right: 48px; bottom: 48px; }
.auth-r-t h2 { font-size: clamp(24px, 2.6vw, 32px); }
.auth-r-t .checks { margin-top: 20px; }
.auth-r-t .checks li { font-weight: 500; color: rgba(255,255,255,.9); }

@media (max-width: 900px) {
  body.auth { grid-template-columns: 1fr; }
  .auth-r { display: none; }
  .auth-l { padding: 20px 16px 24px; }
  .auth-box { padding: 32px 0; }
}

/* Telegram і «Хто ви?» */
.btn-tg { color: #0f5d96; }
.who-pick { display: grid; gap: 10px; margin-top: 28px; }
.who-pick button { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 16px; border: 0; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font: inherit; text-align: left; cursor: pointer; }
.who-pick button:hover, .who-pick button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent); }
.who-pick span { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--soft); font-size: 22px; }
.who-pick b { font-size: 17px; }
.who-pick small { color: var(--muted); font-size: 14px; }

/* Пароль, Telegram-очікування */
.txt-in { width: 100%; height: 54px; padding: 0 16px; border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: 17px; outline: 0; background: #fff; }
.txt-in:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.fld-k { font-style: normal; font-weight: 500; color: var(--accent-d); margin-left: 6px; }
.pw-in { position: relative; display: block; }
.pw-in .txt-in { padding-right: 52px; }
.pw-in button { position: absolute; right: 6px; top: 7px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; font-size: 18px; cursor: pointer; }
.pw-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.pw-row small { color: var(--muted); font-size: 13px; white-space: nowrap; }
.pw-meter { flex: 1; height: 4px; border-radius: 2px; background: var(--line); position: relative; overflow: hidden; }
.pw-meter::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; background: #e5484d; transition: width .2s; }
.pw-meter.weak::after { width: 30%; } .pw-meter.ok::after { width: 65%; background: #f0b429; } .pw-meter.good::after { width: 100%; background: var(--accent); }
.forgot { justify-self: end; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--accent-d); }
.tg-big { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 18px; border-radius: 22px; background: #e8f3fc; font-size: 32px; }
.tg-big svg { width: 44px; height: 44px; }
.tg-wait { display: flex; align-items: center; gap: 10px; margin-top: 24px; padding: 14px 16px; border-radius: 12px; background: var(--soft); font-weight: 600; }
.tg-wait.ok { background: var(--mint); color: var(--accent-d); }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #cfe7f6; border-top-color: #229ed9; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Laravel-порт (виконавець A): тост, «зайнято» на кнопках, імʼя на реєстрації ── */
.toast-m { position: fixed; z-index: 90; left: 50%; bottom: 30px; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); text-align: center; }
.toast-m.show { opacity: 1; transform: translate(-50%, 0); }
.btn.is-busy, button.is-busy { opacity: .6; pointer-events: none; }
.who-pick a[data-who] { cursor: pointer; }
/* пастка для ботів (partials/honeypot) — поза екраном, не display:none */
.auth-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
