/* Окно входа и регистрации — штатный попап модуля auth (NcAuth), оформление в стиле МДБ 26/27.
   Общее для сайта сезона (макет mdb_site_2027: «Личный кабинет») и кабинета заявителя (макет mdb_account_2027: повторный
   вход при истёкшей сессии в форме заявки — site/js/form_reauth.js). Попап переносится в body, поэтому стили — не в
   SiteStyles шаблона, а здесь; токены (--navy, --blue, --s*, --fs-*, --focus-ring…) — макета страницы. */
:is(.mdb-site, .mdb-account) .nc-auth-popup{ background:rgba(11,27,63,.64); font-family:var(--font); }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-popup__container{
  --nc-auth-popup-bg:#fff; --nc-auth-popup-text:var(--navy); --nc-auth-popup-text-muted:var(--muted);
  --nc-auth-popup-brand:var(--blue); --nc-auth-popup-brand-hover:var(--blue-hover); --nc-auth-popup-border:#8A94A6;
  --nc-auth-popup-error:var(--err); --nc-auth-popup-radius:var(--r-m); --nc-auth-popup-radius-small:var(--r);
  max-width:480px; padding:76px var(--s7) var(--s7); border-top:6px solid var(--lime); border-radius:var(--r-m);
  box-shadow:0 24px 64px rgba(11,27,63,.35); font-family:var(--font); font-size:var(--fs-s); line-height:1.5; color:var(--text);
}
/* Верхняя строка: «Назад» слева, закрытие справа — на одной линии */
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-popup__container button.nc-auth-popup__close{ top:20px; right:20px; }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-popup__container button.nc-auth-popup__close,
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-popup__container button.nc-auth-popup__close:hover,
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-popup__container button.nc-auth-popup__close:focus,
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-popup__container button.nc-auth-popup__close:active{
  width:40px; min-width:40px; max-width:40px; height:40px; min-height:40px; max-height:40px;
  background:var(--bg); color:var(--navy);
}
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-popup__container button.nc-auth-popup__close:hover{ background:var(--navy); color:#fff; }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-popup__container button.nc-auth-popup__close:focus-visible{ box-shadow:var(--focus-ring); }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-popup__close svg{ width:18px; min-width:18px; height:18px; min-height:18px; }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-back{
  position:absolute; top:20px; left:var(--s7); margin:0; min-height:40px; padding:0 var(--s4) 0 var(--s3); gap:var(--s2);
  border-radius:999px; background:var(--bg); color:var(--navy); font-size:var(--fs-xs); font-weight:800; text-decoration:none;
}
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-back::before{
  content:""; width:18px; height:18px; background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E") center/contain no-repeat;
}
@media (hover:hover){ :is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-back:hover{ background:var(--navy); color:#fff; } }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-back:focus-visible{ box-shadow:var(--focus-ring); }
/* Заголовок и подзаголовок */
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-popup__title{ margin:0; font-size:clamp(1.5rem, 1.3rem + .6vw, 1.875rem); font-weight:900; line-height:1.15; letter-spacing:-.01em; color:var(--navy); }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-popup__subtitle{ margin:var(--s2) 0 var(--s5); font-size:var(--fs-s); line-height:1.5; color:var(--muted); }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-email-display{ font-weight:800; color:var(--navy); overflow-wrap:anywhere; }
/* Поля */
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-field, :is(.mdb-site, .mdb-account) .nc-auth-popup #nc-auth-register-fields .nc-auth-field{ margin-bottom:var(--s4); }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-field__label{ margin-bottom:6px; font-size:var(--fs-s); font-weight:800; color:var(--navy); }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-required{ color:var(--err); }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-field__input{
  min-height:52px; padding:var(--s3) var(--s4); border:1px solid #8A94A6; border-radius:var(--r); background-color:#fff;
  font-family:var(--font); font-size:var(--fs-m); color:var(--text); box-shadow:none;
}
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-field__input::placeholder{ color:#6B7280; }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-field__input:hover{ border-color:var(--navy); }
/* фокус полей окна — как у полей форм сайта (как в кабинете): синяя рамка и outline 2px вплотную */
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-field__input:focus{ border-color:var(--blue); box-shadow:none; outline:2px solid var(--blue); outline-offset:0; }
/* выпадающий список окна входа на сайте сезона — стрелка общего правила .mdb-site select (site.css, раздел полей форм) */
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-field__toggle-password{ color:var(--navy); font-family:var(--font); font-weight:800; }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-error{ font-size:var(--fs-xs); font-weight:700; color:var(--err); }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-code-input{ min-width:0; padding:0; border:1px solid #8A94A6; border-radius:var(--r); font-family:var(--font); font-weight:900; color:var(--navy); background:#fff; }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-code-input:focus{ border-color:var(--blue); box-shadow:none; outline:2px solid var(--blue); outline-offset:0; }
/* Согласия: текст тёмный, ссылки — синие с подчёркиванием */
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-consent{ margin:var(--s3) 0; }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-consent__label{ gap:var(--s3); font-size:var(--fs-xs); line-height:1.5; color:var(--text); }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-consent__checkmark{ width:22px; height:22px; border:2px solid #8A94A6; border-radius:var(--r); background:#fff; }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-consent__checkmark::after{ left:6px; top:2px; }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-consent__input:focus-visible + .nc-auth-consent__checkmark{ box-shadow:var(--focus-ring); }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-consent__text a, :is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-checkbox label a{ color:var(--blue); font-weight:700; text-decoration:underline; text-underline-offset:3px; }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-checkbox label{ color:var(--text); font-size:var(--fs-xs); }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-agreement-block{ border-top-color:var(--line); }
/* Кнопки и ссылки */
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-btn{ min-height:52px; padding:var(--s3) var(--s5); border-radius:var(--r); font-family:var(--font); font-size:var(--fs-s); font-weight:800; letter-spacing:.01em; }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-btn--primary{ background:var(--blue); color:#fff; margin-top:var(--s2); }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-btn--primary:hover{ background:var(--blue-hover); }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-btn--secondary{ background:transparent; color:var(--navy); border:2px solid var(--navy); }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-btn--secondary:hover{ background:var(--navy); color:#fff; }
/* Кнопки в одной строке («Пропустить» / «Сохранить»): отступ основной кнопки сдвинул бы её вниз, а соседняя растянулась бы на его высоту */
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-actions .nc-auth-btn{ margin-top:0; }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-btn:focus-visible{ box-shadow:var(--focus-ring); outline:none; }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-link, :is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-resend a, :is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-btn--link{ color:var(--blue); font-weight:700; font-size:var(--fs-xs); }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-resend a.disabled{ color:var(--muted); font-weight:600; }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-links{ margin-top:var(--s4); }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-divider{ color:var(--muted); font-size:var(--fs-xs); font-weight:700; }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-divider::before, :is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-divider::after{ background:var(--line); }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-oauth-btn{ min-height:48px; border:2px solid var(--line); border-radius:var(--r); font-family:var(--font); font-weight:700; }
/* Успех */
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-success__icon{ background:var(--lime); color:var(--navy); }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-success__title{ font-size:var(--fs-xl); font-weight:900; color:var(--navy); }
:is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-success__message{ font-size:var(--fs-s); color:var(--muted); }
@media (max-width:480px){
  :is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-popup__container{ padding:72px var(--s5) var(--s6); border-radius:var(--r-m) var(--r-m) 0 0; }
  :is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-back{ left:var(--s5); top:16px; }
  :is(.mdb-site, .mdb-account) .nc-auth-popup .nc-auth-popup__container button.nc-auth-popup__close{ top:16px; right:16px; }
}

/* Плашка «Сессия истекла» над экраном окна входа (повторный вход в форме заявки, form_reauth.js) — как mdb-banner--warn */
.nc-auth-popup .mdb-reauth-notice{
  display:grid; gap:2px; margin:0 0 var(--s5); padding:var(--s3) var(--s4);
  border:1px solid #F0C27A; border-radius:var(--r); background:var(--warn-bg, #FFF1DB); color:var(--warn, #8A4B00);
  font-size:var(--fs-s); line-height:1.45;
}
.nc-auth-popup .mdb-reauth-notice b{ font-weight:800; }
