/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    overflow: hidden;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
}

.navbar li {
    float: none;
}

.navbar a {
    display: inline-block;
    color: #ff7800;
    text-align: center;
font-weight: bold;
    padding: 14px 16px;
    text-decoration: none;
    transition: background-color 0.3s ease-in-out;
    cursor: url('../img/alt_cursor.cur'), pointer; /* Меняем вид курсора на руку при наведении */
}

.navbar a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Центральное размещение ссылки "Вход" и "Регистрация" */
.logo-link {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: inherit;
    color: red;
}

/* Центральное размещение ссылки "Вход" и "Регистрация" */
.home-link {
    margin-left: auto;
    margin-right: auto;
}

/* Центральное размещение ссылки "Вход" и "Регистрация" */
.page-link {
    position: absolute;
    right: 150px;
    top: 50%;
    transform: translateY(-50%);
    font-size: inherit;
    color: red;
}

/* Языковая смена */
.language-select {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: inherit;
    color: red;
}

.language-select select {
    padding: 5px;
    background-color: transparent;
    color: #ff7800;
    border: 1px solid #ff7800;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}


.logo-container {
    text-align: center;
    margin-top: 30px;
}

.logo-container img {
    width: auto;
    height: 300px;
}

.content {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.content h1 {
    text-align: center;
    margin-top: 0;
}

.content p,
.content ol {
    line-height: 1.6;
}
.blocks {
    display: block; /* Отключаем Flexbox для предотвращения перекрытий */
    clear: both; /* Устанавливаем свойство clear для очистки плавающих элементов */
    height: 100vh; /* Устанавливаем фиксированную высоту */
    color: white;
}

    .b1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 105vh;
    margin: 0;
    background-image: url('../img/ChatGPT-Image-r_01.jpg');
    background-size: cover;
    background-position: center;
    }

.b1 .logo{
    background-image: url('../img/logo.png');
    background-position: center 0px;
    background-repeat: no-repeat;
    background-size: auto;
    width: 516px;
    height: 350px;
    position: absolute;
    top: 133px;
    left: 0px;
    right: 0px;
    margin: 0 auto;
}

.b1 .btn-play {
    background-image: url('../img/play.jpeg');
    background-position: center 0px;
    background-repeat: no-repeat;
    background-size: auto;
    width: 328px;
    height: 128px;
    position: absolute;
    top: 500px;
    left: 7px;
    right: 0px;
    margin: 0 auto;
    cursor: url('../img/alt_cursor.cur'), pointer; /* Меняем вид курсора на руку при наведении */

        }
        


/* Опциональный стиль при наведении мыши */
.b1 .btn-play:hover {
    transform: scale(1.1); /* Немного увеличиваем масштаб при наведении */
    transition: all 0.3s ease-in-out; /* Анимация плавного увеличения */
}

    .b2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 105vh;
    margin: 0;
    background-image: url('../img/ChatGPT-Image-r_02.jpg');
    background-size: cover;
    background-position: center;
    }

.b2 .gero{
    background-image: url('../img/gero1.png');
    background-position: center 0px;
    background-repeat: no-repeat;
    background-size: auto;
    width: 100%;
    height: 40%;
    position: relative;
    top: 3px;
    left: 0px;
    right: 0px;
    margin: 0 auto;
}

.b2 {
    overflow-x: hidden;
    overflow-y: visible;
    perspective: 1600px; /* глубина */
}

.slider {
    width: 50%;              /* ← ВАЖНО: в 2 раза */
    height: 100%;
    margin: 0 auto;          /* центрируем сам контейнер */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0;
    overflow: visible;       /* 3D не режется */
}

