/* Основные стили для body */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #1E1F29;
    height: 100vh;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Основной контейнер с фиксированным размером */
.main-container {
    display: flex;
    width: 1440px; 
    height: 915px; 
    border-radius: 10px;
    overflow: hidden;
}

/* Левая часть: форма */
.form-section {
    width: 51%; /* Чуть меньше половины экрана для формы */
    background-color: #1E1F29;
    padding: 85px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* Правая часть: картинка */
.image-section {
    width: 49%; 
    background-color: #1E1F29; /* Цвет фона для картинки */
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-right: 20px;
    padding-left: 70px;
    box-sizing: border-box;
}

.image-section img {
    width: 100%;    /* Картинка занимает всю ширину контейнера */
    height: 100%;   /* Картинка занимает всю высоту контейнера */
    object-fit: cover; /* Заполняет контейнер, обрезаясь при необходимости */
    border-radius: 10px;
}

@media (max-width: 1100px) {
    .form-section {
        padding-right: 20px;
    }

    .image-section {
        padding-left: 20px;
    }
}

/* Медиазапрос для ширины экрана до 800px */
@media (max-width: 800px) {
    .image-section {
        display: none;  /* Скрываем картинку */
    }

    /* Делаем форму на всю ширину */
    .form-section {
        width: 100%;
        padding-right: 85px;
    }
}

@media (max-width: 550px) {
    .form-section {
        padding-left: 25px;
        padding-right: 25px;
    }
}

.form-group {
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-password {
    position: absolute; /* Абсолютное позиционирование иконки */
    right: 20px; /* Располагаем иконку справа */
    cursor: pointer; /* Указатель мыши меняется на указатель */
    width: 24px; /* Задаем ширину иконки */
    height: 24px; /* Задаем высоту иконки */
}

/* Стили для формы */
.custom-form .form-row {
    display: flex;
    gap: 20px; /* Отступы между полями */
    margin-bottom: 25px;
}

.custom-form h1 {
    color:#FFFFFF;
    font-size: 36px;
}

/* Стили для placeholder в input */
.custom-form input::placeholder {
    color: rgb(255, 255, 255, 0.4);
    opacity: 1; 
    border-radius: 8px;
    font-size: 16px;
}



/* Поля формы */
.custom-form input {
    padding: 20px 24px;
    background-color: #3A3646;
    border: none;
    border-width: 1px;
    color: #ffffff;
    border-radius: 12px;
    font-size: 18px;
    width: 100%;
    height: 55px;
}

/* Первые два поля в строку, уменьшены по ширине */
.custom-form .form-row input {
    width: 50%; /* Два поля по 50% ширины */
}

/* Обычные поля формы */
.custom-form .form-group {
    margin-bottom: 32px;
}

.custom-form .submit-btn {
    width: 100%;
    padding: 17px;
    background-color: #8265F5;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 64px;
}

.custom-form .submit-btn:hover {
    background-color: #6953D9;
}

#createDemoBtn {
    margin-top: 10px !important;
}

/* Стили для текста под кнопкой */
.custom-form .login-prompt {
    text-align: left;
    margin-top: 15px;  /* Отступ сверху */
    padding:5px;
    color: #b0b0b09d; 
    border-radius: 8px;
    font-size: 18px;
}


/* Стили для ссылки */
.custom-form .login-link {
    color: #8265F5;  /* Цвет ссылки */
    text-decoration: none;  /* Убираем подчеркивание */
    font-weight: bold;
    padding-bottom: 50px;
}


/* Стили для ссылки */
.custom-form .password-link {
    color: #8265F5;  /* Цвет ссылки */
    text-decoration: none;  /* Убираем подчеркивание */
    font-weight: bold;
    padding: 5px;
    font-size: 18px;
}


.custom-form .login-link:hover {
    color: #6953D9;  /* Изменяем цвет при наведении */
}

/* Стиль для автозаполненных полей */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    font-size: 18px !important; /* Задаем одинаковый размер шрифта для всех состояний */
    -webkit-text-fill-color: #ffffff !important; /* Цвет текста */
    -webkit-box-shadow: 0 0 0 1000px #3A3646 inset !important; /* Цвет фона */
    caret-color: #ffffff !important; /* Цвет курсора */
    transition: background-color 5000s ease-in-out 0s; /* Сохраняем цвет фона при автозаполнении */
}


/* Хак с appearance для Chrome */
input {
    appearance: none; /* Отключаем встроенные стили для автозаполнения */
    contain: style; /* Ограничиваем влияние стилей извне */
    font-size: 18px; /* Прямо указываем желаемый размер */
}



.custom-form input{
    -webkit-box-shadow: inset 0 0 0 1000px #3A3646;
    font-size: 18px;
}

/* Основной стиль уведомления */
/* .error-notification {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    color: #8265F5; 
    padding: 15px 25px;
    border-radius: 12px;
    border-color: #8265F5;
    font-size: 16px;
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    z-index: 1000;
}


.error-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1; 
}


.error-notification.hide {
    transform: translateX(-50%) translateY(-100%);
    opacity: 0; 
} */


/* Стили для уведомления */
.error-notification {
    position: fixed;
    top: 10px;
    padding: 15px 25px;
    border-radius: 4px;
    font-size: 16px;
    z-index: 1000;
    animation: slideIn 0.7s ease-out;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.success {
    background-color: #4caf50;
    color: white;
}

.error {
    background-color: #f44336;
    color: white;
}

.error-notification.hide {
    opacity: 0;
}

/* Анимация появления уведомления */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Стили для полей с ошибками */
.input-error {
    border: 1px solid #f44336;
    transition: border-color 0.3s ease;
}