/* Blanki.online: сообщения DLE (info.tpl), восстановление пароля (lostpassword.tpl), регистрация (registration.tpl).
   Переиспользует .bl-btn, .bl-input, .bl-field, .bl-check из site.css. Подключение: main.tpl после site.css.
   Селекторы с префиксом .bl-form / .bl-msg перебивают общие правила engine.css для input[type=...] и .btn. */

/* ===== Сообщения DLE ({info}) ===== */
.bl-info-wrap .bl-msg{max-width:680px;margin-left:auto;margin-right:auto}
.bl-info-wrap .bl-msg+.bl-msg{margin-top:12px}
.bl-msg *{box-sizing:border-box}
.bl-msg{--bl-msg-c:#5699d9;--bl-msg-bg:#edf3f6;--bl-msg-ic:#307bb9;position:relative;display:grid;grid-template-columns:48px minmax(0,1fr);gap:16px;box-sizing:border-box;padding:24px 28px 24px 24px;background:#f9fcfc;border:1px solid #cbe1ef;border-radius:16px;box-shadow:0 0 21px rgba(200,222,231,.43);font:400 15px/1.6 Montserrat,system-ui,sans-serif;color:#2b303b;text-align:left;overflow:hidden;animation:bl-msg-in .3s ease-out both}
.bl-msg::before{content:"";position:absolute;left:24px;right:24px;top:0;height:4px;border-radius:0 0 4px 4px;background:var(--bl-msg-c)}
.bl-msg--error{--bl-msg-c:#d64545;--bl-msg-bg:#fdecec;--bl-msg-ic:#b42318;border-color:#f1c9c9}
.bl-msg--success{--bl-msg-c:#2e9e6a;--bl-msg-bg:#e3f5ec;--bl-msg-ic:#157347;border-color:#c3e6d3}
@keyframes bl-msg-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.bl-msg__ic{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--bl-msg-bg)}
.bl-msg__ic::before{content:"";width:24px;height:24px;background:var(--bl-msg-ic);-webkit-mask:var(--bl-msg-mask) center/contain no-repeat;mask:var(--bl-msg-mask) center/contain no-repeat}
.bl-msg{--bl-msg-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 11v6M12 7.5v.01'/%3E%3C/svg%3E")}
.bl-msg--error{--bl-msg-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 2.4 17.6A2 2 0 0 0 4.1 20.6h15.8a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3Cpath d='M12 9v4.5M12 17v.01'/%3E%3C/svg%3E")}
.bl-msg--success{--bl-msg-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5 10-11'/%3E%3C/svg%3E")}
.bl-msg__body{min-width:0;align-self:center}
.bl-msg .bl-msg__t{margin:0 0 6px;font-weight:400;font-size:20px;line-height:1.3;color:#0d1018;overflow-wrap:anywhere}
.bl-msg__x{overflow-wrap:anywhere}
.bl-msg__x>:first-child{margin-top:0}
.bl-msg__x>:last-child{margin-bottom:0}
.bl-msg__x p{margin:0 0 10px}
.bl-msg__x ul,.bl-msg__x ol{margin:4px 0 0;padding:0;list-style:none}
.bl-msg__x li{position:relative;margin:0 0 6px;padding-left:18px}
.bl-msg__x li::before{content:"";position:absolute;left:2px;top:.62em;width:7px;height:7px;border-radius:50%;background:var(--bl-msg-c)}
.bl-msg__x ul+br{display:none}
.bl-msg__x a{color:#307bb9;text-decoration:underline;text-underline-offset:3px}
.bl-msg__x a:hover{color:#1f5d92}
.bl-msg__x b,.bl-msg__x strong{font-weight:400;color:#0d1018;background:var(--bl-msg-bg);padding:0 4px;border-radius:4px}
.bl-msg__acts{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.bl-msg__acts[hidden]{display:none}
.bl-msg__acts .bl-btn{flex:0 0 auto;width:auto;min-height:44px;padding:10px 20px;font-size:15px;line-height:1.2}
.bl-msg .bl-btn--ghost{background:#fff;color:#307bb9!important;border:1px solid #cbe1ef}
.bl-msg .bl-btn--ghost:hover{background:#fff;color:#1f5d92!important;border-color:#5699d9}
/* Сообщение без другого содержимого на странице: чуть крупнее, по центру */
.bl-main .bl-msg--alone{margin-top:8px}
.bl-msg--alone .bl-msg__t{font-size:24px}
h1.bl-msg__t{font-weight:400}
@media (max-width:600px){
  .bl-msg{grid-template-columns:minmax(0,1fr);gap:12px;padding:22px 18px 20px}
  .bl-msg::before{left:18px;right:18px}
  .bl-msg__ic{width:44px;height:44px}
  .bl-msg .bl-msg__t,.bl-msg--alone .bl-msg__t{font-size:19px}
  .bl-msg__acts .bl-btn{flex:1 1 100%}
}

/* ===== Формы: восстановление пароля и регистрация ===== */
.bl-form{position:relative;box-sizing:border-box;width:100%;max-width:680px;margin:0 auto;padding:36px 40px 32px;background:#f9fcfc url("/assets/hero-lines.svg?v=1") center top/900px auto no-repeat;border:1px solid #e1ecf3;border-radius:20px;box-shadow:0 0 21px rgba(200,222,231,.43);font-family:Montserrat,system-ui,sans-serif;color:#0d1018}
.bl-form *{box-sizing:border-box}
.bl-form::before{content:"";position:absolute;left:40px;right:40px;top:0;height:4px;border-radius:0 0 4px 4px;background:#5699d9}
.bl-form__ic{display:grid;place-items:center;width:52px;height:52px;margin:0 0 16px;border-radius:50%;background:#edf3f6;color:#307bb9}
.bl-form__ic svg{width:26px;height:26px}
.bl-form .bl-form__title{margin:0 0 10px;font-weight:400;font-size:28px;line-height:1.25;color:#0d1018}
.bl-form .bl-form__lead{margin:0 0 24px;font-size:15px;line-height:1.6;color:#3f4652}
.bl-form__lead a,.bl-form__foot a,.bl-form__hint a{color:#307bb9}
.bl-form .bl-field{margin:0 0 18px}
.bl-form .bl-field__l{font-size:14px;color:#2b303b}
.bl-form .bl-field__hint{margin:6px 0 0;font-size:13px;line-height:1.5;color:#4a525e}
.bl-form .bl-input,
.bl-form input.bl-input[type]{display:block;width:100%;height:48px;margin:0;padding:0 14px;border:1px solid #cbe1ef;border-radius:10px;background:#fff;font:400 16px/1.2 Montserrat,system-ui,sans-serif;color:#0d1018;vertical-align:middle;transition:border-color .2s,box-shadow .2s}
.bl-form textarea.bl-input{height:auto;min-height:120px;padding:12px 14px;line-height:1.5;resize:vertical}
.bl-form .bl-input:focus,
.bl-form input.bl-input[type]:focus{outline:none;border-color:#5699d9;box-shadow:0 0 0 3px rgba(86,153,217,.25)}
.bl-form .bl-input::placeholder{color:#6b7480;opacity:1}
.bl-form input[type=file]{display:block;width:100%;min-height:48px;padding:10px 12px;border:1px dashed #9ec1da;border-radius:10px;background:#fff;font:400 14px Montserrat,system-ui,sans-serif;color:#2b303b}
/* Логин + кнопка «Проверить» */
.bl-form__row{display:flex;gap:10px}
.bl-form__row .bl-input{flex:1 1 auto;min-width:0}
.bl-form .bl-btn--ghost{flex:none;width:auto;min-height:48px;padding:0 18px;background:#fff;color:#307bb9!important;border:1px solid #cbe1ef;font-size:15px;text-shadow:none;box-shadow:none}
.bl-form .bl-btn--ghost:hover{background:#edf3f6;color:#1f5d92!important;border-color:#5699d9}
#result-registration:not(:empty){margin:8px 0 0;font-size:14px;line-height:1.5}
#result-registration:empty{display:none}
#result-registration font[color=red],#result-registration .error{color:#b42318}
#result-registration font[color=green]{color:#157347}
/* Капча DLE: картинка + поле */
.bl-captcha{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.bl-captcha>a{flex:none;display:block;border-radius:10px;line-height:0}
.bl-captcha>a:focus-visible{outline:3px solid #9ec1da;outline-offset:2px}
.bl-captcha img{display:block;width:120px;height:60px;border:1px solid #cbe1ef;border-radius:10px;background:#fff}
.bl-form .bl-captcha .bl-input{flex:1 1 140px;width:auto;min-width:0}
.bl-form__captcha-ext{margin:0 0 18px}
/* Кнопка отправки и подвал формы */
.bl-form .bl-form__submit{width:100%;margin-top:6px;text-shadow:none;box-shadow:none}
.bl-form .bl-form__foot{margin:18px 0 0;text-align:center;font-size:14px;line-height:1.5;color:#4a525e}
.bl-form__foot a{display:inline-flex;align-items:center;min-height:32px}
.bl-form__foot>span{display:inline-block}
.bl-form__sep{margin:0 8px;color:#9aa4ae}
@media (max-width:600px){.bl-form__foot>span{display:block}.bl-form__sep{display:none!important}}
.bl-captcha>a{overflow:hidden;width:120px;height:60px}
.bl-captcha img{font-size:11px;line-height:1.2;color:#4a525e;overflow:hidden}
/* Галочка согласия (разметка из site.css .bl-check) */
.bl-form .bl-reg-consent{margin:4px 0 18px}
.bl-form .bl-reg-consent .bl-check{margin:0;font-size:13px}
/* Доп. поля DLE при продолжении регистрации */
.bl-form .xfields{width:100%;border-collapse:collapse}
.bl-form .xfields td{padding:0 0 14px;vertical-align:top;font-size:14px;color:#2b303b}
.bl-form .xfields input[type=text],.bl-form .xfields select,.bl-form .xfields textarea{width:100%;min-height:44px;border:1px solid #cbe1ef;border-radius:10px;padding:8px 12px;font:400 15px Montserrat,system-ui,sans-serif}
@media (max-width:600px){
  .bl-form{padding:28px 20px 24px;border-radius:16px}
  .bl-form::before{left:20px;right:20px}
  .bl-form .bl-form__title{font-size:23px}
  .bl-form__ic{width:46px;height:46px;margin-bottom:12px}
  .bl-form__row .bl-btn--ghost{padding:0 14px}
}
/* blog.css задаёт .bl-btn{width:100%;color:#fff!important}: здесь возвращаем свои размеры */
.bl-form .bl-form__submit{display:flex;min-height:48px;font-size:17px}
/* Шаг «Правила сайта» перед регистрацией: кнопки «Принимаю / Не принимаю» генерирует engine/modules/static.php ({ACCEPT-DECLINE}) */
.bl-static form#registration{display:flex;flex-wrap:wrap;gap:12px;margin:28px 0 0;padding:20px 0 0;border-top:1px solid #dbe7f1;font-size:0}
.bl-static form#registration .bbcodes{display:inline-flex;align-items:center;justify-content:center;min-height:48px;margin:0;padding:12px 26px;border:1px solid #5699d9;border-radius:10px;background:#5699d9;color:#fff;font:400 16px/1.2 Montserrat,system-ui,sans-serif;text-shadow:none;box-shadow:none;cursor:pointer;transition:background .3s,border-color .3s,color .3s}
.bl-static form#registration .bbcodes:hover{background:#307bb9;border-color:#307bb9}
.bl-static form#registration input[type=button].bbcodes{background:#fff;color:#307bb9;border-color:#cbe1ef}
.bl-static form#registration input[type=button].bbcodes:hover{background:#edf3f6;color:#1f5d92;border-color:#5699d9}
.bl-static form#registration .bbcodes:focus-visible{outline:3px solid #9ec1da;outline-offset:2px}
@media (max-width:600px){.bl-static form#registration .bbcodes{flex:1 1 100%}}
@media (prefers-reduced-motion:reduce){.bl-msg{animation:none}.bl-form .bl-input{transition:none}}