@media (max-width: 1200px) {
    .slider {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .slider {
        width: 95%;
        padding: 60px 0;
    }
}


.slider-track {
    display: flex;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.slide:first-child {
    margin-left: 400px;
}

.slide:last-child {
    margin-right: 400px;
}

.slide {
    min-width: 400px;
    margin: 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0.85;
    filter: blur(4px);

    transform:
        scale(0.75)
        translateZ(-350px)
        rotateY(var(--rotate));

    transition:
        transform 0.7s cubic-bezier(.22,.61,.36,1),
        opacity 0.7s ease,
        filter 0.7s ease;
}


.slide img {
    width: auto;
    height: auto;

    max-width: 100%;
    max-height: calc(70vh / 1.5); /* ↓ в 1.5 раза */

    object-fit: contain;
    transition: transform 0.4s ease;
}


/* центральная */
.slide.active {
    opacity: 1;
    filter: blur(0);

    transform:
        scale(1.2)
        translateZ(0)
        rotateY(0deg);
}

.slide.active img {
    transition: transform 0.4s ease;
}

.slide.active:hover img {
    transform: scale(1.03);
}

/* ===== CONTROLS ===== */

.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    
    display: flex;
    gap: 780px;

    width: max-content;
    pointer-events: auto;
}

.arrow {
    width: 160px;


    display: block;
    flex-shrink: 0;

    cursor: pointer;
    opacity: 0.7;

    transition: transform 0.3s ease, opacity 0.3s ease;

    transform-origin: center center;
    will-change: transform;
}


.arrow:hover {
    opacity: 1;
    transform: scale(1.15) translateZ(0);
}


	.b3 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 105vh;
    margin: 0;
    background-image: url('../img/ChatGPT-Image-r_03.jpg');
    background-size: cover;
    background-position: center;
	}

	.b3 .features{
    background-image: url('../img/features.png');
    background-position: center 0px;
    background-repeat: no-repeat;
    background-size: auto;
    width: 100%;
    height: 100%;
    position: relative;
    top: 3px;
    left: 0px;
    right: 0px;
    margin: 0 auto;
}
/* ===== B3 FEATURE BLOCK ===== */

.b3 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.b3-content {
    width: 80%;
    max-width: 1400px;
    height: 60%;

    display: flex;
    gap: 60px;
}

/* левая часть — картинка */
.b3-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.b3-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* правая часть — фон + текст */
.b3-text {
    flex: 1;
    padding: 50px;

    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.75),
        rgba(0, 0, 0, 0.55)
    );

    border-radius: 24px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

/* текст */
.b3-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #ff7800;
}

.b3-text p {
    font-size: 18px;
    line-height: 1.6;
    color: #ffffff;
    max-width: 90%;
}
@media (max-width: 900px) {
    .b3-content {
        flex-direction: column;
        height: auto;
        gap: 40px;
    }

    .b3-text {
        padding: 30px;
    }

    .b3-text h2 {
        font-size: 28px;
    }
}
/* Модалка скрыта */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
}

/* Активна */
.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Только картинка */
.login-frame {
    width: 650px;
    height: 350px;

    background: url('../img/login-frame.png') no-repeat center center;
    background-size: cover;

    position: relative;

    border: none;
    box-shadow: none;
}

/* Крестик */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

/* Форма позиционируется поверх картинки */
.login-form {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    width: 420px;
}

/* Логин + пароль в строку */
.input-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

/* Поля без серых блоков */
.input-row input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid #2046b3;
    outline: none;
    color: white;
    font-size: 16px;
    padding: 5px 0;
}

/* Контейнер кнопок */
.button-row {
    width: 100%;
    display: flex;
    justify-content: space-between; /* РАЗВОДИТ В РАЗНЫЕ СТОРОНЫ */
    align-items: center;
}

/* Обе кнопки */
.button-row button {
    position: static !important;   /* Убираем absolute если где-то был */
    display: inline-block;
}
/* Общие стили кнопок */
.login-btn,
.forgot-btn {
    font-size: 13px;
    padding: 8px 18px;
    border-radius: 25px;        /* закруглённые края */
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;  /* плавный эффект */
    font-weight: 600;
}

/* Кнопка Войти — зелёная */
.login-btn {
    background: #28a745;
    color: white;
}

/* Подсветка при наведении */
.login-btn:hover {
    background: #34d058;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.7);
}

/* Кнопка Вспомнить пароль — оранжевая */
.forgot-btn {
    background: #ff8c00;
    color: white;
}

/* Подсветка при наведении */
.forgot-btn:hover {
    background: #ffa733;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.7);
}




/* ===== REGISTER MODAL ===== */

.modal {
    backdrop-filter: blur(8px);
}

.modal-content.register {
    position: relative;

    width: 420px;
    padding: 40px 30px;

    background-image: url('../img/register-bg.png'); /* ← ТВОЯ КАРТИНКА */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border-radius: 20px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.8);

    overflow: hidden;
}

