/* ========== ПЕРЕМЕННЫЕ ТЕМ ========== */
:root {
    /* Тёмная тема (по умолчанию) */
    --bg-body: #0a0a14;
    --bg-card: #11101f;
    --bg-input: #0a0a14;
    --border-color: #2a2350;
    --text-primary: #ffffff;
    --text-secondary: #b0a5d9;
    --text-muted: #8a7ab3;
    --accent: #9253c3;
    --accent-light: #c084fc;
    --accent-gradient: linear-gradient(135deg, #9253c3, #6a3d9e);
    --error: #ff8a8a;
    --success: #4ade80;
    --modal-bg: #11101f;
    --modal-border: #2a2350;
    --scrollbar-track: #1e1a2f;
    --scrollbar-thumb: #9253c3;
}

[data-theme="light"] {
    --bg-body: #f5f3ff;
    --bg-card: #ffffff;
    --bg-input: #f9f9ff;
    --border-color: #e0d6ff;
    --text-primary: #1a1a2e;
    --text-donate: #c9f1caf2;
    --text-secondary: #4a4a6a;
    --text-muted: #6c6c8a;
    --accent: #7c3aed;
    --accent-light: #a78bfa;
    --accent-gradient: linear-gradient(135deg, #7c3aed, #5b21b6);
    --error: #dc2626;
    --success: #10b981;
    --modal-bg: #ffffff;
    --modal-border: #e0d6ff;
    --scrollbar-track: #e9e4ff;
    --scrollbar-thumb: #7c3aed;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Futura PT', 'Segoe UI', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.4;
    transition: background 0.2s, color 0.2s;
}

/* ========== HERO BANNER С ДВИЖУЩЕЙСЯ КАРТИНКОЙ И АНИМАЦИЕЙ ПОЯВЛЕНИЯ ========== */
.hero-banner {
    position: relative;
    height: 65vh;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Анимированное фоновое изображение (уменьшенное масштабирование) */
.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/forsite21.png');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    z-index: 0;
    animation: slowDrift 25s ease-in-out infinite alternate;
    transform-origin: center;
}

/* Затемнение для читаемости текста */
.hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
    pointer-events: none;
}

/* Анимация движения фона (уменьшенный масштаб: +3% вместо +8%) */
@keyframes slowDrift {
    0% {
        transform: scale(1) translateX(0);
    }
    100% {
        transform: scale(1.03) translateX(-2%) translateY(-1%);
    }
}

/* Навбар – анимация появления сверху */
.navbar {
    position: relative;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    flex-wrap: wrap;
    gap: 1rem;
    background: transparent !important;
    animation: fadeInDown 0.6s ease forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* Меню навигации — элементы появляются с задержкой */
.nav-center {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
    animation: fadeSlideUp 0.5s ease 0.1s forwards;
    opacity: 0;
    transform: translateY(15px);
}

.nav-center a,
.nav-center .dropbtn {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    background: transparent;
    border: none;
    padding: 0.5rem 0;
    cursor: pointer;
    position: relative;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Подчёркивание при наведении */
.nav-center a::after,
.nav-center .dropbtn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.2s ease;
}

.nav-center a:hover::after,
.nav-center .dropbtn:hover::after,
.nav-center a.active::after {
    width: 100%;
}

/* Выпадающее меню */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    min-width: 180px;
    padding: 0.5rem 0;
    border: 1px solid rgba(255,255,255,0.2);
    z-index: 100;
}

.dropdown-content a {
    display: block;
    padding: 0.5rem 1.2rem;
    color: white;
    font-size: 0.9rem;
    text-shadow: none;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeUp 0.2s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Правая часть навбара (кнопки и тема) */
.nav-right {
    display: flex;
    gap: 1rem;
    align-items: center;
    animation: fadeSlideUp 0.5s ease 0.15s forwards;
    opacity: 0;
    transform: translateY(15px);
}

/* Ваши кнопки входа/регистрации (стили не меняем) */
.btn-outline-light {
    background: transparent;
    border: 1.5px solid white;
    border-radius: 40px;
    padding: 0.5rem 1.2rem;
    color: white;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s;
}
.btn-outline-light:hover {
    background: white;
    color: #9253c3;
}
.btn-solid-light {
    background: white;
    border: 1.5px solid white;
    border-radius: 40px;
    padding: 0.5rem 1.2rem;
    color: #9253c3;
    font-weight: 500;
    text-decoration: none;
}
.btn-solid-light:hover {
    background: transparent;
    color: white;
}

/* Кнопка переключения темы */
.theme-toggle {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 40px;
    padding: 0.45rem 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.2s;
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.05);
}

/* Центральный контент */
.banner-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
}

.banner-content {
    max-width: 650px;
    width: 100%;
    animation: fadeSlideUp 0.7s ease-out;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.greeting {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    margin-bottom: 0.5rem;
}

.random-text {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
    margin-bottom: 2rem;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(6px);
    display: inline-block;
    padding: 0.2rem 1.2rem;
    border-radius: 40px;
}

/* Группа кнопок — каждая кнопка появляется со своей задержкой */
.btn-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    max-width: 450px;
    margin: 0 auto;
}

