/* ==========================================================================
   1. ГЛОБАЛЬНЫЙ БАННЕР (РАБОТАЕТ НА ВСЕХ СТРАНИЦАХ)
   ========================================================================== */

/* Убрали .site-page-home, чтобы стили применялись ко всем страницам */
.banner {
  position: relative;
  display: block;
}

.banner img {
  display: block;
  width: 100%;
  height: auto;
}

.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.banner::after {
  content: 'eLEGALIUM';
  white-space: pre-wrap;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 8.8em;
  font-weight: normal;
  letter-spacing: 1.5px;
  line-height: 1.4;
  text-transform: uppercase;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

/* Адаптивные стили для текста в баннере (тоже глобальные) */
@media (max-width: 768px) {
  .banner::after {
    font-size: 4.5em;
    letter-spacing: 1px;
  }
}

@media (max-width: 480px) {
  .banner::after {
    font-size: 3em;
    letter-spacing: 0.5px;
    line-height: 1.3;
  }
}

/* ==========================================================================
   2. СЕТКА КАРТОЧЕК ДЛЯ КОЛЛЕКЦИЙ (ГЛОБАЛЬНО, ДЛЯ ВСЕХ СТРАНИЦ)
   ========================================================================== */

.block-itemSetShowcase .item-set-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  padding: 0 10px;
}

.block-itemSetShowcase .item-set {
  flex: 1 1 calc(25% - 20px);
  text-align: center;
  max-width: 300px;
  box-sizing: border-box;
}

.block-itemSetShowcase .item-set img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.block-itemSetShowcase .item-set:hover img {
  transform: scale(1.05);
}

.block-itemSetShowcase .item-set a {
  display: block;
  margin-top: 10px;
  text-decoration: none;
  color: #222;
  font-weight: 500;
  line-height: 1.3;
}

@media (max-width: 1024px) {
  .block-itemSetShowcase .item-set {
    flex: 1 1 calc(33.33% - 20px);
  }
}

@media (max-width: 768px) {
  .block-itemSetShowcase .item-set {
    flex: 1 1 calc(50% - 20px);
  }
}

@media (max-width: 480px) {
  .block-itemSetShowcase .item-set {
    flex: 1 1 100%;
  }
}

/* ==========================================================================
   3. СТИЛЬ ДЛЯ НОВОЙ КАРТОЧКИ ASSET (ТОЛЬКО ДЛЯ ГЛАВНОЙ СТРАНИЦЫ)
   ========================================================================== */

.site-page-home .assets {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  padding: 0 10px;
}

.site-page-home .asset {
  flex: 1 1 calc(25% - 20px);
  text-align: center;
  max-width: 300px;
  box-sizing: border-box;
}

.site-page-home .asset img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.site-page-home .asset:hover img {
  transform: scale(1.05);
}

.site-page-home .asset a {
  display: block;
  text-decoration: none;
}

.site-page-home .asset .link-title {
  display: block;
  margin-top: 10px;
  color: #222;
  font-weight: 500;
  line-height: 1.3;
}
/* ==========================================================================
   4. Адаптивная современная форма логина и регистрации
   ========================================================================== */
