/* 369 SPY — общая дизайн-система (единый стиль с 369 CRM).
   Та же пластика: тёмная поверхность, стеклянные карточки, плавающие подписи,
   пульсирующая цветная обводка карточки входа. Отличие от CRM — только палитра:
   розовый→лиловый вместо cyan→violet, чтобы проекты визуально не путались.
   Файл подключён на всех страницах (шрифт Roboto); страницы входа берут из него всё. */
/* Roboto — self-hosted (CSP не пускает внешние шрифты; работает офлайн). */
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/static/fonts/roboto-400-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/static/fonts/roboto-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/static/fonts/roboto-500-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/static/fonts/roboto-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/static/fonts/roboto-700-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/static/fonts/roboto-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 900; font-display: swap;
  src: url('/static/fonts/roboto-900-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 900; font-display: swap;
  src: url('/static/fonts/roboto-900-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #0d0812;
  --card: rgba(24, 14, 32, .72);
  --card2: rgba(36, 22, 48, .8);
  --border: rgba(255, 150, 214, .13);
  --border-glow: rgba(244, 114, 182, .35);
  --text: #e8edff; --muted: #a08aa6;
  --neon1: #f472b6; --neon2: #c084fc;
  --accent-grad: linear-gradient(100deg, #f472b6, #c084fc);
  --st-good: #3ba244; --st-warn: #c18717; --st-crit: #f0526e;
  --st-review: #488ee0; --st-gray: #8c92a0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 14px/1.5 -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 400px at 12% -8%, rgba(244,114,182,.09), transparent 70%),
    radial-gradient(700px 500px at 95% 8%, rgba(192,132,252,.10), transparent 70%),
    radial-gradient(800px 600px at 50% 110%, rgba(244,114,182,.05), transparent 70%);
}
a { color: var(--neon1); text-decoration: none; }
.btn { display: inline-flex; align-items: center; gap: 6px; background: var(--card2);
       color: var(--text); border: 1px solid var(--border); border-radius: 9px;
       padding: 7px 14px; cursor: pointer; font-size: 13px; text-decoration: none;
       font-family: inherit; transition: border-color .15s, box-shadow .15s; }
.btn:hover { border-color: var(--border-glow); box-shadow: 0 0 14px rgba(244,114,182,.18); }
.btn.primary { background: var(--accent-grad); border: none; color: #fff; font-weight: 600;
               box-shadow: 0 0 18px rgba(244,114,182,.35); }
.btn.small { padding: 4px 10px; font-size: 12px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px;
        padding: 16px 18px; backdrop-filter: blur(10px); }
input[type=text], input[type=password], input[type=email], select {
  background: var(--card2); border: 1px solid var(--border); border-radius: 9px;
  color: var(--text); padding: 9px 13px; font-size: 13.5px; font-family: inherit; }
input:focus, select:focus { outline: none; border-color: var(--border-glow);
  box-shadow: 0 0 14px rgba(244,114,182,.15); }

/* ---- Sign in (admin, partner, 2FA) — Apple-like: quiet, large, no chrome ---- */
.login-box { max-width: 420px; margin: 12vh auto 0; padding: 0 18px; }
.login-box .card { position: relative; padding: 52px 40px 40px; display: flex; flex-direction: column; gap: 0;
  border-radius: 26px; border: 1px solid transparent; overflow: visible;
  background: linear-gradient(180deg, rgba(30,18,40,.78), rgba(18,10,26,.82)) padding-box;
  backdrop-filter: blur(28px) saturate(140%); -webkit-backdrop-filter: blur(28px) saturate(140%);
  box-shadow: 0 40px 100px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.07);
  animation: loginGlow 4.2s ease-in-out infinite; }
/* Цветная стеклянная обводка: градиент розовый→лиловый по кромке, мягко пульсирует. */
.login-box .card::before { content: ""; position: absolute; inset: -1px; border-radius: 27px; padding: 1.5px;
  background: linear-gradient(135deg, rgba(244,114,182,.95), rgba(192,132,252,.55) 45%, rgba(244,114,182,.35) 70%, rgba(192,132,252,.95));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
  animation: loginBorder 4.2s ease-in-out infinite; }
@keyframes loginGlow {
  0%, 100% { box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 34px rgba(244,114,182,.12), 0 0 70px rgba(192,132,252,.10), inset 0 1px 0 rgba(255,255,255,.07); }
  50%      { box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 54px rgba(244,114,182,.28), 0 0 110px rgba(192,132,252,.22), inset 0 1px 0 rgba(255,255,255,.07); }
}
@keyframes loginBorder { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .login-box .card, .login-box .card::before { animation: none; } }
.login-box .logo { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 4px; }
.login-box .badge { width: 64px; height: 64px; border-radius: 19px; display: grid; place-items: center;
  font-size: 30px; background: var(--accent-grad); color: #fff;
  box-shadow: 0 12px 34px rgba(192,132,252,.45), 0 0 0 1px rgba(255,255,255,.08) inset,
              0 0 40px rgba(244,114,182,.25); }
.login-box .word { font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--text); }
.login-box .word .grad { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; filter: drop-shadow(0 0 16px rgba(244,114,182,.45)); }
.login-box .role { font-size: 11px; font-weight: 700; letter-spacing: .34em; color: var(--muted);
  text-transform: uppercase; margin-top: -6px; }
