/* Вход и приглашение в кабинет партнёра (templates/_auth.html): карточка по центру экрана, логотип внутри,
   крупные поля и одна главная кнопка. Цвета — брендбук (business/assets/VR_guideline.pdf): Vinyl black #1A1A1B,
   Vinyl range #EF2B15, Vinyl gray #545A67. Шрифт Golos Text — свои файлы (static/fonts, OFL): CSP пускает только свой адрес. */
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/golos-text-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/golos-text-latin-400-normal.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: "Golos Text"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/golos-text-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/golos-text-latin-500-normal.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: "Golos Text"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/golos-text-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/golos-text-latin-600-normal.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: "Golos Text"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/golos-text-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/golos-text-latin-700-normal.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 {
  --ink: #1a1a1b; --red: #ef2b15; --gray: #545a67; --muted: #7b808b;
  --bg: #f2f3f5; --card: #fff; --field: #f5f6f8; --line: #e4e6eb; --err-bg: #fdecea; --err: #b3261e;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.auth { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font: 16px/1.45 "Golos Text", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body.auth::before { content: ""; position: fixed; inset: 0 0 auto; height: 4px; background: var(--red); }

.auth-wrap { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 20px; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 460px; background: var(--card); border: 1px solid #eceef1; border-radius: 24px;
  padding: 44px 44px 36px; box-shadow: 0 1px 2px rgba(17, 20, 28, .04), 0 18px 48px -18px rgba(17, 20, 28, .16); }
.auth-brand { display: inline-flex; color: var(--ink); text-decoration: none; }
.auth-logo { height: 24px; width: auto; display: block; }

.auth-card h1 { font-size: 32px; line-height: 1.12; font-weight: 700; letter-spacing: -.02em; margin: 36px 0 8px; }
.auth-lead { margin: 0 0 28px; color: var(--muted); font-size: 15px; }
.auth-lead b { color: var(--ink); font-weight: 600; }

.auth-form { display: grid; gap: 12px; margin: 0; }
.fld { position: relative; display: block; margin: 0; }
.fld input { width: 100%; height: 58px; padding: 24px 16px 8px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--field); border: 1px solid var(--line); border-radius: 14px; outline: 0; appearance: none;
  transition: border-color .15s, background-color .15s, box-shadow .15s; }
.fld input:hover { border-color: #d5d8de; }
.fld input:focus { background: #fff; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(26, 26, 27, .07); }
.fld span { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none;
  transition: top .15s, font-size .15s, transform .15s; }
/* Подпись поля встаёт над текстом, когда в поле что-то есть (и когда браузер подставил сохранённый пароль). */
.fld input:focus + span, .fld input:not(:placeholder-shown) + span, .fld input:-webkit-autofill + span {
  top: 9px; transform: none; font-size: 12px; }
.fld.pw input { padding-right: 52px; }
.eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid;
  place-items: center; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
.eye:hover { color: var(--ink); background: rgba(26, 26, 27, .05); }
.eye svg { width: 20px; height: 20px; }
.eye .off, .eye.on .on { display: none; }
.eye.on .off { display: block; }

.auth-btn { margin-top: 8px; width: 100%; height: 58px; display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; font: inherit; font-size: 17px; font-weight: 600; color: #fff; background: var(--ink); border: 0;
  border-radius: 14px; cursor: pointer; text-decoration: none; transition: background-color .15s, transform .1s;
  box-shadow: 0 10px 24px -12px rgba(26, 26, 27, .55); }
.auth-btn:hover { background: var(--red); box-shadow: 0 10px 24px -12px rgba(239, 43, 21, .6); }
.auth-btn:active { transform: translateY(1px); }
.auth-btn svg { width: 20px; height: 20px; }
.auth-btn:focus-visible, .auth-alt:focus-visible, .eye:focus-visible { outline: 3px solid rgba(239, 43, 21, .45); outline-offset: 2px; }

.auth-alt { width: 100%; height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px;
  text-decoration: none; transition: border-color .15s; }
.auth-alt:hover { border-color: var(--ink); }
.auth-alt svg { width: 20px; height: 20px; color: #229ed9; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 14px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.auth-err { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--err-bg); color: var(--err); font-size: 15px; }
.auth-err.ok { background: #e9f6ee; color: #1f7a43; }
.auth-note { margin: 22px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.auth-note + .auth-note { margin-top: 8px; }
.auth-note b { color: var(--ink); font-weight: 600; }
.auth-foot { margin: 0; color: var(--muted); font-size: 13px; }
.auth-foot a { color: inherit; text-decoration: none; }
.auth-foot a:hover { color: var(--ink); }

@media (max-width: 480px) {
  .auth-wrap { justify-content: flex-start; padding: 28px 16px; }
  .auth-card { padding: 32px 22px 26px; border-radius: 20px; }
  .auth-card h1 { font-size: 28px; margin-top: 30px; }
  .auth-logo { height: 20px; }
}