.block-login form,
.block-register form {
  max-width: 400px;
  margin: 60px auto;
  padding: 30px 40px;
  background: #ffffffee;
  border-radius: 12px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.block-login h1,
.block-register h1 {
  text-align: center;
  font-weight: 600;
  font-size: 1.6em;
  margin-bottom: 10px;
}

/* Контейнеры полей */
.block-login .field,
.block-register .field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

/* Метки полей */
.block-login .field-meta label,
.block-register .field-meta label {
  flex: 1 1 35%;
  font-weight: 600;
  color: #333;
  font-size: 0.95em;
  text-align: right;
}

/* Поля ввода */
.block-login .inputs input,
.block-register .inputs input {
  flex: 1 1 60%;
  padding: 10px 12px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.block-login .inputs input:focus,
.block-register .inputs input:focus {
  outline: none;
  border-color: #920b0b;
  box-shadow: 0 0 0 2px rgba(146, 11, 11, 0.25);
}

/* Кнопки */
.block-login input[type="submit"],
.block-register button[type="submit"] {
  background: #920b0b;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s ease;
}

.block-login input[type="submit"]:hover,
.block-register button[type="submit"]:hover {
  background: #b31717;
}

/* Центровка страницы */
.block-login,
.block-register {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Ссылки */
.block-login .forgot-password {
  text-align: center;
  margin-top: -10px;
  font-size: 0.9em;
}
.block-login .forgot-password a {
  color: #920b0b;
  text-decoration: none;
}
.block-login .forgot-password a:hover {
  opacity: 0.8;
}

/* ==========================================================================
   5. Адаптивность
   ========================================================================== */
@media (max-width: 768px) {
  .block-login .field,
  .block-register .field {
    flex-direction: column;
    align-items: stretch;
  }

  .block-login .field-meta label,
  .block-register .field-meta label {
    text-align: left;
    flex: none;
  }

  .block-login .inputs input,
  .block-register .inputs input {
    width: 100%;
  }
}
/* Контейнер каждого поля */
.block-login .field,
.block-register .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

/* Подписи полей */
.block-login label,
.block-register label {
  font-weight: 600;
  color: #222;
  font-size: 1rem;
  white-space: nowrap;
}

/* Поля ввода */
.block-login input[type="text"],
.block-login input[type="email"],
.block-login input[type="password"],
.block-register input[type="text"],
.block-register input[type="email"],
.block-register input[type="password"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.block-login input:focus,
.block-register input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Красивое размещение label и input в одну строку — для больших экранов */
@media (min-width: 992px) {
  .block-login .field,
  .block-register .field {
    flex-direction: row;
    align-items: center;
  }

  .block-login label,
  .block-register label {
    flex: 0 0 140px; /* ширина лейбла */
    text-align: right;
    margin-right: 15px;
  }

  .block-login input,
  .block-register input {
    flex: 1;
  }
}

/* Текст подсказок */
.field-description {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-left: 0;
  margin-top: 4px;
}

/* Контейнер формы */
.block-login form,
.block-register form {
  max-width: 600px;
  margin: 40px auto;
  padding: 40px 50px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

/* Кнопки */
.block-login input[type="submit"],
.block-register button[type="submit"] {
  width: 100%;
  padding: 12px;
  background: #800000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.25s ease;
}

.block-login input[type="submit"]:hover,
.block-register button[type="submit"]:hover {
  background: #a00000;
}
/* ==========================================================================
   6. СТРАНИЦА "ЗАБУЛИ ПАРОЛЬ" (FORGOT PASSWORD)
   ========================================================================== */

.block-anonymous form {
  max-width: 500px;
  margin: 60px auto;
  padding: 40px 50px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

/* Заголовок страницы */
h1 .title {
  display: block;
  text-align: center;
  font-weight: 700;
  font-size: 1.8rem;
  margin: 40px 0 20px;
  color: #222;
}

/* Поля формы */
.block-anonymous .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

/* Подпись */
.block-anonymous label {
  font-weight: 600;
  font-size: 1rem;
  color: #333;
}

/* Поле ввода */
.block-anonymous input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.block-anonymous input[type="email"]:focus {
  border-color: #920b0b;
  box-shadow: 0 0 0 3px rgba(146, 11, 11, 0.15);
  outline: none;
}

/* Кнопка */
.block-anonymous button.button {
  width: 100%;
  padding: 12px;
  background: #920b0b;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.25s ease;
}

.block-anonymous button.button:hover {
  background: #a41515;
}

/* Адаптивность */
@media (min-width: 992px) {
  .block-anonymous .field {
    flex-direction: row;
    align-items: center;
  }

  .block-anonymous label {
    flex: 0 0 120px;
    text-align: right;
    margin-right: 15px;
  }

  .block-anonymous input[type="email"] {
    flex: 1;
  }
}

/* ----------------------------- */
/* MIRADOR */
/* ----------------------------- */

/* Убираем ссылку "About Project Mirador" */
.mirador a[href*="projectmirador"],
.mirador .mirador2 {
    display: none !important;
}