.btn-primary-large {
    background: white;
    border: none;
    border-radius: 60px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 700;
    color: #5b21b6;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: fadeSlideUp 0.5s ease 0.2s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.btn-primary-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
    background: #faf5ff;
}

.btn-row {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.btn-half {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border-radius: 60px;
    padding: 8px 12px;
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.25);
    animation: fadeSlideUp 0.5s ease 0.3s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.btn-half:first-child {
    animation-delay: 0.3s;
}
.btn-half:last-child {
    animation-delay: 0.4s;
}

.btn-half:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero-banner {
        height: auto;
        min-height: 520px;
    }
    .navbar {
        flex-direction: column;
        align-items: center;
    }
    .nav-center {
        justify-content: center;
        gap: 1rem;
    }
    .greeting {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-right {
        width: 100%;
        justify-content: center;
    }
    .btn-row {
        flex-direction: column;
        gap: 0.6rem;
    }
    .btn-half {
        width: 100%;
    }
    .greeting {
        font-size: 1.6rem;
    }
    .random-text {
        font-size: 0.9rem;
    }
}







/* ========== СТИЛИ ДЛЯ НАВИГАЦИИ НА СТРАНИЦАХ БЕЗ БАННЕРА ========== */
.navbar-default {
    position: relative;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    flex-wrap: wrap;
    gap: 1rem;
    background: var(--bg-body);
}

.navbar-default .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    text-shadow: none;
}

.navbar-default .nav-center a,
.navbar-default .nav-center .dropbtn {
    color: var(--text-primary);
    text-shadow: none;
}

.navbar-default .nav-center a::after,
.navbar-default .nav-center .dropbtn::after {
    background: var(--accent);
}

/* Кнопки остаются как оригинальные (не переопределяем) */
/* Если нужно явно задать — используем те же стили, что и глобальные */
.navbar-default .btn-outline-light {
    background: transparent;
    border: 1.5px solid white;
    color: white;
}
.navbar-default .btn-outline-light:hover {
    background: white;
    color: #9253c3;
}
.navbar-default .btn-solid-light {
    background: white;
    border: 1.5px solid white;
    color: #9253c3;
}
.navbar-default .btn-solid-light:hover {
    background: transparent;
    color: white;
}

/* Для светлой темы на не-главной странице можно адаптировать */
[data-theme="light"] .navbar-default .btn-outline-light {
    border-color: var(--text-primary);
    color: var(--text-primary);
}
[data-theme="light"] .navbar-default .btn-outline-light:hover {
    background: var(--text-primary);
    color: var(--bg-body);
}
[data-theme="light"] .navbar-default .btn-solid-light {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--bg-body);
}
[data-theme="light"] .navbar-default .btn-solid-light:hover {
    background: transparent;
    color: var(--text-primary);
}/* ========== СТИЛИ ДЛЯ НАВИГАЦИИ НА СТРАНИЦАХ БЕЗ БАННЕРА ========== */
.navbar-default {
    position: relative;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    flex-wrap: wrap;
    gap: 1rem;
    background: var(--bg-body);
}

.navbar-default .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    text-shadow: none;
}

.navbar-default .nav-center a,
.navbar-default .nav-center .dropbtn {
    color: var(--text-primary);
    text-shadow: none;
}

.navbar-default .nav-center a::after,
.navbar-default .nav-center .dropbtn::after {
    background: var(--accent);
}

/* Кнопки остаются как оригинальные (не переопределяем) */
/* Если нужно явно задать — используем те же стили, что и глобальные */
.navbar-default .btn-outline-light {
    background: transparent;
    border: 1.5px solid white;
    color: white;
}
.navbar-default .btn-outline-light:hover {
    background: white;
    color: #9253c3;
}
.navbar-default .btn-solid-light {
    background: white;
    border: 1.5px solid white;
    color: #9253c3;
}
.navbar-default .btn-solid-light:hover {
    background: transparent;
    color: white;
}

/* Для светлой темы на не-главной странице можно адаптировать */
[data-theme="light"] .navbar-default .btn-outline-light {
    border-color: var(--text-primary);
    color: var(--text-primary);
}
[data-theme="light"] .navbar-default .btn-outline-light:hover {
    background: var(--text-primary);
    color: var(--bg-body);
}
[data-theme="light"] .navbar-default .btn-solid-light {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--bg-body);
}
[data-theme="light"] .navbar-default .btn-solid-light:hover {
    background: transparent;
    color: var(--text-primary);
}



/* ========== ДВИЖУЩАЯСЯ КАРТИНКА ДЛЯ СТРАНИЦ БЕЗ БАННЕРА ========== */
.navbar-default {
    position: relative;
    overflow: visible; /* чтобы картинка могла выходить за пределы */
    background: rgba(10, 10, 20, 0.5);
    backdrop-filter: blur(2px);
}