/* затемнение поверх картинки */
.modal-content.register::before {
    content: '';
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.45),
        rgba(0,0,0,0.75)
    );

    z-index: 0;
}

.modal-content.register * {
    position: relative;
    z-index: 1;
}

.modal-content.register form {
    background: none;
    box-shadow: none;
    margin-top: 40px;
    padding: 0;
}

.modal-content.register input {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;

    font-size: 16px;
}

.modal-content.register input::placeholder {
    color: rgba(255,255,255,0.7);
}

.modal-content.register button {
    position: static;
    width: 100%;
    margin-top: 20px;

    padding: 14px;
    font-size: 18px;
    font-weight: bold;

    background: linear-gradient(135deg, #ff7800, #ff9a00);
    border-radius: 12px;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modal-content.register button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255,120,0,0.6);
}
.modal-content.register .close {
    position: absolute;
    top: 20px;
    right: 20px;

    color: #fff;
    font-size: 28px;
    opacity: 0.8;
}

.modal-content.register .close:hover {
    opacity: 1;
    transform: scale(1.1);
}
/* ===== B3 SLIDER ===== */

.b3 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.b3-slider {
    width: 80%;
    max-width: 1400px;
    position: relative;
}

.b3-slider-content {
    position: relative;
    height: 500px;
}

/* отдельный слайд */
.b3-slide {
    position: absolute;
    inset: 0;

    display: flex;
    gap: 5px;
    align-items: center;

    opacity: 0;
    pointer-events: none;
    transform: translateX(40px);

    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}

