/* Достройка к esia.css (реальные стили ЕСИА, извлечены со страницы входа
   esia.gosuslugi.ru/login 29.11.2026). Здесь только то, чего нет в реальном
   CSS: экран SMS, показ пароля, красные ошибки, карточки состояний и
   демо-плашка mock-сервера. */

/* --- Сброс: реальный CSS сбрасывает html,body,div,span,h1,a,img,form,header --- */
p, h2, h3 { margin: 0; }
h2, h3 { font-size: inherit; font-weight: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sf-hidden { display: none; } /* скрытый esia-modal на реальной странице */

/* --- Классы ЕСИА для экрана SMS (в сохранённом CSS их не было — компонент
       не был загружен в состоянии логина; значения из стилей ЕСИА) --- */
.title-h3 { font-size: 24px; line-height: 32px; }
.text-plain {
  font-family: Lato, Helvetica, Arial, sans-serif, -apple-system;
  color: #14302c;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}
.error-label {
  font-family: Lato, Helvetica, Arial, sans-serif, -apple-system;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #e11432;
}
.plain-input.plain-input--invalid { background: rgba(238, 63, 88, .16); }

/* --- Показ/скрытие пароля: на реальной странице кнопка-«глаз» появляется
       при вводе (Angular); здесь то же самое через hidden + JS --- */
.input-password .toggle {
  padding: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  text-align: left;
  box-shadow: none;
  color: inherit;
  position: absolute;
  top: 14px;
  right: 16px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  background: url(password-hidden.a803b70530adcfb7.svg) no-repeat center;
  font-size: 0;
}
.input-password .toggle.invalid { background: url(password-hidden-error.d6074ce92d29c5b6.svg) no-repeat center; }
.input-password .toggle.show { background: url(password-shown.6602aebea52daaac.svg) no-repeat center; }
.input-password .toggle.show.invalid { background: url(password-shown-error.206b272f7897013e.svg) no-repeat center; }
.input-password .toggle:focus-visible {
  z-index: 2;
  background-color: #fef0cc;
  outline: none;
}

/* --- Отступы шкалы ЕСИА, которых нет в сохранённом CSS --- */
.mt-4 { margin-top: 4px; }
.mt-6 { margin-top: 6px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }

/* --- Утилиты для карточек «код истёк» / «слишком попыток» (порт из дизайна) --- */
.flex { display: flex; }
.justify-center { justify-content: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-8 { margin-top: 32px; margin-bottom: 32px; }
.max-w-\[416px\] { max-width: 416px; }
.px-\[32px\] { padding-left: 32px; padding-right: 32px; }
.py-\[40px\] { padding-top: 40px; padding-bottom: 40px; }
.py-\[14px\] { padding-top: 14px; padding-bottom: 14px; }
.px-\[16px\] { padding-left: 16px; padding-right: 16px; }
.mb-\[40px\] { margin-bottom: 40px; }
.space-x-2 > * + * { margin-left: 8px; }
.text-2xl { font-size: 24px; line-height: 32px; }
.font-bold { font-weight: 700; }
.text-white { color: #fff; }
.text-red-600 { color: #dc2626; }
.w-auto { width: auto; }
.w-12 { width: 48px; }
.h-12 { height: 48px; }
.bg-white { background: #fff; }
.bg-\[\#0f766e\] { background: #0f766e; }
.bg-\[\#f5f7fa\] { background: #f5f7fa; }
.hover\:bg-blue-600:hover { background: #0a5d54; }
.rounded-md { border-radius: 6px; }
.rounded-\[12px\] { border-radius: 12px; }
.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px #0f766e; }

/* --- Watermark HACK_THE_ICE (хакатон, честная пометка о мок-странице) --- */
.watermark-background { display: block; position: relative; }
.watermark-background::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='260'%3E%3Ctext x='170' y='130' font-family='Arial,Helvetica,sans-serif' font-size='28' font-weight='700' letter-spacing='4' fill='%230f766e' fill-opacity='0.08' text-anchor='middle' dominant-baseline='middle' transform='rotate(-24 170 130)'%3EHACK_THE_ICE%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
}

/* --- Красный баннер-предупреждение «фейковая страница» --- */
.banners { display: flex; flex-direction: column; gap: 16px; }
.banner.banner--mock-warning:before { background-color: #fa4d4d; }
.mock-warning__title {
  display: block;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  color: #e11432;
  margin-bottom: 4px;
}
.mock-warning__text { font-size: 14px; line-height: 20px; color: #14302c; }
.mock-status-ok { color: #0f7a3d; font-weight: 700; }
.mock-status-warn { color: #b25800; font-weight: 700; }

/* --- Тестовая плашка SMS-кода (демо-режим mock ЕСИА) --- */
.mock-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 24px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fef0cc;
  color: #7a5200;
  font-size: 14px;
  line-height: 20px;
}
.mock-code b { font-weight: 700; letter-spacing: 2px; }

/* --- Блок «Тестовая имитация» (список тестовых жителей) --- */
.mock-notice {
  max-width: 416px;
  margin: 16px auto 0;
  padding: 0 16px;
  font-size: 13px;
  line-height: 20px;
  color: #66727f;
  text-align: left;
}
.mock-notice summary { cursor: pointer; text-align: center; color: #66727f; outline: none; }
.mock-notice summary:focus-visible { outline: 2px solid #0f766e; border-radius: 4px; }
.mock-notice__body { margin-top: 8px; }
.mock-notice__body p { margin: 0 0 8px; }
.mock-notice ul { margin: 0 0 8px; padding-left: 20px; }
.mock-notice code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  background: #f5f7fa;
  border-radius: 4px;
  padding: 1px 4px;
}