/* Базовый класс (тёмная тема по умолчанию) */
.navbar-default .scrolling-bg {
    position: absolute;
    top: -80px;
    left: 0;
    width: 200%;
    height: calc(100% + 80px + 128px);
    background-image: url('../images/header-mid-bl.webp');
    background-repeat: repeat-x;
    background-size: auto 80%;
    background-position: 0 0;
    opacity: 0.25;
    z-index: 0;
    animation: scrollBg 160s linear infinite;
    pointer-events: none;
}

/* Светлая тема (переопределяем картинку) */
html[data-theme="light"] .navbar-default .scrolling-bg {
    background-image: url('../images/header-mid-wh.webp');
    opacity: 0.35;
}

/* Тёмная тема (явно, для уверенности) */
html[data-theme="dark"] .navbar-default .scrolling-bg {
    background-image: url('../images/header-mid-bl.webp');
    opacity: 0.2;
}

/* Анимация движения справа налево */
@keyframes scrollBg {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Навигация поверх картинки */
.navbar-default .logo,
.navbar-default .nav-center,
.navbar-default .nav-right {
    position: relative;
    z-index: 2;
}





.main-content {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}
footer {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}
.fp-team {
    text-align: center;
    margin: 0 0 1rem;
    color: var(--accent-light);
}

/* ========== МОДАЛЬНОЕ ОКНО (БЕЗ ВНУТРЕННЕГО СКРОЛЛА) ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    overflow-y: auto;  /* скролл у самого модального окна */
}

.modal-content {
    background: var(--bg-card);
    margin: 2rem auto;
    width: 95%;
    max-width: 550px;  /* Уже, чтобы форма была компактной */
    border-radius: 32px;
    border: 1px solid var(--modal-border);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    animation: modalFadeIn 0.3s ease;
}

/* Убираем внутреннюю прокрутку */
.modal-body {
    padding: 0;
    overflow-y: visible;
    max-height: none;
}

.modal-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 8px;          /* отступ под блоком вкладок (по желанию) */
    padding: 0.5rem 1rem 12px;   /* увеличиваем нижний отступ до линии */
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    border-radius: 40px;
    transition: all 0.2s;
}

.tab-btn.active {
    color: var(--accent-light);
    background: rgba(146,83,195,0.1);
}

/* Загрузчик */
.loader {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}




/* ---------- Стили, относящиеся к блоку .u-section-2 ---------- */

/* Общие сбросы и нормализация */
*,
*:before,
*:after {
  box-sizing: border-box;
}
html {
  font-family: sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}
