/* Вход в аналитику: та же гарнитура и цвет, что в чате, одна колонка по центру. */

@font-face { font-family: "ALS Hauss"; font-weight: 400; font-display: swap; src: url("/static/fonts/als-hauss-400.woff2") format("woff2"); }
@font-face { font-family: "ALS Hauss"; font-weight: 500; font-display: swap; src: url("/static/fonts/als-hauss-500.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --ink: #0d0d0d;
  --ink-2: #5d5d66;
  --ink-3: #8f8f99;
  --line: #ececf0;
  --soft: #f4f4f6;
  --accent: #1b1f86;
  --accent-2: #2e33b8;
  --neg: #c2362f;
  --tg: #2aabee;
  --font: "ALS Hauss", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); }

.auth {
  min-height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  width: 100%; max-width: 380px; margin: 0 auto; padding: 40px 20px 12vh;
  animation: rise 520ms var(--ease) both;
}
.auth-logo { color: var(--accent); margin: 0 auto 36px; display: block; }
.auth-logo .logo__mark { height: 46px; width: auto; display: block; }
h1 { margin: 0 0 8px; text-align: center; font-size: 26px; line-height: 1.2; font-weight: 400; letter-spacing: -.02em; }
.muted { margin: 0 0 24px; text-align: center; color: var(--ink-2); font-size: 15px; }
.muted b { font-weight: 500; color: var(--ink); }
.error { margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; background: #fdecec; color: var(--neg); font-size: 14px; text-align: center; }
form { display: grid; gap: 10px; }
input {
  width: 100%; height: 50px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 14px;
  font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  box-shadow: 0 4px 14px -8px rgba(0, 0, 0, .08);
  transition: border-color 160ms, box-shadow 160ms;
}
input:focus { outline: 0; border-color: #c9c9d2; box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .14); }
input.code { text-align: center; font-size: 24px; letter-spacing: .35em; font-variant-numeric: tabular-nums; }
button, .tg-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 50px; border: 0; border-radius: 14px;
  font: inherit; font-size: 16px; font-weight: 500; text-decoration: none;
  cursor: pointer; transition: background-color 160ms, transform 160ms var(--ease);
}
button { background: var(--accent); color: #fff; }
button:hover { background: var(--accent-2); }
button:disabled { opacity: .7; cursor: default; }
button:active, .tg-btn:active { transform: scale(.98); }
.tg-btn { background: var(--soft); color: var(--ink); }
.tg-btn:hover { background: #ebebef; }
.or { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--ink-3); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.hint { margin: 14px 0 0; text-align: center; color: var(--ink-3); font-size: 13.5px; }
.hint a { color: var(--ink-2); }

@keyframes rise { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }
@media (prefers-reduced-motion: reduce) { .auth { animation: none; } }
form.again { display: block; }
button.link { display: inline; width: auto; height: auto; padding: 0; background: none; color: var(--ink-2); font: inherit; font-weight: 400; text-decoration: underline; cursor: pointer; }
button.link:hover { background: none; color: var(--ink); }
