/* --- Базові налаштування форми --- */
form.container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
/*#bgVideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}*/
.h2-class {
    max-width: 459px;
    text-align: center;
}

@media (max-width: 530px) {
    .h2-class {
        max-width: 335px;
    }
}

/* --- Контейнер для поля вводу --- */
.form-field {
    width: 100%;
    max-width: 460px;
    margin-bottom: 1rem;
}

.form-field label {
    color: #003439;
    display: block;
    margin-bottom: 0.5rem;
}

/* --- Обгортка .input-wrapper: відповідає за візуальну рамку і фон --- */
.form-field .input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #00343914;
    background-color: #00343905;
    backdrop-filter: blur(50px);
    border-radius: 0.5rem;
    padding: 0 14px;
    transition: border-color 0.3s ease-in-out;
}

/* --- Поле <input>: функціональне, але "невидиме" --- */
.form-field input {
    flex-grow: 1;
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 12px 0;
    color: #003439;
    font-size: 1rem;
}

/* --- Іконка ока в полі пароля --- */
.input-wrapper .eye-icon {
    cursor: pointer;
    margin-left: 10px;
}

/* --- Стан помилки: змінюємо колір рамки обгортки .input-wrapper --- */
.form-field.error .input-wrapper {
    border-color: #FDA29B;
}

/* --- Стилізація плейсхолдерів --- */
#password::placeholder,
#email::placeholder {
    font-family: inherit;
    font-weight: 500;
    font-size: 0.938rem;
    color: #00343980;
}

/* --- Стилі для повідомлень про помилки --- */
.validation-error {
    color: #D92D20;
    font-weight: 500;
    font-size: 14px;
    min-height: 20px;
    margin-top: 5px;
}

.api-error-message {
    color: #D92D20;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    min-height: 20px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.api-error-message:empty {
    display: none;
}

/* --- Кнопка та посилання --- */
.button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.forgot_p {
    font-weight: 400;
    font-size: 14px;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 460px;
    text-align: right;
}

/* --- Крос-браузерні виправлення для автозаповнення --- */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-text-fill-color: #003439 !important;
    caret-color: #003439;
    transition: background-color 9999s ease-in-out 0s;
    box-shadow: none;
}