/* Вхід / реєстрація TGMate — брендбук v4 (27.11). Ліворуч бренд зі «сяйвом», праворуч форма. */
:root { --acc: #2b6ff2; --acc-strong: #1d4ed8; --acc-soft: #e6edff; --ink: #0b1030; --ink-2: #3a4160; --mute: #6b7393;
  --line: #d2daec; --bg: #f3f6ff; --surface: #fff; --bad: #d93a30; --bad-soft: #ffe9e7;
  --glow: radial-gradient(circle at 30% 25%, #2aabee 0%, #2b6ff2 52%, #6a5cff 115%); }
:root[data-theme="dark"] { --ink: #eaeefc; --ink-2: #c3c9e6; --mute: #8c94bd; --line: #2e3870; --bg: #090d24; --surface: #10163a;
  --acc: #5b8cff; --acc-soft: rgba(91, 140, 255, .16); --bad: #ff6b60; --bad-soft: rgba(255, 107, 96, .15); color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: Onest, system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
.au { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.au-brand { position: relative; overflow: hidden; background: var(--glow); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; }
.au-brand::after { content: ""; position: absolute; width: 640px; height: 640px; right: -180px; bottom: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 62%); pointer-events: none; }
.au-brand .logo { position: relative; z-index: 1; height: 34px; width: auto; display: block; }
.au-brand .logo .lg-m, .au-brand .logo .lg-w { fill: #fff; } .au-brand .logo .lg-e { fill: #2b6ff2; }
.au-hero { position: relative; z-index: 1; max-width: 520px; }
.au-hero img { width: min(300px, 60%); height: auto; display: block; margin: 0 0 28px -8px; filter: drop-shadow(0 24px 40px rgba(10, 30, 120, .35)); }
.au-hero h1 { font-size: 44px; line-height: 1.05; letter-spacing: -.035em; font-weight: 800; margin: 0 0 16px; }
.au-hero p { font-size: 17px; line-height: 1.5; margin: 0; opacity: .9; max-width: 42ch; }
.au-pts { position: relative; z-index: 1; display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; opacity: .92; }
.au-pts span { display: inline-flex; align-items: center; gap: 8px; }
.au-pts .ic { width: 18px; height: 18px; }
.au-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.au-card { width: 100%; max-width: 380px; }
.au-card h2 { font-size: 30px; letter-spacing: -.03em; font-weight: 800; margin: 0 0 6px; }
.au-sub { color: var(--mute); font-size: 15px; margin: 0 0 28px; line-height: 1.5; }
.au-f { margin-bottom: 16px; }
.au-f label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.au-f input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 16px;
  background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.au-f input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
.au-btn { width: 100%; height: 50px; border: 0; border-radius: 12px; background: var(--acc); color: #fff; font: inherit; font-weight: 650; font-size: 16px;
  cursor: pointer; margin-top: 8px; box-shadow: 0 10px 24px -10px rgba(43, 111, 242, .8); transition: background .15s, transform .06s; }
.au-btn:hover { background: var(--acc-strong); } .au-btn:active { transform: translateY(1px); }
.au-btn:focus-visible, .au-card a:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.au-err { display: flex; gap: 10px; align-items: flex-start; background: var(--bad-soft); color: var(--ink); border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 18px; }
.au-err .ic { width: 19px; height: 19px; color: var(--bad); flex: none; }
.au-or { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: var(--mute); font-size: 13px; }
.au-or::before, .au-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.au-tg { display: flex; justify-content: center; min-height: 40px; }
.au-tg iframe { color-scheme: light; background: transparent !important; border-radius: 10px; overflow: hidden; }
.au-note { margin-top: 12px; text-align: center; font-size: 13px; color: var(--mute); line-height: 1.5; }
.au-note a, .au-card a { color: var(--acc); font-weight: 600; text-decoration: none; }
.au-note a:hover { text-decoration: underline; }
.ic { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.au-tg-main { justify-content: flex-start; margin: 4px 0 6px; min-height: 48px; }
.au-next { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.au-next li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--ink-2); }
.au-next span { width: 26px; height: 26px; border-radius: 8px; background: var(--acc-soft); color: var(--acc); font-weight: 800; font-size: 13px; display: grid; place-items: center; flex: none; }
.au-invite { margin-top: 22px; }
.au-invite summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; color: var(--acc); font-weight: 600; font-size: 14.5px; margin-bottom: 14px; }
.au-invite summary::-webkit-details-marker { display: none; }
.au-invite summary .ic { width: 16px; height: 16px; transition: transform .2s; }
.au-invite[open] summary .ic { transform: rotate(180deg); }
.au-legal { font-size: 12.5px; margin-top: 6px; }
@media (max-width: 900px) {
  .au { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .au-brand { padding: 22px 20px 26px; border-radius: 0 0 26px 26px; }
  .au-brand::after { width: 360px; height: 360px; right: -120px; bottom: -160px; }
  .au-hero { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
  .au-hero img { width: 92px; margin: 0; }
  .au-hero h1 { font-size: 24px; margin: 0 0 4px; }
  .au-hero p { font-size: 14px; }
  .au-pts { display: none; }
  .au-main { align-items: flex-start; padding: 28px 20px 40px; }
  .au-card h2 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .au-btn { transition: none; } }