.login-box .logo { margin-bottom: 30px; }
.login-box form { display: flex; flex-direction: column; gap: 12px; }
.fl { position: relative; }
.fl input { width: 100%; box-sizing: border-box; height: 62px; padding: 26px 18px 8px 18px;
  font-size: 17px; border-radius: 14px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1); color: var(--text); font-family: inherit;
  transition: border-color .18s, background .18s, box-shadow .18s; }
.fl input::placeholder { color: transparent; }
.fl label { position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  font-size: 16px; color: rgba(160,138,166,.9); pointer-events: none;
  transition: top .16s ease, transform .16s ease, font-size .16s ease, color .16s; }
.fl input:focus + label, .fl input:not(:placeholder-shown) + label {
  top: 12px; transform: none; font-size: 11.5px; letter-spacing: .05em; color: var(--muted); }
.fl input:focus { background: rgba(255,255,255,.07); border-color: rgba(244,114,182,.8);
  box-shadow: 0 0 0 4px rgba(244,114,182,.14); outline: none; }
.fl input:-webkit-autofill { -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px #241a30 inset; caret-color: var(--text); }
.fl input.code { padding: 8px 18px; text-align: center; font-size: 34px; font-weight: 600;
  letter-spacing: .42em; font-variant-numeric: tabular-nums; }
.fl input.code::placeholder { color: rgba(160,138,166,.35); letter-spacing: .42em; }
.fl input.code + label { display: none; }
.login-box .btn.primary { justify-content: center; height: 54px; font-size: 17px; font-weight: 600;
  border-radius: 14px; margin-top: 10px; letter-spacing: -.01em;
  box-shadow: 0 10px 30px rgba(192,132,252,.35); transition: transform .12s, box-shadow .18s, filter .18s; }
.login-box .btn.primary:hover { filter: brightness(1.07); box-shadow: 0 12px 36px rgba(244,114,182,.32); }
.login-box .btn.primary:active { transform: scale(.985); }
.login-box .err { color: var(--st-crit); font-size: 13.5px; text-align: center; margin: -2px 0 2px; }
.login-box .note { color: var(--st-warn); font-size: 13px; text-align: center; margin-bottom: 14px; }
.login-box .link { text-align: center; margin-top: 22px; font-size: 13.5px; }
.login-box .link a { color: var(--muted); text-decoration: none; }
.login-box .link a:hover { color: var(--text); }
@media (max-width: 480px) { .login-box .card { padding: 36px 24px 30px; } .login-box .mark { font-size: 38px; } }
