/* JutSu: совместимость стилей Jutnew со стилями движка (bootstrap). Подключается последним. */
.wrapper > header .container, .content.container, footer.footer .container { padding-left: 0; padding-right: 0; }
.content.container { max-width: 1050px; }
html[data-bs-theme=dark] body { --bs-body-bg: #1f1f1f; --bs-body-color: #efeff3; --bs-link-color: #accaa6; --bs-link-color-rgb: 172,202,166; --bs-link-hover-color: #fff; --bs-primary: #84a57d; --bs-primary-rgb: 132,165,125; --bs-secondary-bg: #363a37; --bs-tertiary-bg: #2b2f2c; --bs-border-color: rgb(255 255 255 / 12%); --bs-body-font-family: "Geologica", system-ui, sans-serif; }
main .card { --bs-card-bg: #363a37; --bs-card-border-color: transparent; border-radius: 12px; }
main .btn-primary { --bs-btn-bg: #accaa6; --bs-btn-border-color: #accaa6; --bs-btn-color: #1f1f1f; --bs-btn-hover-bg: #c2dcbd; --bs-btn-hover-border-color: #c2dcbd; --bs-btn-hover-color: #1f1f1f; }
main .form-control, main .form-select { background-color: #212722; border-color: #2f3a31; color: #efeff3; }
.jsw-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 20px; }
.jsw-pages a, .jsw-pages span { min-width: 38px; padding: 8px 12px; border-radius: 12px; background: #363a37; text-align: center; }
.jsw-pages span:not(.nav_ext) { background: #accaa6; color: #1f1f1f; font-weight: 600; }
.jsw-pages .nav_ext { background: none; }
.unit-rating { padding: 0; margin: 0 auto; }
.unit-rating li { list-style: none; }
.jsw-search-page { display: flex; align-items: center; max-width: 560px; background-color: #212722; box-shadow: 1px 1px 0 0 #1f1f1f, inset 1px 1px 1px #606661; border-radius: 12px; padding: 3px; }
.jsw-search-page > .bi-search { color: #777e89; font-size: 18px; margin-left: 15px; }
.jsw-search-page input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); margin-left: 15px; font: inherit; }
.jsw-search-page button { background: linear-gradient(to bottom, #8c9d68 0%, #223222 100%); box-shadow: inset 0 1px 2px 0 #ffffff1f; padding: 10px 20px; font-size: 14px; border-radius: 10px; color: #fff; }
.jsw-guest > div { display: none !important; }

/* иконки, которых нет в подмножестве bootstrap-icons.used.css (шрифт полный) */
.bi-bell::before{content:"\f18a"}.bi-sliders::before{content:"\f56b"}.bi-collection-play::before{content:"\f2cb"}
.bi-envelope::before{content:"\f32f"}.bi-lock::before{content:"\f47b"}.bi-person-plus::before{content:"\f4dd"}.bi-box-arrow-in-right::before{content:"\f1be"}

/* ===== страницы входа / регистрации / восстановления ===== */
.jsw-auth-page .speedbar { display: none; }
.jsw-auth {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  max-width: 880px; margin: 10px auto 60px; border-radius: 20px; overflow: hidden;
  background: var(--bg2); box-shadow: 0 20px 60px rgb(0 0 0 / 45%), inset 0 1px 0 #ffffff14;
}
.jsw-auth--single { grid-template-columns: 1fr; max-width: 480px; }
.jsw-auth__art {
  position: relative; padding: 40px 34px; color: #fff;
  background: radial-gradient(120% 90% at 0% 0%, #4e6b45 0%, transparent 55%), radial-gradient(90% 80% at 100% 100%, #7a2a45 0%, transparent 60%), linear-gradient(160deg, #2c3a2d, #1c241d);
}
.jsw-auth__art::after { content: ""; position: absolute; inset: 0; background: url(/templates/Jutnew/images/bg.jpg) center / cover; opacity: .08; pointer-events: none; }
.jsw-auth__art-inner { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; }
.jsw-auth__logo { width: 200px; height: auto; margin-bottom: 28px; filter: drop-shadow(0 4px 14px rgb(0 0 0 / 40%)); }
.jsw-auth__perks { list-style: none; display: grid; gap: 14px; font-size: 14px; line-height: 1.4; }
.jsw-auth__perks li { display: flex; gap: 12px; align-items: flex-start; }
.jsw-auth__perks i { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: rgb(255 255 255 / 10%); color: var(--color1); font-size: 15px; }
.jsw-auth__hero { margin-top: auto; align-self: flex-end; width: 150px; height: auto; opacity: .95; filter: drop-shadow(0 8px 20px rgb(0 0 0 / 45%)); }
.jsw-auth__panel { padding: 34px 38px 30px; }
.jsw-auth__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: #1f231f; box-shadow: inset 1px 1px 1px #00000055; margin-bottom: 26px; }
.jsw-auth__tabs a { text-align: center; padding: 10px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--text3); transition: .2s; }
.jsw-auth__tabs a:hover { color: #fff; }
.jsw-auth__tabs a.active { background: var(--color1); color: #1f1f1f; box-shadow: 0 4px 14px rgb(172 202 166 / 25%); }
.jsw-auth__icon { width: 56px; height: 56px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 16px; background: rgb(172 202 166 / 15%); color: var(--color1); font-size: 24px; }
.jsw-auth--single .jsw-auth__title, .jsw-auth--single .jsw-auth__sub { text-align: center; }
.jsw-auth__title { font-size: 26px; font-weight: 700; margin: 0 0 8px; }
.jsw-auth__sub { color: var(--text3); font-size: 14px; line-height: 1.5; margin-bottom: 22px; }
.jsw-auth__google {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 13px 16px;
  border-radius: 12px; background: #fff; color: #1f1f1f; font-weight: 600; font-size: 15px; transition: transform .15s, box-shadow .15s;
}
.jsw-auth__google:hover { color: #1f1f1f; transform: translateY(-1px); box-shadow: 0 8px 22px rgb(0 0 0 / 35%); }
.jsw-auth__google .bi { color: #4285f4; font-size: 18px; }
.jsw-auth__or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text3); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.jsw-auth__or::before, .jsw-auth__or::after { content: ""; flex: 1; height: 1px; background: rgb(255 255 255 / 12%); }
.jsw-auth__error { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 16px; border-radius: 12px; background: rgb(239 95 95 / 12%); border: 1px solid rgb(239 95 95 / 35%); color: #ffb4b4; font-size: 14px; }
.jsw-auth__form { display: grid; gap: 14px; }
.jsw-field { position: relative; display: block; }
.jsw-field input {
  width: 100%; height: 54px; padding: 20px 44px 6px 46px; border-radius: 12px; font: inherit; font-size: 15px; color: var(--text);
  background: #1f231f; border: 1px solid #3a463b; box-shadow: inset 1px 1px 2px #00000055; transition: border-color .2s, box-shadow .2s;
}
.jsw-field input:focus { outline: 0; border-color: var(--color2); box-shadow: 0 0 0 3px rgb(132 165 125 / 25%); }
.jsw-field input:user-invalid { border-color: #ef5f5f; }
.jsw-field__icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #7d8a7e; font-size: 17px; pointer-events: none; }
.jsw-field__label { position: absolute; left: 46px; top: 50%; transform: translateY(-50%); color: #8b938c; font-size: 15px; pointer-events: none; transition: .15s; }
.jsw-field input:focus + .jsw-field__label, .jsw-field input:not(:placeholder-shown) + .jsw-field__label { top: 15px; font-size: 11px; color: var(--color1); }
.jsw-field__hint { margin: -8px 0 0 4px; font-size: 12px; color: #8b938c; }
.jsw-auth__eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 9px; color: #8b938c; display: grid; place-items: center; cursor: pointer; }
.jsw-auth__eye:hover { color: #fff; background: rgb(255 255 255 / 6%); }
.jsw-auth__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.jsw-auth__link, .jsw-auth__switch a, .jsw-check a { color: var(--color1); }
.jsw-auth__link:hover, .jsw-auth__switch a:hover { color: #fff; }
.jsw-check { position: relative; display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text2); line-height: 1.4; }
.jsw-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.jsw-check span { flex: none; width: 20px; height: 20px; border-radius: 6px; background: #1f231f; border: 1px solid #4a574b; display: grid; place-items: center; transition: .15s; }
.jsw-check input:checked + span { background: var(--color1); border-color: var(--color1); }
.jsw-check input:checked + span::after { content: ""; width: 10px; height: 6px; border: 2px solid #1f1f1f; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.jsw-check input:focus-visible + span { box-shadow: 0 0 0 3px rgb(132 165 125 / 35%); }
.jsw-check--terms { font-size: 13px; }
.jsw-auth__submit {
  display: block; width: 100%; padding: 15px; border-radius: 12px; text-align: center; font-weight: 700; font-size: 15px; color: #fff; cursor: pointer;
  background: linear-gradient(to bottom, #8c9d68 0%, #3d5a3a 100%); box-shadow: inset 0 1px 2px #ffffff2e, 0 8px 20px rgb(0 0 0 / 30%); transition: filter .15s, transform .15s;
}
.jsw-auth__submit:hover { filter: brightness(1.1); color: #fff; transform: translateY(-1px); }
.jsw-auth__submit[disabled] { opacity: .7; cursor: progress; transform: none; }
.jsw-auth__submit.is-loading::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: jsw-spin .7s linear infinite; }
@keyframes jsw-spin { to { transform: rotate(360deg); } }
.jsw-auth__submit--link { word-break: break-all; }
.jsw-auth__switch { margin-top: 20px; text-align: center; color: var(--text3); font-size: 14px; }
@media (max-width: 860px) {
  .jsw-auth { grid-template-columns: 1fr; margin-top: 0; border-radius: 16px; }
  .jsw-auth__art { padding: 22px 22px 18px; }
  .jsw-auth__logo { width: 150px; margin-bottom: 14px; }
  .jsw-auth__perks { grid-template-columns: 1fr 1fr; gap: 10px; font-size: 12px; }
  .jsw-auth__perks i { width: 26px; height: 26px; font-size: 13px; }
  .jsw-auth__hero { display: none; }
  .jsw-auth__panel { padding: 24px 20px; }
  .jsw-auth__title { font-size: 22px; }
}
