/*
 * SOKOL: вид страниц «Вход» и «Регистрация» (body#authentication в теме warehouse).
 * Подключается модулем sokolclienttype, когда включена настройка «Новый вид страниц».
 * Всё ограничено этими двумя страницами. Цвет бренда: #e30714 (как у кнопок темы).
 */

/* ---------- заголовок страницы ---------- */
body#authentication #main .page-header { margin-bottom: 0; }
body#authentication #content-wrapper .page-title {
  text-align: center;
  font-size: 26px;
  line-height: 1.25;
  margin: 8px 0 22px;
  padding-bottom: 0;
}

/* ---------- карточка ---------- */
body#authentication #content.page-content {
  display: flex;
  flex-direction: column;
  max-width: 520px;
  margin: 0 auto 56px;
  padding: 0;
  background: #fff;
  border: 1px solid #e2e5ea;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(22, 26, 34, 0.07);
  overflow: hidden;
}
body#authentication #content.page-content > hr { display: none; }
body#authentication .login-form,
body#authentication .register-form { margin: 0; padding: 28px 32px 6px; }

/* Ссылки «Нет учётной записи?» и «Уже зарегистрировались?» заменены вкладками. Прячем их, только если вкладки есть. */
body#authentication .sokol-auth-tabs ~ .no-account,
body#authentication .sokol-auth-tabs ~ .register-form > p:first-child { display: none; }

/* ---------- вкладки ---------- */
body#authentication .sokol-auth-tabs {
  order: -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f4f5f7;
  border-bottom: 1px solid #e2e5ea;
}
body#authentication .sokol-auth-tabs__item {
  display: block;
  padding: 16px 12px 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: #6b7280;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
body#authentication .sokol-auth-tabs__item:hover { color: #2b2f36; background: #eceef1; }
body#authentication .sokol-auth-tabs__item.is-active,
body#authentication .sokol-auth-tabs__item.is-active:hover {
  color: #2b2f36;
  background: #fff;
  border-bottom-color: #e30714;
  cursor: default;
}
body#authentication .sokol-auth-tabs__item:focus-visible { outline: 2px solid #e30714; outline-offset: -2px; }

/* ---------- поля: подпись над полем, поле на всю ширину ---------- */
body#authentication #login-form .form-group.row,
body#authentication #customer-form .form-group.row { display: block; margin: 0 0 18px; }
body#authentication #login-form .form-group.row > label,
body#authentication #login-form .form-group.row > [class*="col-"],
body#authentication #customer-form .form-group.row > label,
body#authentication #customer-form .form-group.row > [class*="col-"] {
  display: block;
  flex: none;
  width: 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}
body#authentication #login-form .form-group.row > label,
body#authentication #customer-form .form-group.row > label {
  margin: 0;
  padding-top: 0;
  padding-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: #3a3f47;
  text-align: left;
}
body#authentication #login-form .form-control-comment,
body#authentication #customer-form .form-control-comment { padding: 6px 0 0; font-size: 12px; color: #6b7280; opacity: 1; }
body#authentication #login-form .form-control-comment:empty,
body#authentication #customer-form .form-control-comment:empty { display: none; }

body#authentication #login-form .form-control,
body#authentication #customer-form .form-control {
  height: 46px;
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.4;
  color: #2b2f36;
  background: #fff;
  border: 1px solid #cdd2d9;
  border-radius: 8px;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
body#authentication #login-form .form-control:hover,
body#authentication #customer-form .form-control:hover { border-color: #9aa1ac; }
body#authentication #login-form .form-control:focus,
body#authentication #customer-form .form-control:focus {
  border-color: #e30714;
  box-shadow: 0 0 0 3px rgba(227, 7, 20, 0.14) !important;
}

/* поле пароля с кнопкой «показать» */
body#authentication #login-form .input-group,
body#authentication #customer-form .input-group { flex-wrap: nowrap; }
body#authentication #login-form .input-group > .form-control,
body#authentication #customer-form .input-group > .form-control { border-radius: 8px 0 0 8px; }
body#authentication #login-form .input-group-append .btn,
body#authentication #customer-form .input-group-append .btn {
  height: 46px;
  min-width: 48px;
  padding: 0 14px;
  color: #6b7280;
  background: #fff;
  border: 1px solid #cdd2d9;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  box-shadow: none;
}
body#authentication #login-form .input-group-append .btn:hover,
body#authentication #customer-form .input-group-append .btn:hover { color: #e30714; background: #fafafa; }

body#authentication #content .forgot-password { margin: -6px 0 0; padding: 0 0 4px; text-align: right; font-size: 13px; }
body#authentication #content .forgot-password a { color: #6b7280; text-decoration: none; }
body#authentication #content .forgot-password a:hover { color: #e30714; text-decoration: underline; }

/* ---------- кнопка ---------- */
body#authentication #login-form .form-footer,
body#authentication #customer-form .form-footer { margin: 0; padding: 14px 0 26px; }
body#authentication #login-form .form-footer .btn-primary,
body#authentication #customer-form .form-footer .btn-primary {
  display: block;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 700;
  line-height: 46px;
  text-transform: none;
  letter-spacing: 0;
  color: #fff;
  background: #e30714;
  border: 1px solid #e30714;
  border-radius: 8px;
  box-shadow: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
body#authentication #login-form .form-footer .btn-primary:hover,
body#authentication #login-form .form-footer .btn-primary:focus,
body#authentication #customer-form .form-footer .btn-primary:hover,
body#authentication #customer-form .form-footer .btn-primary:focus { color: #fff; background: #c2060f; border-color: #c2060f; }

