/* Общий экран входа для всех сервисов (Учёт потребления, База знаний).
   Использует переменные палитры модулей: --bg, --surface, --fg, --muted, --line-strong, --accent, --accent-fg. */
.auth-gate { position: fixed; inset: 0; z-index: 10000; background: var(--bg, #F3F4F6); color: var(--fg, #161A22); overflow: auto; }
.auth-wrap { min-height: 100vh; box-sizing: border-box; display: flex; align-items: center; justify-content: center; padding: 24px; font-family: var(--font, 'IBM Plex Sans', system-ui, sans-serif); }
.auth-card { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.auth-mark { width: 48px; height: 48px; margin: 0 auto; border-radius: 12px; background: var(--accent, #2B4C9B); color: var(--accent-fg, #fff); display: flex; align-items: center; justify-content: center; }
.auth-card h1 { margin: 0; font-size: 22px; font-weight: 700; text-align: center; }
.auth-sub { margin: 0; text-align: center; color: var(--muted, #5B6372); font-size: 13px; }
.auth-msg { margin: 0; text-align: center; color: var(--muted, #5B6372); font-size: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 4px; }
.auth-field > span { font-size: 12px; color: var(--muted, #5B6372); }
.auth-input { width: 100%; box-sizing: border-box; min-height: 44px; border: 1px solid var(--line-strong, #C9CED8); border-radius: 8px; padding: 0 10px; font: inherit; font-size: 16px; background: var(--surface, #fff); color: var(--fg, #161A22); }
.auth-input:focus-visible, .auth-btn:focus-visible { outline: 2px solid var(--accent, #2B4C9B); outline-offset: 2px; }
.auth-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.auth-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.auth-check small { display: block; color: var(--muted, #5B6372); font-size: 12px; margin-top: 2px; }
.auth-err { min-height: 18px; color: var(--bad, #D64535); font-size: 14px; }
.auth-btn { min-height: 48px; border: 0; border-radius: 8px; background: var(--accent, #2B4C9B); color: var(--accent-fg, #fff); font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; }
.auth-btn:disabled { opacity: .5; cursor: not-allowed; }