body {
  margin: 0;
  height: auto;
  min-height: 100%;
  overflow-x: clip;
}
section {
  position: relative;
}
.u-clearfix:after,
.u-clearfix:before {
  content: '';
  display: table;
}
.u-clearfix:after {
  clear: both;
}
.u-sheet {
  position: relative;
  margin: 0 auto;
}
@media (min-width: 1400px) {
  .u-sheet {
    width: var(--theme-sheet-width-xxl) !important;
  }
}
@media (min-width: 1200px) {
  .u-xl-mode .u-sheet {
    width: var(--theme-sheet-width-xl) !important;
  }
}
@media (min-width: 1200px) and (max-width: 1399px) {
  .u-xxl-mode .u-sheet {
    width: var(--theme-sheet-width-xl) !important;
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .u-sheet {
    width: var(--theme-sheet-width-lg) !important;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .u-sheet {
    width: var(--theme-sheet-width-md) !important;
  }
}
@media (min-width: 576px) and (max-width: 767px) {
  .u-sheet {
    width: var(--theme-sheet-width-sm) !important;
  }
}
@media (max-width: 575px) {
  .u-sheet {
    width: var(--theme-sheet-width-xs) !important;
  }
}
.u-expanded-width {
  width: 100% !important;
}
.u-expanded-width:not(.custom-expanded) {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.u-layout-wrap {
  display: flex;
  flex-direction: column;
}
.u-layout {
  display: flex;
  flex: 1 1 auto;
}
.u-layout-row {
  flex-direction: row;
  flex-wrap: wrap;
  min-height: fit-content;
  max-width: 100%;
  display: flex;
}
.u-layout-cell {
  position: relative;
  display: flex;
  background-clip: padding-box;
  background-origin: padding-box;
}
.u-container-layout {
  position: relative;
  flex: 1;
  max-width: 100%;
  transition-duration: inherit;
}
.u-valign-middle {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.u-layout-row > .u-size-30 {
  flex: 0 0 50%;
  max-width: 50%;
  min-width: 50%;
}
/* Общие стили для текста */
.u-text {
  word-wrap: break-word;
  position: relative;
}
.u-align-left {
  text-align: left;
}
.u-custom-font.u-font-ubuntu {
  font-family: 'Futura PT', sans-serif !important;
}
.u-text-grey-15 {
  color: #111111;
}
.u-text-grey-15 .u-svg-link {
  fill: #111111;
}
.u-text-grey-10 {
  color: #111111;
}
.u-text-grey-10 .u-svg-link {
  fill: #111111;
}
/* Стили для заголовков и параграфов */
h2 {
  font-family: 'Futura PT', sans-serif;
  font-weight: 400;
  font-size: 3rem;
  line-height: 1.1;
  margin-top: 20px;
  margin-bottom: 20px;
}
h2:not(.u-subtitle) {
  font-weight: 400;
  font-size: 3rem;
  line-height: 1.1;
  margin-top: 20px;
  margin-bottom: 20px;
}
p {
  margin-top: 0;
  padding: 0;
  margin-bottom: 0.5rem;
}
p:not(.u-text-variant) {
  font-size: 1.125rem;
  margin-top: 20px;
  margin-bottom: 20px;
  line-height: 1.6;
}
/* Стили для изображений */
.u-image {
  object-fit: cover;
  display: block;
  vertical-align: middle;
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  overflow: hidden;
}
.u-image-default {
  /* Обычно это означает display: inline-block; но в стилях не задано явно, оставляем как есть */
}
/* Стили для кастомных анимаций */
.new-img {
  border-radius: 15px;
  transition: transform 0.5s ease;
}
.new-img:hover {
  animation: swayTilt 4s ease-in-out infinite;
}
@keyframes swayTilt {
  0% {
    transform: scale(1) translateX(0) rotate(0deg);
  }
  10% {
    transform: scale(1.05) translateX(0) rotate(0deg);
  }
  25% {
    transform: scale(1.05) translateX(5px) rotate(2deg);
  }
  50% {
    transform: scale(1.05) translateX(-5px) rotate(-2deg);
  }
  75% {
    transform: scale(1.05) translateX(5px) rotate(2deg);
  }
  90% {
    transform: scale(1.05) translateX(0) rotate(0deg);
  }
  100% {
    transform: scale(1) translateX(0) rotate(0deg);
  }
}
/* Стили для сетки и отступов */
.u-gutter-0 .u-layout {
  margin: 0px;
}
.u-gutter-0 .u-layout .u-layout-cell {
  border: 0px solid transparent;
}
/* Специфичные для вашего блока (из медиа-блоков в конце CSS) */
.u-section-2 .u-sheet-1 {
  min-height: 837px;
}
.u-section-2 .u-custom-html-1 {
  margin-top: 1px;
  margin-bottom: 0;
  height: auto;
  min-height: 26px;
}
.u-section-2 .u-text-1 {
  font-weight: 700;
  letter-spacing: 1px;
  margin: 60px 50px 0;
}
.u-section-2 .u-layout-wrap-1 {
  margin-top: 42px;
  margin-bottom: 0;
}
.u-section-2 .u-layout-cell-1 {
  min-height: 304px;
}
.u-section-2 .u-container-layout-1 {
  padding: 30px;
}
.u-section-2 .u-text-2 {
  line-height: 0.8;
  letter-spacing: -1px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 15px 255px 0 27px;
}
.u-section-2 .u-text-3 {
  margin: 27px 60px 0 27px;
}
.u-section-2 .u-text-4 {
  font-size: 0.875rem;
  margin: 10px 132px 0 27px;
}
.u-section-2 .u-text-5 {
  line-height: 0.8;
  letter-spacing: -1px;
  font-size: 0.875rem;
  margin: 20px 356px 0 27px;
}
.u-section-2 .u-layout-cell-2 {
  min-height: 295px;
}
.u-section-2 .u-container-layout-2 {
  padding: 30px 0;
}
.u-section-2 .u-image-1 {
  height: 197px;
  width: 510px;
  margin: 0 auto 0 0;
}
/* Адаптивные стили для планшетов и мобильных */
@media (max-width: 1199px) {
  .u-section-2 .u-sheet-1 {
    min-height: 731px;
  }
  .u-section-2 .u-layout-cell-1 {
    min-height: 251px;
  }
  .u-section-2 .u-text-2 {
    margin-right: 182px;
    margin-left: 0;
  }
  .u-section-2 .u-text-3 {
    margin-right: 0;
    margin-left: 0;
  }
  .u-section-2 .u-text-4 {
    margin-right: 59px;
    margin-left: 0;
  }
  .u-section-2 .u-text-5 {
    margin-right: 283px;
    margin-left: 0;
  }
  .u-section-2 .u-layout-cell-2 {
    min-height: 243px;
  }
  .u-section-2 .u-image-1 {
    height: 182px;
    width: 470px;
  }
}
@media (max-width: 991px) {
  .u-section-2 .u-sheet-1 {
    min-height: 607px;
  }
  .u-section-2 .u-layout-cell-1 {
    min-height: 100px;
  }
  .u-section-2 .u-text-2 {
    margin-right: 72px;
  }
  .u-section-2 .u-text-4 {
    margin-right: 0;
  }
  .u-section-2 .u-text-5 {
    margin-right: 173px;
  }
  .u-section-2 .u-layout-cell-2 {
    min-height: 186px;
  }
  .u-section-2 .u-image-1 {
    height: 139px;
    width: 360px;
  }
}
@media (max-width: 767px) {
  .u-section-2 .u-sheet-1 {
    min-height: 996px;
  }
  .u-section-2 .u-container-layout-1 {
    padding-left: 10px;
    padding-right: 10px;
  }
  .u-section-2 .u-layout-cell-2 {
    min-height: 279px;
  }
}
@media (max-width: 575px) {
  .u-section-2 .u-sheet-1 {
    min-height: 786px;
  }
  .u-section-2 .u-text-2 {
    margin-right: 0;
  }
  .u-section-2 .u-text-5 {
    margin-right: 0;
  }
  .u-section-2 .u-layout-cell-2 {
    min-height: 176px;
  }
  .u-section-2 .u-image-1 {
    height: 131px;
    width: 340px;
  }
}
/* Общие стили для мобильной адаптации сетки */
@media (max-width: 767px) {
  .u-layout-wrap:not(.u-layout-custom-sm) .u-layout-row > * {
    min-width: 100%;
  }
  .u-layout-wrap:not(.u-layout-custom-sm) .u-layout {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .u-layout-wrap:not(.u-layout-custom-sm) .u-layout .u-layout-cell {
    border-left: 0 !important;
    border-right: 0 !important;
  }
}
@media (max-width: 575px) {
  .u-layout-wrap:not(.u-layout-custom-xs) .u-layout-row > * {
    min-width: 100%;
  }
  .u-layout-wrap:not(.u-layout-custom-xs) .u-layout {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .u-layout-wrap:not(.u-layout-custom-xs) .u-layout .u-layout-cell {
    border-left: 0 !important;
    border-right: 0 !important;
  }
}
/* Стили для цвета текста */
.u-text-grey-15 {
  color: #d9d9d9;
}
.u-text-grey-15 .u-svg-link {
  fill: #d9d9d9;
}
.u-text-grey-10 {
  color: #e5e5e5;
}
.u-text-grey-10 .u-svg-link {
  fill: #e5e5e5;
}
/* Сброс отступов для первого и последнего элементов в контейнере */
.u-container-layout > :first-child {
  margin-top: 0;
}
.u-container-layout > :last-child {
  margin-bottom: 0;
}
/* Дополнительные стили для валидного отображения изображений */
.u-image {
  overflow: hidden;
}
img.u-image {
  overflow: hidden;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 800px) {
    .navbar {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-right {
        justify-content: center;
    }
    .nav-center {
        justify-content: center;
    }
    .btn-primary-large {
        padding: 9px 20px;
    }
}



/* ========== ЭЙ ТЫ ЧЕ ========== */
/* ========== ОБЩИЙ КОНТЕЙНЕР (увеличен) ========== */
.login-custom-wrapper {
    max-width: 560px;   /* было 480px — блок стал чуть больше */
    margin: 0 auto;
    background: var(--bg-card, #ffffff);
    border-radius: 32px;
    padding: 40px 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(2px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-custom-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
}

/* ========== ЗАГОЛОВОК ========== */
.form-title {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
    animation: fadeInDown 0.5s ease;
}

/* ========== СТРОКИ ФОРМЫ ========== */
.form-row {
    margin-bottom: 24px;
    text-align: center;   /* центрируем содержимое */
    opacity: 0;
    animation: slideInUp 0.4s ease forwards;
}
.form-row:first-of-type {
    animation-delay: 0.1s;
}
.form-row:last-of-type {
    animation-delay: 0.2s;
}

/* ========== КОНТЕЙНЕР ПОЛЯ (ограничиваем ширину и центрируем) ========== */
.input-col-en {
    display: inline-block;    /* чтобы блок сжимался по содержимому */
    width: auto;
    min-width: 260px;        /* минимальная ширина, можно подогнать под свой вкус */
    max-width: 320px;        /* максимальная ширина — инпут становится заметно уже */
    margin: 0 auto;
}

/* ========== ПОЛЯ ВВОДА ========== */
.wide {
    width: 100%;             /* теперь ширина = 100% от родителя .input-col */
    padding: 12px 16px;      /* немного уменьшил внутренние отступы для аккуратности */
    font-size: 16px;
    background: var(--bg-input, #f8fafc);
    border: 2px solid var(--border-color, #e2e8f0);
    border-radius: 20px;
    color: var(--text-primary, #1e293b);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.wide:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.2);
    outline: none;
    transform: scale(1.01);
}

/* ========== ГЛАЗОК (ПОКАЗАТЬ/СКРЫТЬ ПАРОЛЬ) ========== */
.password-wrapper {
    position: relative;
    width: 100%;             /* теперь зависит от .input-col */
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    font-size: 20px;
    transition: color 0.2s, transform 0.1s;
    background: transparent;
    border: none;
    z-index: 2;
}

.toggle-password:hover {
    color: #a855f7;
    transform: translateY(-50%) scale(1.1);
}

/* ========== КНОПКА ВОЙТИ ========== */
.button-container {
    margin: 32px 0 20px;
    text-align: center;
}

.signupbtn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 60px;
    cursor: pointer;
    width: 80%;
    max-width: 280px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.3);
}

.signupbtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(168, 85, 247, 0.4);
    filter: brightness(1.02);
}

.signupbtn:active {
    transform: translateY(1px);
}

/* Ripple-эффект при клике */
.signupbtn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.signupbtn:active::after {
    width: 200%;
    height: 200%;
    opacity: 0;
}

/* ========== ССЫЛКИ ПОД ФОРМОЙ ========== */
.support-text {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    animation: fadeIn 0.5s ease 0.3s both;
}

.support-text a {
    color: #a855f7;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    position: relative;
    display: inline-block;
}

.support-text a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #a855f7;
    transition: width 0.2s ease;
}

.support-text a:hover {
    color: #9333ea;
}

.support-text a:hover::after {
    width: 100%;
}

/* ========== АНИМАЦИИ ========== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ ========== */
@media (max-width: 600px) {
    .login-custom-wrapper {
        padding: 30px 20px;
        margin: 0 15px;
        max-width: calc(100% - 30px);
    }
    .input-col {
        min-width: 220px;
        max-width: 280px;
    }
    .signupbtn {
        width: 100%;
        max-width: none;
    }
    .form-title {
        font-size: 26px;
    }
}


/* Стилизация системных сообщений DLE */
#info-block {
    background: #fef2f2;
    border-left: 4px solid #dc2626;
    padding: 12px 20px;
    border-radius: 16px;
    color: #991b1b;
    margin-bottom: 24px;
    font-size: 14px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

#info-block ul {
    margin: 0;
    padding-left: 20px;
    text-align: left;
    display: inline-block;
}

.custom-error {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
    color: #a51b1b;
    padding: 12px 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    animation: shake 0.3s ease-in-out;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}


.user-card {
  max-width: 500px;
  text-align: center;
  overflow: hidden;
}
.user-glow {
  position: absolute;
  top: -30%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle at center, rgba(139,92,246,0.2), transparent 70%);
  animation: rotateSlow 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.user-avatar {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
  z-index: 2;
}
.avatar-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #8b5cf6;
  box-shadow: 0 0 20px rgba(139,92,246,0.4);
}
.online-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  background: #4ade80;
  border-radius: 50%;
  border: 2px solid rgba(20,28,40,0.9);
}
.user-greeting {
  font-size: 26px;
  margin: 8px 0 4px;
  color: white;
  z-index: 2;
  position: relative;
}
.user-greeting span {
  background: linear-gradient(135deg, #c084fc, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.user-group {
  color: #94a3b8;
  font-size: 13px;
  margin-bottom: 24px;
}
.user-actions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  z-index: 2;
  position: relative;
}
.user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.07);
  border-radius: 40px;
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: 0.2s;
  border: 1px solid rgba(255,255,255,0.08);
}
.user-btn:hover {
  background: rgba(139,92,246,0.3);
  transform: translateY(-2px);
}
.user-btn.primary {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
}
.user-btn.admin {
  background: rgba(239,68,68,0.2);
  border-color: #ef4444;
}
.user-btn.logout {
  background: rgba(239,68,68,0.15);
  border-color: #ef4444;
}
.badge {
  background: #8b5cf6;
  border-radius: 20px;
  padding: 2px 7px;
  font-size: 10px;
  margin-left: 5px;
}
@media (max-width: 480px) {
  .user-card { padding: 32px 20px; }
  .user-btn { padding: 8px 14px; font-size: 12px; }
  .user-greeting { font-size: 22px; }
}












/* ========== МОДАЛЬНОЕ ОКНО ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(0,0,0,0.9), #0a0a1a);
    backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 460px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 48px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 30px 50px rgba(0,0,0,0.5);
    padding: 40px 32px;
    animation: modalFadeIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 28px;
    cursor: pointer;
    color: #94a3b8;
    transition: 0.2s;
}
.modal-close:hover {
    color: #f87171;
    transform: rotate(90deg);
}

.modal-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 28px;
}
.tab-btn {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 8px 24px;
    border-radius: 20px;
    cursor: pointer;
    color: #94a3b8;
    transition: 0.2s;
}
.tab-btn.active {
    background: rgba(139,92,246,0.2);
    color: #c084fc;
}

.loader {
    border: 3px solid rgba(255,255,255,0.2);
    border-top: 3px solid #8b5cf6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

/* ========== ФОРМА ЛОГИНА ========== */
.auth-form {
    max-width: 320px;
    margin: 0 auto;
}

.input-group {
    position: relative;
    margin-bottom: 28px;
}
.input-group input {
    width: 100%;
    padding: 16px 16px 6px 44px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 44px;
    font-size: 15px;
    color: white;
    outline: none;
    transition: 0.2s;
}
.input-group input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139,92,246,0.3);
}
.input-group label {
    position: absolute;
    left: 44px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
    transition: 0.2s;
}
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: 7px;
    font-size: 10px;
    color: #c084fc;
}
.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 16px;
}
.toggle-pwd {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 18px;
}
.twofa-field {
    overflow: hidden;
    transition: all 0.3s ease;
    max-height: 0;
}
.twofa-field.active {
    max-height: 100px;
    margin-bottom: 28px;
}
.auth-btn {
    width: 100%;
    background: linear-gradient(95deg, #8b5cf6, #6366f1);
    border: none;
    border-radius: 44px;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    margin: 20px 0 16px;
    transition: 0.25s;
}
.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139,92,246,0.4);
}
.auth-links {
    text-align: center;
    font-size: 13px;
}
.auth-links a {
    color: #94a3b8;
    text-decoration: none;
}
.auth-links a:hover {
    color: #c084fc;
}
.auth-links .sep {
    margin: 0 6px;
    color: #475569;
}
.auth-social {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 28px;
}
.social-btn {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.08);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    transition: 0.2s;
    text-decoration: none;
}
.social-btn.vk:hover { background: #4c75a3; transform: translateY(-3px); }
.social-btn.ya:hover { background: #ffcc00; color: #000; transform: translateY(-3px); }
.social-btn.google:hover { background: #db4437; transform: translateY(-3px); }

/* ========== УВЕДОМЛЕНИЯ ========== */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.notification {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(30,41,59,0.95);
    backdrop-filter: blur(12px);
    border-left: 3px solid;
    border-radius: 20px;
    padding: 12px 20px;
    color: white;
    font-weight: 500;
    animation: slideInRight 0.3s ease;
}
.notification.success { border-left-color: #4ade80; }
.notification.error { border-left-color: #f87171; }


/* Заголовок внутри модалки */
.auth-modal-title {
    text-align: center;
    font-size: 38px !important;
    font-weight: bold;
    letter-spacing: 2px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0 0 24px 0;
    padding: 5px 0;
}

/* Разделитель "или через соцсети" */
.auth-divider {
    text-align: center;
    margin: 24px 0 20px;
    position: relative;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 70px);
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}
.auth-divider::before {
    left: 0;
}
.auth-divider::after {
    right: 0;
}
.auth-divider span {
    background: transparent;
    padding: 0 14px;
    font-size: 12px;
    color: #94a3b8;
}

/* Социальные кнопки */
.auth-social {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 0;
}
.social-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    transition: 0.2s;
    text-decoration: none;
}
.social-btn.vk:hover { background: #4c75a3; transform: translateY(-3px); }
.social-btn.ya:hover { background: #ffcc00; color: #000; transform: translateY(-3px); }
.social-btn.google:hover { background: #db4437; transform: translateY(-3px); }

/* ========== АНИМАЦИИ ========== */
@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}


/* ========== СВЕТЛАЯ ТЕМА ДЛЯ МОДАЛЬНОГО ОКНА (фон оверлея остаётся тёмным) ========== */
[data-theme="light"] .modal-content {
    background: --bg-body;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .modal-close {
    color: #64748b;
}
[data-theme="light"] .modal-close:hover {
    color: #dc2626;
}

[data-theme="light"] .tab-btn {
    color: #4a4a6a;
}
[data-theme="light"] .tab-btn.active {
    background: rgba(139, 92, 246, 0.15);
    color: #7c3aed;
}

[data-theme="light"] .loader {
    border: 3px solid rgba(0,0,0,0.1);
    border-top: 3px solid #7c3aed;
}

/* Поля ввода */
[data-theme="light"] .input-group input {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #1a1a2e;
}
[data-theme="light"] .input-group input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}
[data-theme="light"] .input-group label {
    color: #4a4a6a;
}
[data-theme="light"] .input-group input:focus + label,
[data-theme="light"] .input-group input:not(:placeholder-shown) + label {
    color: #7c3aed;
}
[data-theme="light"] .input-icon {
    color: #94a3b8;
}
[data-theme="light"] .toggle-pwd {
    color: #64748b;
}
[data-theme="light"] .toggle-pwd:hover {
    color: #7c3aed;
}

/* Кнопка входа */
[data-theme="light"] .auth-btn {
    background: linear-gradient(95deg, #7c3aed, #5b21b6);
    box-shadow: 0 6px 14px rgba(124, 58, 237, 0.25);
}
[data-theme="light"] .auth-btn:hover {
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.35);
}

/* Ссылки */
[data-theme="light"] .auth-links a {
    color: #4a4a6a;
}
[data-theme="light"] .auth-links a:hover {
    color: #7c3aed;
}
[data-theme="light"] .auth-links .sep {
    color: #cbd5e1;
}

/* Разделитель "или через соцсети" */
[data-theme="light"] .auth-divider::before,
[data-theme="light"] .auth-divider::after {
    background: rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .auth-divider span {
    color: #4a4a6a;
}

/* Социальные кнопки */
[data-theme="light"] .social-btn {
    background: rgba(0, 0, 0, 0.06);
    color: #1a1a2e;
}
[data-theme="light"] .social-btn.vk:hover { background: #4c75a3; color: white; }
[data-theme="light"] .social-btn.ya:hover { background: #ffcc00; color: #000; }
[data-theme="light"] .social-btn.google:hover { background: #db4437; color: white; }

/* Уведомления (светлая тема) */
[data-theme="light"] .notification {
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a2e;
    border-left: 3px solid;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .notification.success {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}
[data-theme="light"] .notification.error {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Заголовок "АВТОРИЗАЦИЯ" в светлой теме */
[data-theme="light"] .auth-modal-title {
    background: linear-gradient(135deg, #4a4a6a, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
}























/* Контейнер для уведомлений (toast) */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 380px;
    width: auto;
}

/* Базовый стиль уведомления */
.fpteaminfo {
    position: relative;
    min-width: 280px;
    max-width: 380px;
    padding: 16px 40px 16px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    transition: all 0.2s ease;
    animation: slideInRight 0.3s cubic-bezier(0.2,0.9,0.4,1.1) forwards;
    pointer-events: auto;
    cursor: pointer;
}
.fpteaminfo b {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    padding-right: 20px;
}
.fpteaminfo .close-toast {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    line-height: 1;
}
.fpteaminfo .close-toast:hover {
    opacity: 1;
}
.fpteaminfo .click-hint {
    display: block;
    font-size: 11px;
    margin-top: 6px;
    opacity: 0.7;
    text-align: right;
}

/* Типы уведомлений с поддержкой светлой/тёмной темы */
/* Светлая тема (по умолчанию) */
.fpteaminfo.error {
    background: #fff5f5;
    border-left: 5px solid #ef4444;
    color: #991b1b;
}
.fpteaminfo.success {
    background: #f0fdf4;
    border-left: 5px solid #10b981;
    color: #065f46;
}
.fpteaminfo.warning {
    background: #fffbeb;
    border-left: 5px solid #f59e0b;
    color: #92400e;
}
.fpteaminfo.info {
    background: #eff6ff;
    border-left: 5px solid #3b82f6;
    color: #1e40af;
}

/* Тёмная тема (при data-theme="dark" на html) */
html[data-theme="dark"] .fpteaminfo.error {
    background: #2d1a1a;
    border-left-color: #ef4444;
    color: #fecaca;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
html[data-theme="dark"] .fpteaminfo.success {
    background: #1a2d1a;
    border-left-color: #10b981;
    color: #bcf0da;
}
html[data-theme="dark"] .fpteaminfo.warning {
    background: #2d261a;
    border-left-color: #f59e0b;
    color: #fed7aa;
}
html[data-theme="dark"] .fpteaminfo.info {
    background: #1a243d;
    border-left-color: #3b82f6;
    color: #bfdbfe;
}
html[data-theme="dark"] .fpteaminfo .close-toast {
    color: #ccc;
}

/* Анимации */
@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(60px) scale(0.96); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes fadeOutRight {
    to { opacity: 0; transform: translateX(40px); visibility: hidden; }
}
.fpteaminfo.hide {
    animation: fadeOutRight 0.25s ease forwards;
}

/* Адаптация для мобильных */
@media (max-width: 480px) {
    .toast-container {
        top: 12px;
        right: 12px;
        left: 12px;
        max-width: none;
    }
    .fpteaminfo {
        min-width: auto;
        max-width: none;
        width: auto;
        padding: 14px 40px 14px 16px;
    }
}


/* ===== Поле 2FA – используем те же стили, что и у других полей ===== */
.twofa-field {
    display: none;          /* скрыто по умолчанию */
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease, margin 0.3s ease;
    margin-bottom: 0;
}

/* Когда поле активно – показываем */
.twofa-field.visible {
    display: block;
    opacity: 1;
    max-height: 80px;       /* подберите под свой дизайн (чтобы влезал инпут) */
    margin-bottom: 28px;    /* такой же отступ, как у других полей */
}

/* Инпут внутри поля 2FA – наследует стили от .input-group input */
.twofa-field input {
    /* Наследуем все стили от .input-group input, но можно явно продублировать */
    width: 100%;
    padding: 16px 16px 6px 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 44px;    /* главное – чтобы было как у пароля */
    font-size: 15px;
    color: white;
    outline: none;
    transition: 0.2s;
}

/* Фокус – как у других полей */
.twofa-field input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139,92,246,0.3);
}

/* Лейбл – позиционируем как в других полях */
.twofa-field label {
    position: absolute;
    left: 44px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
    transition: 0.2s;
}

/* Поднимаем лейбл при фокусе или заполнении */
.twofa-field input:focus + label,
.twofa-field input:not(:placeholder-shown) + label {
    top: 7px;
    font-size: 10px;
    color: #c084fc;
}

/* Иконка – как у других полей */
.twofa-field .input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 16px;
    pointer-events: none;
}

/* Анимация появления (плавное появление) */
@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.twofa-field.visible {
    animation: fadeSlideDown 0.3s ease forwards;
}