/* Страницы входа CRM: карточка из двух половин — форма и фирменные быки.
   Вариант А «Быки и угли» (решение владельца 24.11.2026). Свои классы — с префиксом auth-,
   поэтому со старыми правилами style.css не спорит. Подключается только в шаблонах входа
   и в окне после перерыва (через _crm_idle.html). */

/* Manrope — те же файлы, что в cw_theme.css: латиница и кириллица */
@font-face{font-family:"Manrope";font-weight:400;font-display:swap;src:url("/static/fonts/Manrope-Regular.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212}
@font-face{font-family:"Manrope";font-weight:700;font-display:swap;src:url("/static/fonts/Manrope-Bold.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212}
@font-face{font-family:"Manrope";font-weight:800;font-display:swap;src:url("/static/fonts/Manrope-ExtraBold.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212}
@font-face{font-family:"Manrope";font-weight:400;font-display:swap;src:url("/static/fonts/Manrope-cyrillic.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Manrope";font-weight:700;font-display:swap;src:url("/static/fonts/Manrope-cyrillic.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Manrope";font-weight:800;font-display:swap;src:url("/static/fonts/Manrope-cyrillic.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}

/* Размеры блоков считаем сами: страница внутри окна после перерыва общий style.css не грузит */
.auth-page *,.auth-page *::before,.auth-page *::after,.auth-card *,.auth-card *::before,.auth-card *::after{box-sizing:border-box}

body.auth-page,
.crm-idle-dialog{
  --stage:#0d0b0a; --stage-2:#17110e;
  --surface:#1a1613; --surface-2:#241e1a; --surface-3:#2e2621;
  --fg:#f4ede2; --muted:#b3a797; --faint:#9a8f81;
  --line:rgba(246,238,226,.10); --line-strong:rgba(246,238,226,.22); --line-focus:rgba(246,238,226,.62);
  --ring:rgba(246,238,226,.12); --hover:rgba(246,238,226,.07);
  --accent:#f6efe3; --accent-hover:#fff9ef; --accent-ink:#1a1611;
  --ember-glow:rgba(240,137,42,.30);
  --danger:#ff9f86; --danger-line:rgba(255,159,134,.40); --danger-soft:rgba(255,159,134,.09);
  --success:#a9d9a4; --success-line:rgba(169,217,164,.45); --success-soft:rgba(169,217,164,.09);
  --warn:#e9bd73; --warn-line:rgba(233,189,115,.42); --warn-soft:rgba(233,189,115,.09);
  --brand:#1a4a2a; --brand-ink:#e8f5e2;
  --scrim:rgba(13,11,10,.84);
  --font-display:Georgia,"Times New Roman",serif;
  --font-body:"Manrope","Segoe UI",system-ui,sans-serif;
}
body.auth-page{
  position:relative;overflow-x:hidden;margin:0;min-height:100vh;min-height:100dvh;   /* выше экрана — прокручивается */
  display:grid;place-items:center;padding:32px 24px;
  background:radial-gradient(120% 80% at 50% -10%,var(--stage-2) 0%,var(--stage) 62%);
  color:var(--fg);font:400 15px/1.55 var(--font-body);color-scheme:dark;-webkit-font-smoothing:antialiased;
}
body.auth-page::before{ /* свечение за карточкой */
  content:"";position:absolute;left:50%;top:50%;width:min(1140px,94vw);aspect-ratio:2/1;transform:translate(-50%,-50%);
  border-radius:50%;background:radial-gradient(closest-side,var(--ember-glow),rgba(240,137,42,.08) 58%,transparent 100%);
  filter:blur(36px);pointer-events:none;
}
/* Страница внутри окна после перерыва: без сцены и карточки, только шаг.
   place-items обязательно сбросить: иначе содержимое сжимается по центру. Два класса — чтобы
   перекрыть правило для узких экранов в конце файла: вставленная страница всего 368 px шириной,
   и «телефонные» отступы действовали и внутри него (ловушки пойманы на учебном стенде).
   Фон — тот же сплошной цвет, что у карточки (не transparent): браузер под прозрачным документом
   во вставке красит основу фрейма белым, стоит цветовой схеме вставки и страницы разойтись —
   поймано 24.11.2026 на настоящих стилях хаба. Со сплошным цветом страница сливается с карточкой всегда. */
body.auth-page.auth-page--embed{display:block;place-items:normal;align-content:normal;overflow:visible;min-height:0;padding:0;background:var(--surface)}
body.auth-page.auth-page--embed::before{display:none}

.auth-card{
  position:relative;z-index:1;width:min(920px,calc(100vw - 48px));min-height:560px;
  display:grid;grid-template-columns:420px 1fr;border-radius:24px;background:var(--surface);overflow:hidden;
  box-shadow:inset 0 0 0 1px var(--line),0 0 90px -8px var(--ember-glow),0 40px 100px -20px rgba(0,0,0,.75);
}
.auth-form{display:flex;flex-direction:column;min-width:0;padding:32px 38px 30px}
.auth-body{flex:1;display:flex;flex-direction:column;justify-content:center;min-width:0}
.auth-brand{display:flex;align-items:center;gap:10px;align-self:flex-start;color:var(--fg)}
.auth-brand__mark{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:var(--brand);color:var(--brand-ink);font:700 19px/1 var(--font-display);padding-bottom:2px}
.auth-brand__name{font:700 15px/1.3 var(--font-body);letter-spacing:.02em}
.auth-title{margin:0;font:700 34px/1.14 var(--font-display);letter-spacing:-.01em;color:var(--fg)}
.auth-lead{margin:10px 0 0;color:var(--muted)}
.auth-lead strong{color:var(--fg);font-weight:700}
.auth-lead--strong{margin:0;color:var(--fg)}
.auth-fields{display:grid;gap:14px;margin:26px 0 0}
.auth-field{display:grid;gap:7px}
.auth-field__label{display:block;font-size:13px;font-weight:700;letter-spacing:.02em;color:var(--fg)}
.auth-input{width:100%;height:48px;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);color:var(--fg);font-size:16px;transition:border-color .1s,box-shadow .1s}
.auth-input::placeholder{color:var(--faint)}
.auth-input:hover{border-color:var(--line-strong)}
.auth-input:focus,.auth-input:focus-visible{outline:none;border-color:var(--line-focus);box-shadow:0 0 0 3px var(--ring)}
.auth-input[aria-invalid="true"]{border-color:var(--danger-line)}
.auth-input:-webkit-autofill{-webkit-text-fill-color:var(--fg);box-shadow:0 0 0 1000px var(--surface-2) inset;caret-color:var(--fg)}
.auth-wrap{position:relative}
.auth-wrap .auth-input{padding-right:52px}
.auth-eye{position:absolute;top:4px;right:4px;width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:9px;background:transparent;color:var(--muted);cursor:pointer}
.auth-eye:hover{background:var(--hover);color:var(--fg)}
.auth-eye svg,.auth-btn svg,.auth-alert svg{width:20px;height:20px;flex:none}
.auth-eye__off{display:none}
.auth-eye.is-on .auth-eye__on{display:none}
.auth-eye.is-on .auth-eye__off{display:block}

/* Кнопке не ставят type="submit": иначе её перекрашивает старое зелёное правило из style.css
   (button[type="submit"]:not(...)). Кнопка в форме и так отправляет. */
.auth-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:50px;padding:0 22px;border:0;border-radius:12px;background:var(--accent);color:var(--accent-ink);font:700 15px/1 var(--font-body);letter-spacing:.02em;cursor:pointer;transition:background .1s,opacity .1s}
.auth-btn:hover:not(:disabled){background:var(--accent-hover)}
.auth-btn:disabled{opacity:.45;cursor:not-allowed}
.auth-btn svg{transition:transform .15s}
.auth-btn:hover:not(:disabled) svg{transform:translateX(3px)}
.auth-links{display:flex;flex-wrap:wrap;gap:14px 18px;margin:16px 0 0}
.auth-links form{margin:0}
.auth-link{border:0;background:transparent;padding:4px 0;color:var(--muted);font:700 13px/1.4 var(--font-body);letter-spacing:.02em;text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:3px;cursor:pointer}
.auth-link:hover:not(:disabled){color:var(--fg);text-decoration-color:currentColor}
.auth-link:disabled{color:var(--faint);text-decoration:none;cursor:default}
.auth-link--strong{color:var(--fg)}
.auth-links a{color:var(--muted);font:700 13px/1.4 var(--font-body);letter-spacing:.02em;text-decoration-color:var(--line-strong);text-underline-offset:3px}
.auth-links a:hover{color:var(--fg);text-decoration-color:currentColor}
.auth-alert{display:flex;align-items:flex-start;gap:10px;margin:0 0 16px;padding:11px 13px;border:1px solid var(--danger-line);border-radius:12px;background:var(--danger-soft);color:var(--danger);font-size:13px;font-weight:700;line-height:1.45}
.auth-alert svg{width:18px;height:18px;margin-top:1px}
.auth-alert--success{border-color:var(--success-line);background:var(--success-soft);color:var(--success)}
.auth-alert--warn{border-color:var(--warn-line);background:var(--warn-soft);color:var(--warn)}
.auth-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.auth-art{position:relative;min-height:100%;background:var(--stage-2) url("/static/img/auth-bulls.webp") 50% 42%/cover no-repeat}
.auth-art::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,var(--surface) 0%,rgba(26,22,19,.86) 5%,rgba(26,22,19,.46) 18%,rgba(26,22,19,.12) 40%,transparent 64%)}
.auth-embed{display:flex;flex-direction:column}
/* Страница из окна, открытая отдельно (не во вставке), не растягивается на весь экран. */
.auth-page--embed .auth-embed{max-width:440px;margin:0 auto}
.auth-embed .auth-fields{margin-top:18px}
.auth-embed .auth-title{font-size:28px}

/* Код из письма: шесть окошек поверх одного настоящего поля.
   Вставка и автозаполнение работают, потому что поле настоящее. */
.auth-otp{position:relative}
.auth-otp__cells{display:none}
.auth-otp--on .auth-otp__cells{display:flex;gap:10px}
.auth-otp__cell{flex:1;max-width:49px;height:62px;display:grid;place-items:center;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);color:var(--fg);font:700 26px/1 var(--font-body);font-variant-numeric:tabular-nums lining-nums;transition:border-color .1s,box-shadow .1s,background .1s}
.auth-otp__cell.is-filled{border-color:var(--line-strong)}
.auth-otp__cell.is-active{border-color:var(--line-focus);box-shadow:0 0 0 3px var(--ring);background:var(--surface-3)}
.auth-otp--on .auth-otp__input{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:transparent;color:transparent;-webkit-text-fill-color:transparent;caret-color:transparent;cursor:text}
.auth-otp--on .auth-otp__input:focus,.auth-otp--on .auth-otp__input:focus-visible{outline:none;box-shadow:none;border:0}
.auth-otp--on .auth-otp__input::selection{background:transparent;color:transparent}
.auth-otp.is-invalid .auth-otp__cell{border-color:var(--danger-line)}

/* Сколько код ещё живёт и когда можно попросить новый.
   В разметке строка стоит после кнопки (чтобы Enter отправлял код, а не новое письмо),
   а показывается между окошками и кнопкой. */
.auth-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;margin:12px 0 0;font-size:12px;font-variant-numeric:tabular-nums;color:var(--muted)}
.auth-fields[data-auth-code] .auth-otp{order:0}
.auth-fields[data-auth-code] .auth-meta{order:1}
.auth-fields[data-auth-code] .auth-btn{order:2}
.auth-ttl{padding:4px 0;font-weight:700;letter-spacing:.01em}
.auth-ttl.is-expired{color:var(--warn)}

/* Подключение подтверждения входа: QR-код и резервные коды */
.auth-qr{display:block;width:220px;height:220px;padding:8px;border-radius:14px;background:#fff}
.auth-codes{display:grid;gap:8px;margin:14px 0 0;padding:0;list-style:none;font:700 14px/1.4 ui-monospace,Consolas,"Courier New",monospace;word-break:break-all}
.auth-codes code{display:block;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);color:var(--fg)}
.auth-meta code{font:700 12px/1.5 ui-monospace,Consolas,"Courier New",monospace;color:var(--fg);word-break:break-all}

@media (prefers-reduced-motion:reduce){.auth-btn,.auth-btn svg,.auth-otp__cell,.auth-input{transition:none}}
@media (max-width:1023px){
  .auth-card{grid-template-columns:392px 1fr;min-height:540px}
  .auth-form{padding:28px 32px 26px}
}
@media (max-width:759px){
  body.auth-page{padding:16px 0 24px}
  .auth-card,.crm-idle-dialog .auth-card{grid-template-columns:1fr;width:calc(100vw - 32px);min-height:0}
  .auth-art{order:-1;min-height:210px;background-position:50% 30%}
  .auth-art::before{background:linear-gradient(180deg,transparent 55%,var(--surface) 100%)}
  .auth-form{padding:6px 22px 24px}
  .auth-title{font-size:30px}
  .auth-card .auth-otp__cell{height:58px}   /* только на странице входа с телефона, не внутри окна */
}

/* ══ Вариант «Во весь экран» (решение владельца 24.11.2026): картинка — главный герой страницы,
   карточка не закрывает морду быка. Включается классом auth-page--full у body страниц входа.
   Раскладка экрана от 1200 px — атрибут data-look:
     split  — две половины: слева тёмная стена с формой, справа бык от края до края;
     poster — бык — картина на стене справа, карточка слева, обе по центру как одна композиция;
     cover  — бык — фон всей страницы, притемнённый; карточка слева;
     glass  — то же, но стеклянная карточка по центру, поверх быка.
   Первая версия (картинка во всю высоту у края) выглядела обрезанной на широком мониторе —
   поэтому в раскладке poster высота картинки оставляет поля не меньше 12 процентов экрана.
   До 1200 px (планшет, телефон) раскладка одна: карточка с быком в верхней части. ══ */
body.auth-page--full{
  background:#0d0b0a url("/static/img/auth-bull-glow.webp?v=20261124C1") center/cover no-repeat;
  --field-fill:#0d0b0a;
}
body.auth-page--full::before{display:none}
body.auth-page--full .auth-card{
  width:min(440px,calc(100vw - 32px));grid-template-columns:1fr;min-height:0;
  background:rgba(40,33,28,.86);backdrop-filter:blur(26px) saturate(1.15);-webkit-backdrop-filter:blur(26px) saturate(1.15);
  box-shadow:inset 0 0 0 1px var(--line),inset 0 1px 0 rgba(246,238,226,.07),0 34px 90px -28px rgba(0,0,0,.9);
}
@media (max-width:1199px){
  body.auth-page--full{padding:24px 16px;--field-fill:#2a231e}
  body.auth-page--full .auth-art{order:-1;min-height:250px;background-position:50% 16%}
  body.auth-page--full .auth-art::before{background:linear-gradient(180deg,transparent 58%,rgba(37,31,27,1) 100%)}
  body.auth-page--full .auth-form{padding:18px 30px 28px}
}
@media (max-width:759px){
  body.auth-page--full{padding:20px 16px 24px}
  body.auth-page--full .auth-art{min-height:220px}
  body.auth-page--full .auth-form{padding:4px 22px 24px}
}

@media (min-width:1200px){
  /* ── Две половины ── */
  body.auth-page--full[data-look="split"]{
    padding:0;place-items:stretch;grid-template-columns:minmax(480px,44%) 1fr;background:#14100d;--field-fill:#1b1410;
  }
  body.auth-page--full[data-look="split"] .auth-card{display:contents}   /* форма и бык становятся половинами экрана */
  body.auth-page--full[data-look="split"] .auth-form{
    min-height:100vh;min-height:100dvh;padding:48px clamp(32px,5vw,120px);align-items:center;justify-content:center;
    background:radial-gradient(130% 100% at 0% 100%,#3d2614 0%,#1f160f 40%,#14100d 74%);
  }
  body.auth-page--full[data-look="split"] .auth-form > *{flex:none;width:100%;max-width:400px}
  body.auth-page--full[data-look="split"] .auth-brand{align-self:center}
  body.auth-page--full[data-look="split"] .auth-body{margin-top:30px}
  body.auth-page--full[data-look="split"] .auth-art{min-height:100vh;min-height:100dvh;background-position:50% 36%}

  /* ── Постер ── */
  body.auth-page--full[data-look="poster"]{
    display:flex;align-items:center;justify-content:center;gap:clamp(48px,7vw,170px);padding:12vh 5vw;--field-fill:#28211c;
  }
  body.auth-page--full[data-look="poster"] .auth-card{display:contents}
  body.auth-page--full[data-look="poster"] .auth-form{
    flex:none;width:440px;padding:34px 36px 32px;border-radius:24px;
    background:rgba(40,33,28,.86);backdrop-filter:blur(26px) saturate(1.15);-webkit-backdrop-filter:blur(26px) saturate(1.15);
    box-shadow:inset 0 0 0 1px var(--line),inset 0 1px 0 rgba(246,238,226,.07),0 34px 90px -28px rgba(0,0,0,.9);
  }
  body.auth-page--full[data-look="poster"] .auth-art{
    flex:none;height:min(76vh,820px);aspect-ratio:1374/1145;width:auto;min-height:0;border-radius:18px;background-position:50% 50%;
    box-shadow:0 0 0 1px rgba(240,137,42,.24),0 60px 120px -40px rgba(0,0,0,.95),0 0 140px -30px rgba(240,137,42,.22);
  }

  /* ── Фон во весь экран и стекло по центру ── */
  body.auth-page--full[data-look="cover"],body.auth-page--full[data-look="glass"]{
    background:
      linear-gradient(90deg,rgba(10,8,7,.90) 0%,rgba(10,8,7,.66) 28%,rgba(10,8,7,.22) 56%,rgba(10,8,7,.16) 100%),
      linear-gradient(180deg,rgba(10,8,7,.45) 0%,rgba(10,8,7,0) 24%,rgba(10,8,7,0) 76%,rgba(10,8,7,.5) 100%),
      #0d0b0a url("/static/img/auth-bulls.webp?v=20261124C1") no-repeat 50% 14%/cover;
    --field-fill:#28211c;
  }
  body.auth-page--full[data-look="cover"]{justify-items:start;padding:40px clamp(40px,7vw,170px)}
  body.auth-page--full[data-look="cover"] .auth-art,body.auth-page--full[data-look="glass"] .auth-art{display:none}
  body.auth-page--full[data-look="glass"]{
    place-items:end center;padding:40px 24px 9vh;--field-fill:#221b17;   /* ниже центра: бык смотрит поверх карточки */
    background:
      linear-gradient(rgba(10,8,7,.40),rgba(10,8,7,.46)),
      #0d0b0a url("/static/img/auth-bulls.webp?v=20261124C1") no-repeat 50% 14%/cover;
  }
  body.auth-page--full[data-look="glass"] .auth-card{
    background:rgba(26,21,18,.58);backdrop-filter:blur(28px) saturate(1.2);-webkit-backdrop-filter:blur(28px) saturate(1.2);
    box-shadow:inset 0 0 0 1px rgba(246,238,226,.14),inset 0 1px 0 rgba(246,238,226,.08),0 40px 110px -30px rgba(0,0,0,.95);
  }
  body.auth-page--full .auth-art::before{display:none}   /* переход к форме нужен только внутри карточки на узком экране */
}

/* ══ Поля без рамок (просьба владельца 24.11.2026: «в тему, без рамок»). Атрибут data-field у body:
     line — строка с тонкой чертой снизу; soft — светлая плитка; inset — углубление в камне.
     Без атрибута поле остаётся прежним, с рамкой. ══ */
.auth-page--embed{--field-fill:#1a1613}

.auth-page[data-field="line"] .auth-field{gap:6px}
.auth-page[data-field="line"] .auth-field__label{font-size:12px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
.auth-page[data-field="line"] .auth-input{
  height:46px;padding:0 2px;border:0;border-bottom:1px solid var(--line-strong);border-radius:0;background:transparent;
  font-size:17px;transition:border-color .15s,box-shadow .15s;
}
.auth-page[data-field="line"] .auth-input:hover{border-bottom-color:rgba(246,238,226,.42)}
.auth-page[data-field="line"] .auth-input:focus,.auth-page[data-field="line"] .auth-input:focus-visible{
  border-bottom-color:var(--accent);box-shadow:0 16px 22px -18px rgba(240,137,42,.8);
}
.auth-page[data-field="line"] .auth-input[aria-invalid="true"]{border-bottom-color:var(--danger-line)}
.auth-page[data-field="line"] .auth-otp__cell{border:0;border-bottom:2px solid var(--line-strong);border-radius:0;background:transparent}
.auth-page[data-field="line"] .auth-otp__cell.is-filled{border-bottom-color:rgba(246,238,226,.5)}
.auth-page[data-field="line"] .auth-otp__cell.is-active{
  border-bottom-color:var(--accent);background:transparent;box-shadow:0 16px 22px -18px rgba(240,137,42,.8);
}
.auth-page[data-field="line"] .auth-otp.is-invalid .auth-otp__cell{border-bottom-color:var(--danger-line)}

.auth-page[data-field="soft"] .auth-input,
.auth-page[data-field="inset"] .auth-input{height:52px;padding:0 18px;border:0;border-radius:14px}
.auth-page[data-field="soft"] .auth-wrap .auth-input,
.auth-page[data-field="inset"] .auth-wrap .auth-input{padding-right:56px}
.auth-page[data-field="soft"] .auth-eye,
.auth-page[data-field="inset"] .auth-eye{top:6px;right:6px}

.auth-page[data-field="soft"] .auth-input{background:rgba(246,238,226,.065);transition:background .15s,box-shadow .15s}
.auth-page[data-field="soft"] .auth-input:hover{background:rgba(246,238,226,.09)}
.auth-page[data-field="soft"] .auth-input:focus,.auth-page[data-field="soft"] .auth-input:focus-visible{
  background:rgba(246,238,226,.10);box-shadow:0 0 0 4px var(--ring),0 10px 24px -16px rgba(240,137,42,.5);
}
.auth-page[data-field="soft"] .auth-input[aria-invalid="true"]{background:var(--danger-soft);box-shadow:0 0 0 3px var(--danger-line)}
.auth-page[data-field="soft"] .auth-otp__cell{border:0;background:rgba(246,238,226,.065)}
.auth-page[data-field="soft"] .auth-otp__cell.is-filled{background:rgba(246,238,226,.09)}
.auth-page[data-field="soft"] .auth-otp__cell.is-active{background:rgba(246,238,226,.10);box-shadow:0 0 0 4px var(--ring)}

.auth-page[data-field="inset"] .auth-input{
  background:rgba(0,0,0,.30);box-shadow:inset 0 2px 6px rgba(0,0,0,.45),inset 0 -1px 0 rgba(246,238,226,.05);
  transition:background .15s,box-shadow .15s;
}
.auth-page[data-field="inset"] .auth-input:hover{background:rgba(0,0,0,.36)}
.auth-page[data-field="inset"] .auth-input:focus,.auth-page[data-field="inset"] .auth-input:focus-visible{
  background:rgba(0,0,0,.38);box-shadow:inset 0 2px 6px rgba(0,0,0,.45),inset 0 0 0 1px rgba(240,137,42,.55),inset 0 0 22px rgba(240,137,42,.16);
}
.auth-page[data-field="inset"] .auth-input[aria-invalid="true"]{box-shadow:inset 0 2px 6px rgba(0,0,0,.45),inset 0 0 0 1px var(--danger-line)}
.auth-page[data-field="inset"] .auth-otp__cell{border:0;background:rgba(0,0,0,.30);box-shadow:inset 0 2px 6px rgba(0,0,0,.45)}
.auth-page[data-field="inset"] .auth-otp__cell.is-active{
  background:rgba(0,0,0,.38);box-shadow:inset 0 2px 6px rgba(0,0,0,.45),inset 0 0 0 1px rgba(240,137,42,.55);
}

/* Автозаполнение браузера красит поле своим цветом — накрывается цветом поверхности под ним. */
.auth-page[data-field] .auth-input:-webkit-autofill{
  -webkit-text-fill-color:var(--fg);box-shadow:0 0 0 1000px var(--field-fill,#1a1613) inset;caret-color:var(--fg);
}

/* «Графит», 25.11.2026. Сцена используется общим макросом; действующие формы и JS не меняются. */
@font-face{font-family:Inter;src:url('/static/fonts/inter-latin.woff2') format('woff2');font-weight:100 900;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F}
@font-face{font-family:Inter;src:url('/static/fonts/inter-cyrillic.woff2') format('woff2');font-weight:100 900;font-display:swap;unicode-range:U+0400-052F,U+2116}
body.auth-page.auth-page--full[data-look]{display:block;padding:0;margin:0;background:#121313;--stage:#121313;--surface:#282521;--surface-2:rgba(13,13,13,.34);--surface-3:#38302a;--fg:#f7f1e9;--muted:#c4bcb1;--faint:#a99c91;--accent:#f2c19e;--accent-hover:#ffd1ad;--accent-ink:#261910;--line:rgba(232,212,194,.23);--line-strong:rgba(242,215,184,.38);--line-focus:#f6be95;--ring:rgba(246,190,149,.14);--font-body:Inter,'Segoe UI',Arial,sans-serif;--font-display:Inter,'Segoe UI',Arial,sans-serif;--field-fill:#272420}
.auth-graphite-scene{position:relative;isolation:isolate;overflow:hidden;min-height:max(690px,100svh);background:radial-gradient(ellipse at 26% 48%,#544434 0%,#2c2822 29%,transparent 56%),radial-gradient(ellipse at 86% 88%,#33251e,transparent 42%),#121313}
.auth-graphite-mast,.auth-graphite-layout{width:min(calc(100% - clamp(56px,10vw,176px)),1536px);margin-inline:auto}
.auth-graphite-mast{position:absolute;z-index:4;top:0;left:50%;transform:translateX(-50%);height:96px;border-bottom:1px solid #f7f1e91f;display:flex;align-items:center;justify-content:space-between;gap:12px}
.auth-graphite-mast .auth-brand{display:flex;align-items:center;gap:15px;color:#c8bbae}
.auth-brand img{display:block;object-fit:contain;flex:none}.auth-brand__butcher{width:98px;height:61px}.auth-brand__marea{width:64px;height:61px}.auth-brand__cut{width:1px;height:27px;background:#b9aa952f}.auth-brand__system{font:500 11px/1.3 Inter,sans-serif;padding-left:13px;letter-spacing:1.7px}
.auth-graphite-access{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted);white-space:nowrap}.auth-graphite-access svg{width:15px;height:15px}
.auth-graphite-art,.auth-graphite-glints{position:absolute;inset:0;pointer-events:none;z-index:-1}.auth-graphite-inner{position:absolute;width:min(55vw,900px);aspect-ratio:1.21;left:max(1.3%,calc(50% - 836px));top:53%;transform:translateY(-48%)}
.auth-graphite-sculpture{position:absolute;display:block;width:100%;height:100%;inset:1% 0 auto;overflow:visible;filter:sepia(.19) saturate(.85) contrast(1.06) brightness(1.04);mask-image:linear-gradient(0deg,transparent 1%,rgba(0,0,0,.1) 8%,#000 32%);animation:auth-sculpt-in 900ms cubic-bezier(.16,.7,.2,1) both}
.auth-graphite-orbit{position:absolute;display:block;border-radius:50%;aspect-ratio:1;animation:auth-light-in 960ms ease-out both}.auth-graphite-orbit--a{width:75%;left:12.5%;top:-1.5%;background:radial-gradient(ellipse at 40% 34%,#b89a6d11,#16161342 68%),linear-gradient(130deg,#9b704f45,transparent 44%,#15141120 82%);box-shadow:inset 1px 2px 2px #ffdcaaae,inset 0 0 22px #b6844d41,-8px -9px 46px #b47d3f15}.auth-graphite-orbit--b{width:81.2%;left:9.4%;top:-5.1%;border:1px solid #b7946d42;mask-image:linear-gradient(123deg,#000 3%,#0009 43%,transparent 76%)}.auth-graphite-orbit--c{width:86%;left:7%;top:-8%;border:1px solid #c4a07722;mask-image:linear-gradient(138deg,#000,transparent 53%)}
.auth-graphite-glints{overflow:hidden}.auth-graphite-glints i{position:absolute;width:84%;height:98%;left:40%;top:66%;border-radius:50%;transform:rotate(-26deg);box-shadow:0 -1.5px 1px #dfac7dc9,0 -5px 18px #ac69393b;background:linear-gradient(180deg,#ab735038,transparent 12%);mask-image:linear-gradient(100deg,transparent 9%,#000a 45%,#000 85%)}.auth-graphite-glints i+i{left:41%;top:68%;border-top:1px solid #9c725062;box-shadow:none;background:none}
.auth-graphite-light{position:absolute;inset:-5% -12% 0;background:linear-gradient(108deg,transparent 36%,#f6dab026 49%,transparent 58%);mix-blend-mode:screen;mask-image:radial-gradient(ellipse,#000,transparent 68%);animation:auth-sweep 1.1s ease-out both}
.auth-graphite-layout{position:relative;display:flex;align-items:center;justify-content:flex-end;min-height:max(690px,100svh);padding:126px clamp(12px,5vw,100px) 65px 0}
body.auth-page--full[data-look] .auth-graphite-layout .auth-card{display:block;flex:none;width:clamp(380px,32vw,484px);min-height:0;overflow:visible;border-radius:31px;background:linear-gradient(137deg,rgba(118,104,90,.27),rgba(48,44,41,.49) 40%,rgba(52,45,39,.62));border:1px solid rgba(242,215,184,.22);box-shadow:inset 1px 1.3px 1px rgba(255,236,212,.62),inset -1px -1px 1.5px rgba(114,84,62,.32),0 20px 60px -27px #000b,0 2px 5px #0002;backdrop-filter:blur(16px) saturate(1.16);-webkit-backdrop-filter:blur(16px) saturate(1.16);animation:auth-glass-in 680ms cubic-bezier(.16,.88,.24,1) 90ms both}
body.auth-page--full[data-look] .auth-graphite-layout .auth-form{width:auto;max-width:none;min-height:0;padding:clamp(30px,2.8vw,48px);background:none;box-shadow:none;backdrop-filter:none;border-radius:inherit}
.auth-graphite-scene .auth-title{font-size:clamp(40px,3.5vw,58px);font-weight:600;letter-spacing:-.067em;line-height:1.07;overflow-wrap:anywhere}.auth-graphite-scene .auth-lead{font-size:14px;line-height:1.55;margin-top:11px;overflow-wrap:anywhere}.auth-graphite-scene .auth-fields{gap:17px;margin-top:29px}.auth-graphite-scene .auth-field__label{font-size:12px;font-weight:600;letter-spacing:0}
body.auth-page[data-field] .auth-graphite-scene .auth-input{height:50px;padding:0 13px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);box-shadow:none;font:400 14px/1.3 var(--font-body)}
body.auth-page[data-field] .auth-graphite-scene .auth-wrap .auth-input{padding-right:52px}body.auth-page[data-field] .auth-graphite-scene .auth-input:focus{border-color:var(--line-focus);box-shadow:0 0 0 3px var(--ring)}body.auth-page[data-field] .auth-graphite-scene .auth-input[aria-invalid=true]{border-color:var(--danger-line)}
.auth-graphite-scene .auth-btn{min-height:51px;border:1px solid #f5d0b4;border-radius:13px;font-size:14px;letter-spacing:0;box-shadow:inset 0 1px 0 #ffffff4f,0 5px 17px #0002}.auth-graphite-scene .auth-eye{top:5px;right:5px}.auth-graphite-scene .auth-links{justify-content:center;margin-top:21px}.auth-graphite-scene .auth-links a{font-size:12px;font-weight:600;letter-spacing:0}
body.auth-page[data-field] .auth-graphite-scene .auth-otp__cells{gap:7px}body.auth-page[data-field] .auth-graphite-scene .auth-otp__cell{min-width:0;max-width:none;height:53px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);box-shadow:none;font-weight:500;font-size:25px}body.auth-page[data-field] .auth-graphite-scene .auth-otp__cell.is-active{border-color:var(--line-focus);box-shadow:0 0 0 2px var(--ring)}body.auth-page[data-field] .auth-graphite-scene .auth-otp.is-invalid .auth-otp__cell{border-color:var(--danger-line)}
.auth-graphite-scene .auth-meta{gap:4px 10px;margin:0;font-size:11px}.auth-graphite-scene .auth-meta .auth-link{font-size:11px;letter-spacing:0}.auth-graphite-scene .auth-qr{max-width:100%;height:auto}
@keyframes auth-sculpt-in{from{opacity:0;transform:translateY(10px) scale(1.035)}to{opacity:1;transform:none}}@keyframes auth-glass-in{from{opacity:0;transform:translateY(16px) scale(.985)}to{opacity:1;transform:none}}@keyframes auth-light-in{from{opacity:0}to{opacity:1}}@keyframes auth-sweep{0%{opacity:0;transform:translateX(-35%)}35%{opacity:.9}100%{opacity:0;transform:translateX(45%)}}
@media(min-width:761px) and (max-width:1070px){.auth-graphite-layout{padding-right:0}.auth-graphite-mast,.auth-graphite-layout{width:calc(100% - 56px)}body.auth-page--full[data-look] .auth-graphite-layout .auth-card{width:365px}body.auth-page--full[data-look] .auth-graphite-layout .auth-form{padding:29px}.auth-graphite-inner{left:-1%}}
@media(max-width:760px){.auth-graphite-scene{min-height:100svh;padding-bottom:25px}.auth-graphite-mast,.auth-graphite-layout{width:calc(100% - 36px)}.auth-graphite-mast{height:73px}.auth-graphite-mast .auth-brand{gap:9px}.auth-brand__butcher{width:71px;height:45px}.auth-brand__marea{width:44px;height:44px}.auth-brand__cut{height:18px}.auth-brand__system{font-size:9px;padding-left:9px}.auth-graphite-access{font-size:10px;gap:5px}.auth-graphite-access svg{width:13px}.auth-graphite-art{position:relative;inset:auto;margin-top:73px;height:clamp(178px,50vw,248px);overflow:hidden;mask-image:linear-gradient(to bottom,#000 79%,transparent)}.auth-graphite-inner{top:8px;left:50%;transform:translateX(-50%);width:min(77%,400px);aspect-ratio:1.45}.auth-graphite-sculpture{top:0;height:auto}.auth-graphite-layout{display:block;padding:0;min-height:0;max-width:464px}body.auth-page--full[data-look] .auth-graphite-layout .auth-card{width:100%;border-radius:23px}body.auth-page--full[data-look] .auth-graphite-layout .auth-form{padding:23px}.auth-graphite-scene .auth-title{font-size:clamp(34px,8vw,45px)}.auth-graphite-scene .auth-lead{font-size:13px}.auth-graphite-scene .auth-fields{gap:13px;margin-top:20px}body.auth-page[data-field] .auth-graphite-scene .auth-input{font-size:16px}.auth-graphite-scene .auth-btn{min-height:47px}.auth-graphite-scene .auth-links{margin-top:15px}body.auth-page[data-field] .auth-graphite-scene .auth-otp__cell{height:48px}}
@media(max-width:350px){.auth-graphite-access{font-size:0}.auth-graphite-access svg{width:15px}}
@media(prefers-reduced-motion:reduce){.auth-graphite-scene *{animation:none!important;transition:none!important}.auth-graphite-light{display:none}}
body.auth-page.auth-page--full[data-look]{justify-items:normal;align-items:normal}
.auth-graphite-scene{width:100%}
.auth-page [hidden]{display:none!important}
.auth-graphite-mast .auth-brand{align-self:center}

.auth-graphite-progress{display:flex;align-items:center;gap:5px;margin-bottom:18px;color:#f6be95;font-size:10px;font-weight:700;letter-spacing:1.6px;text-transform:uppercase;line-height:1.3}.auth-graphite-progress span{margin-right:6px}.auth-graphite-progress i{width:20px;height:3px;border-radius:10px;background:currentColor}.auth-graphite-progress i+i{opacity:.23}.auth-graphite-progress i.is-complete{opacity:1}
.auth-field-label-row{display:flex;align-items:baseline;justify-content:space-between;gap:6px}.auth-forgot{color:#f6be95;font-size:12px;font-weight:600;text-decoration:none;white-space:nowrap}.auth-forgot:hover{text-decoration:underline;text-underline-offset:3px}.auth-graphite-scene .auth-wrap--icon{display:block}.auth-field-icon{position:absolute;left:13px;top:16px;width:17px;height:17px;color:var(--faint);pointer-events:none}
body.auth-page[data-field] .auth-graphite-scene .auth-wrap--icon .auth-input{padding-left:40px}
@media(max-width:760px){.auth-graphite-progress{font-size:9px;margin-bottom:10px}.auth-graphite-progress i{width:15px;height:2px}}