/* ---------- «Вы кто?»: варианты кнопками ---------- */
body#authentication .sokol-ct { margin-top: 0; }
body#authentication .sokol-ct .sokol-ct__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}
body#authentication .sokol-ct .sokol-ct__item { position: relative; display: inline-flex; gap: 0; margin: 0; }
body#authentication .sokol-ct .sokol-ct__item input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  -webkit-appearance: none;
  appearance: none;
}
body#authentication .sokol-ct .sokol-ct__item span {
  display: block;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.25;
  color: #3a3f47;
  background: #fff;
  border: 1px solid #cdd2d9;
  border-radius: 20px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
body#authentication .sokol-ct .sokol-ct__item:hover span { border-color: #9aa1ac; background: #f7f8f9; }
body#authentication .sokol-ct .sokol-ct__item input:checked + span {
  color: #b3050f;
  background: #fdeced;
  border-color: #e30714;
  box-shadow: inset 0 0 0 1px #e30714;
}
body#authentication .sokol-ct .sokol-ct__item input:focus-visible + span { box-shadow: 0 0 0 3px rgba(227, 7, 20, 0.2); }
body#authentication .sokol-ct .sokol-ct__item input:checked:focus-visible + span { box-shadow: inset 0 0 0 1px #e30714, 0 0 0 3px rgba(227, 7, 20, 0.2); }
body#authentication .sokol-ct.has-error .sokol-ct__list { outline: 0; }
body#authentication .sokol-ct.has-error .sokol-ct__item span { border-color: #e30714; }
body#authentication .sokol-ct.has-error > label { color: #c2060f; }

/* ---------- телефон ---------- */
@media (max-width: 575px) {
  body#authentication #content-wrapper .page-title { font-size: 22px; margin: 4px 0 16px; }
  body#authentication #content.page-content { margin-bottom: 32px; border-radius: 10px; }
  body#authentication .login-form,
  body#authentication .register-form { padding: 22px 18px 4px; }
  body#authentication .sokol-ct .sokol-ct__item span { padding: 10px 14px; font-size: 14px; }
}

/* ---------- ошибки скрытых полей (телефон и т.п.) ---------- */
body#authentication .sokol-ct-errors,
body#identity .sokol-ct-errors { margin: 0 0 18px; padding: 12px 14px; border-radius: 8px; font-size: 13.5px; }
body#authentication .sokol-ct-errors ul,
body#identity .sokol-ct-errors ul { margin: 6px 0 0; padding-left: 18px; }
body#authentication #notifications .alert { border-radius: 8px; max-width: 520px; margin: 0 auto 16px; }

/* ---------- страница «Спасибо за регистрацию» ---------- */
.sokol-thx {
  max-width: 560px;
  margin: 8px auto 56px;
  padding: 36px 36px 30px;
  text-align: center;
  background: #fff;
  border: 1px solid #e2e5ea;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(22, 26, 34, 0.07);
}
.sokol-thx__icon {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #e8f6ee;
}
.sokol-thx__icon:after {
  content: "";
  position: absolute;
  left: 22px;
  top: 14px;
  width: 18px;
  height: 30px;
  border: solid #1f9d55;
  border-width: 0 4px 4px 0;
  transform: rotate(45deg);
}
.sokol-thx__title { margin: 0 0 10px; font-size: 26px; font-weight: 700; line-height: 1.25; color: #2b2f36; }
.sokol-thx__lead { margin: 0 0 24px; font-size: 15px; line-height: 1.5; color: #4b5260; }
.sokol-thx__steps { margin: 0 0 20px; padding: 18px 20px 6px; text-align: left; background: #f6f7f9; border-radius: 10px; }
.sokol-thx__steps-title { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6b7280; }
.sokol-thx__steps ol { margin: 0; padding: 0; list-style: none; counter-reset: sokol-thx; }
.sokol-thx__steps li { position: relative; margin: 0 0 14px; padding-left: 38px; font-size: 14.5px; line-height: 1.5; color: #3a3f47; counter-increment: sokol-thx; }
.sokol-thx__steps li:before {
  content: counter(sokol-thx);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  font-size: 13px;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
  color: #fff;
  background: #e30714;
  border-radius: 50%;
}
.sokol-thx__phone { font-weight: 700; white-space: nowrap; color: #2b2f36; }
.sokol-thx__note { margin: 0 0 22px; font-size: 14px; line-height: 1.5; color: #4b5260; }
.sokol-thx__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 18px; }
.sokol-thx__btn {
  display: inline-block;
  min-width: 180px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: #2b2f36;
  background: #fff;
  border: 1px solid #cdd2d9;
  border-radius: 8px;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.sokol-thx__btn:hover { color: #e30714; border-color: #e30714; text-decoration: none; }
.sokol-thx a.sokol-thx__btn,
.sokol-thx a.sokol-thx__btn:link,
.sokol-thx a.sokol-thx__btn:visited { color: #2b2f36 !important; }
.sokol-thx a.sokol-thx__btn:hover { color: #e30714 !important; }
.sokol-thx a.sokol-thx__btn--primary,
.sokol-thx a.sokol-thx__btn--primary:link,
.sokol-thx a.sokol-thx__btn--primary:visited,
.sokol-thx a.sokol-thx__btn--primary:hover,
.sokol-thx a.sokol-thx__btn--primary:focus { color: #fff !important; background: #e30714; border-color: #e30714; }
.sokol-thx a.sokol-thx__btn--primary:hover { background: #c2060f; border-color: #c2060f; }
.sokol-thx__contacts { margin: 0; font-size: 13.5px; color: #6b7280; }
.sokol-thx__contacts a { color: #2b2f36; font-weight: 700; white-space: nowrap; }
@media (max-width: 575px) {
  .sokol-thx { padding: 28px 18px 22px; }
  .sokol-thx__title { font-size: 22px; }
  .sokol-thx__btn { flex: 1 1 100%; }
}
