/* ===========================================================================
   ГОСТЕВЫЕ СТРАНИЦЫ (вход, регистрация): шапка и окно формы.
   Подключается из guest_bar.php. Всё привязано к .gh-* и body.guest-page /
   .guest-card — на страницы кабинета не влияет.
   =========================================================================== */

/* --- Шапка: тот же «объёмный» вид, что у .header-wrapper в кабинете --- */
.gh-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
  background: linear-gradient(180deg, #1e2d45 0%, #131e30 40%, #0a111c 100%);
  border-bottom: 1px solid #a58d5f;
  box-shadow: 0 8px 24px rgba(0,0,0,.6), 0 2px 0 rgba(0,0,0,.6);
}
.gh-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 58px; padding: 0 18px;
  background:
    radial-gradient(220px 60px at 70px 50%, rgba(102,181,255,.18), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0) 60%);
  box-shadow: inset 0 1px 0 rgba(160,200,255,.22);
}
.gh-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.gh-logo img {
  height: 40px; width: auto;
  filter: drop-shadow(0 0 10px rgba(102,181,255,.55)) drop-shadow(0 2px 3px rgba(0,0,0,.8));
}
.gh-links { display: flex; align-items: center; gap: 8px; }
.gh-link {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 14px; border-radius: 9px;
  background: linear-gradient(180deg, rgba(46,64,92,.85), rgba(16,23,36,.92));
  border: 1px solid rgba(127,178,255,.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), inset 0 -2px 4px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.45);
  color: #d6e3f5; font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap;
  text-decoration: none; text-shadow: 0 1px 2px rgba(0,0,0,.7);
  transition: border-color .15s, color .15s, box-shadow .15s;
}
.gh-link img { width: 18px; height: 18px; object-fit: contain; }
.gh-link i { font-size: 16px; color: #8fb6e6; }
.gh-link:hover {
  border-color: #66b5ff; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -2px 4px rgba(0,0,0,.45), 0 0 12px rgba(102,181,255,.4);
}
.gh-link.is-active {
  border-color: rgba(165,141,95,.9); color: #f1e3c2;
  background: linear-gradient(180deg, rgba(70,60,40,.85), rgba(26,22,14,.92));
}
.gh-link.is-active i { color: #d9c08a; }

/* Отступ страницы под шапку (в style.css он рассчитан на шапку кабинета с меню) */
body.guest-page { padding-top: 84px; }

@media (min-width: 992px) {
  .gh-bar {
    left: 14px; right: 14px;
    border: 1px solid rgba(127,178,255,.22); border-top: 0; border-bottom: 1px solid #a58d5f;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 14px 34px rgba(0,0,0,.7), 0 4px 10px rgba(0,0,0,.5), 0 0 24px rgba(60,140,255,.08);
  }
  .gh-inner { border-radius: 0 0 16px 16px; }
}
@media (max-width: 575.98px) {
  .gh-inner { height: 50px; padding: 0 10px; gap: 8px; }
  .gh-logo img { height: 30px; }
  .gh-links { gap: 5px; }
  .gh-link { height: 32px; padding: 0 9px; font-size: 12.5px; }
  .gh-link img, .gh-link i { display: none; }
  body.guest-page { padding-top: 66px; }
}

/* --- Окно формы (вход, регистрация) --- */
body.guest-page .guest-wrap {
  max-width: 520px; margin-top: 1.25rem !important; margin-bottom: 2rem;
  box-shadow: none !important;
}
.guest-card {
  position: relative; flex: 0 0 100%; width: 100%; max-width: 100%;
  padding: 26px 30px 20px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(30,45,69,.92), rgba(12,19,31,.95));
  border: 1px solid rgba(127,178,255,.22);
  box-shadow: 0 14px 34px rgba(0,0,0,.65), 0 4px 10px rgba(0,0,0,.45), inset 0 1px 0 rgba(160,200,255,.14);
}
.guest-card::before {
  content: ''; position: absolute; left: 22px; right: 22px; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #a58d5f, transparent);
}
.guest-card h2 {
  margin: 0 0 18px !important; color: #eaf1fb !important;
  font-size: 1.4rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0,0,0,.7);
}
.guest-card .form-group { margin-bottom: 12px; }
.guest-card label {
  margin-bottom: 4px; color: #8b9bb0;
  font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.guest-card .form-control {
  height: 42px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(36,53,70,.9)), rgba(30,32,45,.75);
  border: 1px solid rgba(150,190,255,.20); color: #e8eef9;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.45);
}
.guest-card .form-control::placeholder { color: #6f7f95; }
.guest-card .form-control:hover { border-color: rgba(120,170,255,.45); }
.guest-card .form-control:focus {
  border-color: #66b5ff; color: #fff;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.45), 0 0 0 2px rgba(102,181,255,.30);
}
/* строка «Запомнить пароль» */
.guest-card .form-group.p-3 { padding: 4px 0 !important; }
.guest-card input[type="checkbox"] { width: 16px; height: 16px; vertical-align: -3px; accent-color: #3b79b6; }
.guest-card input[type="checkbox"] + label {
  margin: 0 0 0 6px; color: #c9d6e8;
  font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none;
}
/* проверка Cloudflare по центру */
.guest-card .cf-turnstile { display: flex; justify-content: center; margin: 12px 0 6px; }
/* пустые абзацы-распорки из старой вёрстки регистрации */
.guest-card p.placeholder { display: none; }
.guest-card .d-flex.p-3 { padding: 10px 0 6px !important; }
/* кнопки формы и кнопка под формой (восстановление пароля) */
.guest-card form > .d-flex { margin-top: 10px; }
.guest-card > .d-flex { margin-top: 12px; }
/* «Зарегистрироваться»: высота как у кнопки «Войти» (.mu-btn), ширина — по тексту */
.guest-card #registration-form .mu-btn-long {
  aspect-ratio: auto; width: auto; white-space: nowrap;
  height: calc(clamp(85px, 13vw, 150px) * 2.2 / 7);
  min-width: clamp(85px, 13vw, 150px); padding: 0 1.3em;
}
/* подсказки под полями */
.guest-card small { font-size: 12px; }
.guest-card #password-req-hint { color: #8b9bb0 !important; }
.guest-card #textError { color: #9fc4ee !important; }
/* ссылки под формой */
.guest-card .row.mx-md-n5 {
  margin: 14px 0 0 !important; padding-top: 14px;
  border-top: 1px solid rgba(127,178,255,.14);
}
.guest-card .row.mx-md-n5 a { color: #9fc4ee; font-size: 14px; text-decoration: none; }
.guest-card .row.mx-md-n5 a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 575.98px) {
  body.guest-page .guest-wrap { padding-left: 12px; padding-right: 12px; }
  body.guest-page .guest-wrap > .row { margin-left: 0; margin-right: 0; }
  .guest-card { padding: 20px 16px 16px; border-radius: 14px; }
  .guest-card h2 { font-size: 1.2rem; }
}
