.modal-login,
.modal-register {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.captcha-container {
  display: flex !important;
  justify-content: flex-start !important; /* сдвигает iframe влево */
  margin-top: 10px;
  margin-bottom: 15px;
}

/* Сдвигаем iframe немного левее внутри контейнера */
.captcha-container iframe {
  margin-left: 0 !important;
}
/* Контейнер модалки входа */
.modal-login-content {
    background-color: #fff;
    margin: 8% auto;
    padding: 30px 40px;
    border: 1px solid #ccc;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

/* Контейнер модалки регистрации */
.modal-register-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 30px 40px;
    border: 1px solid #ccc;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

/* Кнопка закрытия */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* Заголовки */
.modal-login-content h2,
.modal-register-content h2 {
    margin-top: 0;
    font-size: 24px;
    text-align: center;
    color: #333;
}

/* Стили форм */
.modal-login-content form,
.modal-register-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-login-content label,
.modal-register-content label {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.modal-login-content input,
.modal-register-content input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
}

/* Кнопки */
.modal-login-content button,
.modal-register-content button {
    padding: 10px;
    background-color: #00a86b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button-link {
    display: block;
    width: 100%;
    padding: 10px;
    display: inline-block;
    padding: 10px;
    background-color: #00a86b;
    color: white !important;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none !important;
    transition: background-color 0.3s ease;
    text-align: center;
}

.button-link:hover {
    background-color: #008f5f;
}

.modal-login-content button:hover,
.modal-register-content button:hover {
    background-color: #008f5f;
}

/* Ссылки и текст */
.modal-login-content p,
.modal-register-content p {
    text-align: center;
    font-size: 14px;
}

.modal-login-content a,
.modal-register-content a {
    color: #00a86b;
    text-decoration: none;
    font-weight: bold;
}

.modal-login-content a:hover,
.modal-register-content a:hover {
    text-decoration: underline;
}

/* Ошибки */
.modal-register-content ul {
    padding: 10px;
    color: red;
    font-size: 13px;
    list-style-type: none;
}

/* Анимация */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Модалка для выхода */
.modal_escape {
  display: none; /* по умолчанию скрыто */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5); /* полупрозрачный тёмный фон */
}

/* Содержимое модалки */
.modal_escape-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px 30px;
  border-radius: 16px; /* закруглённые края */
  width: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
}

/* Кнопка закрытия */
.modal_escape-content .close {
  position: absolute;
  right: 16px;
  top: 12px;
  font-size: 24px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
}

.modal_escape-content .close:hover {
  color: #000;
}

/* Кнопки внутри формы */
.modal_escape-content button {
  padding: 10px 16px;
  margin: 10px 5px 0 0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.modal_escape-content button[type="submit"] {
  background-color: #e53935;
  color: white;
}

.modal_escape-content .cancel-logout {
  background-color: #ccc;
  color: #333;
}
.form-errors {
    margin-top: 10px;
    color: red;
    background-color: #ffe5e5;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
}

.error-text {
    margin: 0;
}

.password-container {
    position: relative;
    width: 100%;
}

.password-container input {
    width: 100%;
    padding-right: 40px; /* место для иконки */
    box-sizing: border-box;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    user-select: none;

}




.confirmation-container {
    max-width: 400px;
    margin: 50px auto;
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', sans-serif;
}

.confirmation-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

.confirmation-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.confirmation-container input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.3s;
}

.confirmation-container input[type="text"]:focus {
    border-color: #007bff;
    outline: none;
}

.confirmation-container button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.confirmation-container button:hover {
    background-color: #0056b3;
}










/* Затемнение фона */
.modal-category {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  transition: opacity 0.3s ease;
}

/* Показываем при открытии */
.modal-category.open {
  display: block;
}

/* Сама панель категорий */
.modal-content-category {
  position: absolute;
  top: 0;
  left: 0;
  width: 320px;
  height: 100%;
  background-color: #fff;
  padding: 20px 16px;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0,0,0,0.2);
  animation: slideIn 0.3s ease forwards;
}

/* Анимация выезда слева */
@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Заголовок и кнопка закрытия */
.modal-content-category h2 {
  font-size: 20px;
  margin: 0 0 16px;
  font-weight: 600;
}