.b3-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.b3-image {
    position: relative; /* якорь для стрелок */
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.b3-image img {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
}

/* общие стили стрелок */
.b3-arrow {
    position: absolute;
    z-index: 5;

    width: 48px;
    height: 48px;

    border-radius: 50%;
    border: none;

    cursor: pointer;

    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 18px;

    transition: transform 0.3s ease, background 0.3s ease;
}

/* левая стрелка — верхний левый */
.b3-prev {
    top: 10px;
    left: 10px;
}

/* правая стрелка — нижний правый */
.b3-next {
    bottom: 10px;
    right: 10px;
}

.b3-arrow:hover {
    transform: scale(1.15);
    background: rgba(255, 120, 0, 0.85);
}

/* текст справа */
.b3-text {
    flex: 1;
    padding: 40px;

    background: linear-gradient(
        135deg,
        rgba(0,0,0,0.75),
        rgba(0,0,0,0.55)
    );

    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.b3-text h2 {
    font-size: 34px;
    color: #ff7800;
    margin-bottom: 20px;
}

.b3-text p {
    font-size: 18px;
    line-height: 1.6;
}

/* ===== CONTROLS ===== */

.b3-controls {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.b3-arrow {
    width: 56px;
    height: 56px;

    font-size: 22px;
    border-radius: 50%;
    border: none;

    cursor: pointer;

    background: rgba(0,0,0,0.6);
    color: #fff;

    transition: transform 0.3s ease, background 0.3s ease;
}

.b3-arrow:hover {
    transform: scale(1.15);
    background: rgba(255,120,0,0.8);
}

@media (max-width: 768px) {
    .b3-slide {
        gap: 10px;
    }
}
/* ===== REGISTER FRAME ===== */
/* Модальное окно для регистрации */
#registerModal {
    position: fixed;
    inset: 0;
    display: none; /* Скрываем окно по умолчанию */
    justify-content: center;  /* Центрируем по горизонтали */
    align-items: center;      /* Центрируем по вертикали */
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    z-index: 2000;
}

/* Модальное окно в активном состоянии */
#registerModal.active {
    display: flex; /* Показываем окно при добавлении класса 'active' */
}


.register-frame {
    position: relative;

    width: 520px;
    height: 820px;

    background-image: url('../img/register-frame.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* зона, где реально живёт форма */
.register-inner {
    position: absolute;

    width: 78%;
    height: 72%;

    top: 14%;
    left: 11%;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* форма */
.register-inner form {
    width: 63%;
    background: transparent;
    box-shadow: none;
    padding: 0;
align-items: center;
   text-align: center;

    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    top: -100px; /* ⬅ поднимаем весь блок */
}

/* поля */
.register-inner input {
    background: linear-gradient(
        120deg,
        rgba(40,90,160,0.8),
        rgba(46,73,115,0.9)
    );
    background-size: 200% 100%;
    background-position: 100% 0;

    transition:
        background-position 0.6s ease,
        box-shadow 0.4s ease;
}

.register-inner input {
    color: #9fd3ff;   /* ← цвет вводимого текста */
}

/* цвет плейсхолдеров */
.register-inner input::placeholder {
    color: rgba(253, 123, 10, 0.85);   /* ← нужный тебе цвет */
    opacity: 1;                         /* важно для Firefox */
}


.register-inner input:focus {
    background-position: 0 0;
    box-shadow:
        0 0 12px rgba(120,180,255,0.8),
        inset 0 0 10px rgba(80,160,255,0.5);
}


/* кнопка */
.register-inner button {
    margin-top: 120px;

    background: linear-gradient(135deg, #3aa0ff, #5fd3ff);
    border: none;
    border-radius: 100px;

    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 14px;

    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.register-inner button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(100,180,255,0.8);
}

/* крестик */
.register-inner .close {
    position: absolute;
    top: -30px;
    right: -10px;

    font-size: 28px;
    color: #9fd3ff;
    cursor: pointer;
}
.register-frame::before,
.register-frame::after {
    content: '';
    position: absolute;
    inset: -12px;
    pointer-events: none;
    border-radius: 40px;
}

.register-frame::before {
    background: radial-gradient(
        circle at 50% 50%,
        rgba(120,180,255,0.45),
        transparent 70%
    );
    filter: blur(25px);
    opacity: 0.8;
}

.register-frame::after {
    box-shadow:
        0 0 40px rgba(120,180,255,0.6),
        inset 0 0 30px rgba(120,180,255,0.35);
}
@keyframes rpgAppear {
    0% {
        transform: scale(0.85) translateY(40px);
        opacity: 0;
    }
    60% {
        transform: scale(1.05) translateY(-5px);
        opacity: 1;
    }
    100% {
        transform: scale(1) translateY(0);
    }
}

.register-frame {
    animation: rpgAppear 0.8s cubic-bezier(.16,1,.3,1);
}

/* ===== SOCIAL AUTH ===== */

.social-auth {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.social-btn {
    width: 48px;
    height: 48px;

    border-radius: 50%;
    background: rgba(20,40,70,0.8);

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: inset 0 0 10px rgba(120,180,255,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-btn img {
    width: 26px;
    height: 26px;
}

.social-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(120,180,255,0.8);
}

/* разделитель */
.divider {
    text-align: center;
    font-size: 14px;
    color: rgba(200,220,255,0.6);
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(120,180,255,0.3);
}

.divider::before { left: 0; }
.divider::after  { right: 0; }

/* соглашение */
.agreement {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    font-size: 14px;
    color: rgba(220,235,255,0.85);
}

.agreement input {
    margin-top: 3px;
}

.agreement a {
    color: #6fb7ff;
    text-decoration: none;
}

.agreement a:hover {
    text-decoration: underline;
}
.password-strength {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    background: red;
    transition: width 0.3s ease, background 0.3s ease;
}

.password-hint {
    font-size: 13px;
    color: rgba(255,200,200,0.9);
    min-height: 16px;
}
.form-error {
    background: rgba(120,20,20,0.9);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 0 20px rgba(255,80,80,0.6);
    animation: shake 0.4s;
}

@keyframes shake {
    0%,100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}
.rune-check input {
    display: none;
}

.rune {
    width: 20px;
    height: 20px;
    border: 2px solid #6fb7ff;
    border-radius: 6px;
    box-shadow: inset 0 0 5px rgba(120,180,255,0.7);
    position: relative;
    transition: all 0.4s ease;
}

.rune::after {
    content: 'ᚱ';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    color: #9fd3ff;
    font-size: 14px;
    transition: opacity 0.4s ease;
}

.rune-check input:checked + .rune {
    box-shadow: 0 0 15px rgba(120,180,255,1);
    background: rgba(80,160,255,0.3);
}

.rune-check input:checked + .rune::after {
    opacity: 1;
}


/* Контейнер для кнопок */
.button-container {
    display: flex;                /* Используем flexbox для расположения кнопок по горизонтали */
    justify-content: space-between; /* Располагаем кнопки с промежутком между ними */
    width: 100%;                   /* Контейнер растягивается на всю ширину */
    gap: 20px;                     /* Промежуток между кнопками */
}

/* Каждый контейнер для кнопок */
.button-wrapper {
    flex: 1;                       /* Кнопки будут занимать одинаковое пространство */
    display: flex;
    justify-content: center;       /* Центрируем кнопку внутри контейнера */
}

/* Стили для кнопки "Войти" */
.loginButton {
    width: 100%;                   /* Кнопка растягивается по ширине контейнера */
    padding: 10px;
    background-color: #007bff;     /* Цвет кнопки "Войти" */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.loginButton:hover {
    background-color: #45a049;     /* Цвет при наведении на кнопку "Войти" */
}

/* Стили для кнопки "Вспомнить пароль" */
.forgotPasswordButton {
    width: 100%;                   /* Кнопка растягивается по ширине контейнера */
    padding: 10px;
    background-color: #ff9800;     /* Цвет кнопки "Вспомнить пароль" */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.forgotPasswordButton:hover {
    background-color: #e68900;     /* Цвет при наведении на кнопку "Вспомнить пароль" */
}



/* Языковая смена */
.theme-toggle {
    position: absolute;
    right: 85px;
    top: 50%;
    transform: translateY(-50%);
    font-size: inherit;
    color: red;
}

.theme-toggle select {
    padding: 5px;
    background-color: transparent;
    color: #ff7800;
    border: 1px solid #ff7800;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}


button {
    position: absolute;
    top: 80%;
    transform: translateY(-3%);
    z-index: 1;
    font-size: 2em;
    cursor: url('../img/alt_cursor.cur'), pointer;
    color: white;
    border: none;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
}
.register-inner input[type="text"],
.register-inner input[type="password"],
.register-inner input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Цвет надписей Логин / Пароль */
.input-row input::placeholder {
    color: #ff8c00;   /* можешь заменить на любой цвет */
    opacity: 1;       /* чтобы цвет был яркий */
}
/* Общие стили для модального фона */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 700;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Для прокрутки на маленьких экранах */
    background-color: rgba(0, 0, 0, 0.3); /* Полупрозрачный черный фон */
    animation: fadeIn 0.3s;
}

/* Анимация появления */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Контент модального окна */
.modal-content {
    background-color: #374487;
    margin: 5% auto; /* Центрирование по вертикали */
    padding: 40px 30px; /* Увеличен padding для высоты */
    border-radius: 12px;
    width: 90%;
    max-width: 450px; /* Шире для большего окна */
    min-height: 250px; /* Минимальная высота */
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.4);
    animation: slideDown 0.3s;
}

/* Анимация появления контента */
@keyframes slideDown {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

/* Кнопка закрытия */
.close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 26px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: #000;
}

/* Заголовок */
.modal-content h2 {
    margin-top: 0;
    text-align: center;
    font-size: 18px;
    color: #e57715;
}

/* ===== PASSWORD RECOVERY WINDOWS ===== */
.password-modal {
    z-index: 3200;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
        radial-gradient(circle at 50% 0%, rgba(31, 157, 255, 0.24), transparent 42%),
        radial-gradient(circle at 12% 85%, rgba(255, 120, 0, 0.12), transparent 30%),
        rgba(2, 8, 25, 0.84);
    backdrop-filter: blur(13px) saturate(120%);
    -webkit-backdrop-filter: blur(13px) saturate(120%);
    animation: none;
}

.password-modal.is-open {
    display: flex;
    animation: passwordModalFade 220ms ease-out both;
}

.password-dialog {
    position: relative;
    isolation: isolate;
    width: min(100%, 500px);
    margin: auto;
    padding: 42px 44px 34px;
    overflow: hidden;
    color: #f7fbff;
    text-align: center;
    border: 1px solid rgba(103, 197, 255, 0.42);
    border-radius: 26px;
    outline: none;
    background:
        linear-gradient(145deg, rgba(22, 53, 111, 0.98), rgba(7, 19, 52, 0.98) 58%, rgba(5, 14, 39, 0.99));
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.64),
        0 0 0 1px rgba(3, 13, 38, 0.72),
        0 0 42px rgba(24, 151, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    animation: passwordDialogEnter 360ms cubic-bezier(0.2, 0.85, 0.28, 1.08) both;
}

.password-dialog::before {
    content: '';
    position: absolute;
    z-index: 0;
    top: 0;
    left: 9%;
    width: 82%;
    height: 2px;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(90deg, transparent, #28b9ff 22%, #ff8a00 78%, transparent);
    box-shadow: 0 0 18px rgba(42, 182, 255, 0.75);
}

.password-dialog::after {
    content: '';
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% -12%, rgba(37, 169, 255, 0.24), transparent 35%),
        linear-gradient(115deg, transparent 0 45%, rgba(255, 255, 255, 0.025) 45% 46%, transparent 46% 100%);
}

.password-dialog > * {
    position: relative;
    z-index: 1;
}

.password-dialog .password-dialog__close {
    position: absolute !important;
    z-index: 3;
    top: 17px !important;
    right: 17px;
    left: auto;
    display: grid;
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
    place-items: center;
    color: #b9c9df;
    font-size: 0;
    border: 1px solid rgba(151, 190, 227, 0.18);
    border-radius: 50%;
    background: rgba(2, 12, 35, 0.38);
    box-shadow: none;
    transform: none !important;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease !important;
}

.password-dialog .password-dialog__close:hover {
    color: #ffffff;
    border-color: rgba(255, 140, 0, 0.7);
    background: rgba(255, 126, 0, 0.18);
    transform: rotate(5deg) scale(1.04) !important;
}

.password-dialog .password-dialog__close:focus-visible {
    outline: 2px solid #ff9a2e;
    outline-offset: 3px;
}

.password-dialog__close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.password-dialog__icon {
    display: grid;
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    place-items: center;
    color: #67d1ff;
    border: 1px solid rgba(86, 200, 255, 0.52);
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(33, 155, 235, 0.24), rgba(6, 43, 89, 0.28));
    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.32),
        0 0 28px rgba(46, 180, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.password-dialog__icon svg {
    width: 46px;
    height: 46px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-dialog__icon svg path:last-child {
    color: #ff9a2e;
    stroke-width: 2.6;
}

.password-dialog__icon--success {
    color: #7ce9ac;
    border-color: rgba(88, 224, 148, 0.48);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(42, 199, 114, 0.24), rgba(8, 67, 54, 0.3));
    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(69, 227, 144, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.password-dialog__icon--success svg path:last-child {
    color: currentColor;
    stroke-width: 3.6;
}

.password-dialog__eyebrow {
    margin: 0 0 8px;
    color: #ff952b;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.password-dialog h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(25px, 5vw, 31px);
    font-weight: 750;
    line-height: 1.18;
    text-shadow: 0 2px 16px rgba(63, 177, 255, 0.18);
}

.password-dialog__description {
    max-width: 400px;
    margin: 13px auto 0;
    color: #c5d2e7;
    font-size: 15px;
    line-height: 1.55;
}

.password-dialog #forgotPasswordForm {
    display: flex;
    width: 100%;
    margin: 27px 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
}

.password-field {
    position: relative;
    display: block;
    width: 100%;
}

.password-field__icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 18px;
    display: grid;
    width: 22px;
    height: 22px;
    color: #7fb7e5;
    pointer-events: none;
    transform: translateY(-50%);
    transition: color 180ms ease;
}

.password-field__icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-dialog #forgotPasswordForm .password-field input[type="email"] {
    display: block;
    width: 100%;
    max-width: none;
    height: 58px;
    margin: 0;
    padding: 0 18px 0 53px;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    caret-color: #ff9a2e;
    border: 1px solid rgba(118, 173, 222, 0.36);
    border-radius: 15px;
    outline: none;
    background: rgba(1, 12, 36, 0.58);
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.035);
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.password-dialog #forgotPasswordForm .password-field input[type="email"]::placeholder {
    color: #8194ae;
    opacity: 1;
}

.password-dialog #forgotPasswordForm .password-field input[type="email"]:hover {
    border-color: rgba(111, 199, 255, 0.55);
}

.password-dialog #forgotPasswordForm .password-field input[type="email"]:focus {
    border-color: #4ac1ff;
    background: rgba(3, 20, 53, 0.8);
    box-shadow:
        0 0 0 3px rgba(45, 177, 255, 0.14),
        0 0 24px rgba(45, 177, 255, 0.1),
        inset 0 1px 3px rgba(0, 0, 0, 0.32);
}

.password-field:focus-within .password-field__icon {
    color: #64d0ff;
}

.password-dialog .password-dialog__primary {
    position: static !important;
    top: auto !important;
    display: inline-flex;
    width: 100%;
    min-height: 56px;
    margin: 0;
    padding: 13px 21px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
    border: 1px solid rgba(255, 190, 91, 0.55);
    border-radius: 15px;
    background: linear-gradient(135deg, #ff9c2b 0%, #ff7200 52%, #ed4c00 100%);
    box-shadow:
        0 13px 28px rgba(229, 79, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.34);
    transform: none !important;
    transition: filter 180ms ease, box-shadow 180ms ease, transform 180ms ease !important;
}

.password-dialog .password-dialog__primary:hover {
    background: linear-gradient(135deg, #ffab43 0%, #ff7c0c 52%, #f45705 100%);
    box-shadow:
        0 16px 33px rgba(229, 79, 0, 0.4),
        0 0 22px rgba(255, 130, 20, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-2px) !important;
}

.password-dialog .password-dialog__primary:active {
    transform: translateY(0) scale(0.99) !important;
}

.password-dialog .password-dialog__primary:focus-visible {
    outline: 2px solid #ffd08c;
    outline-offset: 3px;
}

.password-dialog .password-dialog__primary:disabled {
    cursor: wait;
    filter: saturate(0.7) brightness(0.82);
    box-shadow: none;
}

.password-dialog__button-icon {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-dialog__primary.is-loading .password-dialog__button-icon {
    display: none;
}

.password-dialog__primary.is-loading::after {
    content: '';
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    border: 2px solid rgba(255, 255, 255, 0.38);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: passwordButtonSpin 700ms linear infinite;
}

.password-dialog__secure {
    display: inline-flex;
    margin: 18px auto 0;
    align-items: center;
    gap: 7px;
    color: #8ea4bf;
    font-size: 12px;
    line-height: 1.3;
}

.password-dialog__secure svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #67d5a1;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-dialog--success {
    width: min(100%, 470px);
    padding-bottom: 38px;
}

.password-dialog--success .password-dialog__description {
    max-width: 355px;
}

.password-dialog__note {
    margin: 22px 0 20px;
    padding: 13px 15px;
    color: #aebed3;
    font-size: 13px;
    line-height: 1.45;
    border: 1px solid rgba(120, 163, 207, 0.16);
    border-radius: 13px;
    background: rgba(1, 12, 34, 0.4);
}

.password-dialog .password-dialog__primary--success {
    min-height: 52px;
}

.password-dialog__sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    border: 0 !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
}

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

@keyframes passwordDialogEnter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.965);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes passwordButtonSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 560px) {
    .password-modal {
        padding: 16px;
        align-items: flex-start;
    }

    .password-dialog {
        margin: auto;
        padding: 36px 21px 27px;
        border-radius: 22px;
    }

    .password-dialog .password-dialog__close {
        top: 13px !important;
        right: 13px;
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .password-dialog__icon {
        width: 68px;
        height: 68px;
        margin-bottom: 17px;
        border-radius: 21px;
    }

    .password-dialog__icon--success {
        border-radius: 50%;
    }

    .password-dialog__icon svg {
        width: 41px;
        height: 41px;
    }

    .password-dialog__description {
        font-size: 14px;
    }

    .password-dialog #forgotPasswordForm {
        margin-top: 22px;
    }

    .password-dialog #forgotPasswordForm .password-field input[type="email"] {
        height: 55px;
        font-size: 16px;
    }

    .password-dialog .password-dialog__primary {
        min-height: 54px;
        padding-inline: 16px;
        font-size: 14px;
    }

    .password-dialog__note {
        margin-top: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .password-modal.is-open,
    .password-modal.is-open .password-dialog,
    .password-dialog__primary.is-loading::after {
        animation-duration: 1ms;
        animation-iteration-count: 1;
    }
}