.modal-content-category .close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  cursor: pointer;
  color: #888;
}

.modal-content-category .close:hover {
  color: #000;
}

/* Список категорий */
.category-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.category-list > li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 16px;
  font-weight: 500;
}

.category-list a {
  text-decoration: none;
  color: #333;
  display: block;
  transition: color 0.2s;
}

.category-list a:hover {
  color: #ff0066;
}

/* Подкатегории */
.category-list ul {
  padding-left: 15px;
  margin-top: 8px;
}

.category-list ul li {
  padding: 6px 0;
  font-weight: 400;
  font-size: 15px;
}
.category-item {
  cursor: pointer;
  position: relative;
  padding-right: 20px;
}

.category-header {
  position: relative;
  padding-right: 20px;
}

.category-header .arrow {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-size: 12px;
  transition: transform 0.3s;
}

.category-item.open .category-header .arrow {
  transform: translateY(-50%) rotate(180deg);
}

.category-header .arrow::after {
  content: '▼';
}

.subcategories {
  display: none;
  padding-left: 15px;
  margin-top: 6px;
}

.subcategories.show {
  display: block;
}

.modal-reset-password {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

/* Модалка восстановления пароля (подобно логину/регистрации) */
.modal-reset-password,
.modal-reset-password-confirm {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.modal-reset-password-content,
.modal-reset-password-confirm-content {
    background-color: #fff;
    margin: 8% auto;
    padding: 30px 40px;
    border: 1px solid #ccc;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

/* Кнопка закрытия */
.modal-reset-password-content .close,
.modal-reset-password-confirm-content .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-reset-password-content .close:hover,
.modal-reset-password-confirm-content .close:hover {
    color: #000;
}

/* Заголовки */
.modal-reset-password-content h2,
.modal-reset-password-confirm-content h2 {
    margin-top: 0;
    font-size: 24px;
    text-align: center;
    color: #333;
}

/* Стили формы */
.modal-reset-password-content form,
.modal-reset-password-confirm-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-reset-password-content label,
.modal-reset-password-confirm-content label {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.modal-reset-password-content input,
.modal-reset-password-confirm-content input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
}

/* Кнопки */
.modal-reset-password-content button,
.modal-reset-password-confirm-content button {
    padding: 10px;
    background-color: #00a86b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-reset-password-content button:hover,
.modal-reset-password-confirm-content button:hover {
    background-color: #008f5f;
}

/* Ссылки */
.modal-reset-password-content p,
.modal-reset-password-confirm-content p {
    text-align: center;
    font-size: 14px;
}

.modal-reset-password-content a,
.modal-reset-password-confirm-content a {
    color: #00a86b;
    text-decoration: none;
    font-weight: bold;
}

.modal-reset-password-content a:hover,
.modal-reset-password-confirm-content a:hover {
    text-decoration: underline;
}
.confirmation-container form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* расстояние между всеми полями и кнопкой */
}

.confirmation-container label {
    font-weight: bold;
    font-size: 18px;
    color: #333;
}

.confirmation-container input[type="password"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.confirmation-container button {
    padding: 10px;
    background-color: #00a86b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.confirmation-container button:hover {
    background-color: #008f5f;
}

/* Дополнительно можно добавить небольшой margin сверху кнопки, если gap не подходит */
.confirmation-container button {
    margin-top: 10px;
}
.sms-example {
    display: block;           /* убираем лишние отступы снизу */
    width: 100%;              /* занимает всю ширину родителя */
    max-width: 300px;         /* максимальная ширина */
    height: auto;             /* сохраняет пропорции */
    max-height: 200px;        /* не будет слишком высокой */
    margin: 10px 0;           /* небольшой отступ сверху и снизу */
    object-fit: contain;      /* масштабирует изображение, не обрезая */
    border-radius: 8px;       /* по желанию: скругленные края */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* аккуратная тень */
}


.switch-to-register {
    margin-bottom: 15px
}

/* Адаптив */
@media (max-width: 480px) {
    .modal-reset-password-content,
    .modal-reset-password-confirm-content {
        width: 280px !important;
        padding: 20px !important;
        margin: 10% auto !important;
    }
}
