.form-container, 
.form-container *, 
.form-container *::before, 
.form-container *::after {
    box-sizing: border-box;
}

input::-ms-reveal,
input::-ms-clear {
    display: none;
}

.form-container{
    width: 420px;
    color: black;
    border-radius: 10px;
    padding: 30px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: white;
    box-sizing: border-box;
}

.form-container h1{
    font-size: 36px;
    text-align: center;
    margin-bottom: 25px;
}

.form-container .input-box{
    width: 100%;
    margin: 20px 0px;
    position: relative;
}

.input-box input{
    width: 100%;
    height: 50px;
    background: transparent;
    border: none;
    outline: none;
    border: 1px solid #ccc;
    border-radius: 40px;
    font-size: 16px;
    color: black;
    padding: 20px 45px 20px 20px;
    box-sizing: border-box;
}

.input-box input::placeholder{
    color: rgb(82, 83, 83);
}

.input-box i{
    position: absolute;
    right: 20px;
    top: 25px;
    transform: translateY(-50%);
    font-size: 20px;
}

.input-box .hint {
    display: block;
    font-size: 12px;
    color: #777;
    margin-top: 5px;
    padding-left: 10px;
}

.toggle-password {
    cursor: pointer;
}

.form-container .remember{
    display: flex;
    justify-content: space-between;
    font-size: 14.5px;
    margin: -15px 0px 5px;
}

.remember label input{
    accent-color: blue;
    margin-right: 3px;
}

.remember a{
    color: black;
    text-decoration: none;
}

.remember a:hover{
    text-decoration: underline;
}

.form-container .btn{
    width: 100%;
    height: 45px;
    background: #c0bebe;
    border: none;
    outline: none;
    border: 1px solid #ccc;
    border-radius: 40px;
    cursor: pointer;
    font-size: 18px;
    color: black;
    font-weight: 600;
    margin: 10px 0px;

    font-family: inherit;      /* 1. Заставляем кнопку и ссылку использовать один и тот же шрифт */
    line-height: 1;            /* 2. Выравниваем межстрочный интервал */
    -webkit-font-smoothing: antialiased; /* 3. Делаем отрисовку текста одинаково четкой */
    -moz-osx-font-smoothing: grayscale;

    display: flex;             /* Позволяет легко центрировать текст внутри */
    justify-content: center;   /* Центрируем текст по горизонтали */
    align-items: center;       /* Центрируем текст по вертикали */
    text-decoration: none;     /* Убираем подчеркивание у ссылки */
    box-sizing: border-box;    /* Чтобы рамка не увеличивала размер кнопки */
}

.form-container .btn:hover{
    background: rgb(201, 201, 253);
}

.form-container .btn.exit {
    width: 50%;
    height: 45px;
    margin: 10px auto;
}

.form-container p{
    text-align: center;
    font-size: 16px;
}


/*Профиль
Карта лояльности*/
.form-container .card{
    width: 100%;
    color: black;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-container .card h2{
    font-size: 25px;
}

.form-container .card p{
    font-size: 20px;
}


/*Модальное окно входа*/
/* Фоновая подложка */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Затемнение фона */
    backdrop-filter: blur(5px); /* Легкое размытие */
    justify-content: center;
    align-items: center;
}

/* Контейнер для формы внутри модалки */
.modal-content {
    position: relative;
    animation: fadeIn 0.3s ease;
}

/* Кнопка закрытия (крестик) */
.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 30px;
    cursor: pointer;
    color: #333;
    z-index: 10;
}

.close-modal:hover {
    color: #f00;
}

/* Анимация появления */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Для профиля*/
main.profile-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 50px 0;
    background-color: white;
}

/* Убедимся, что на странице регистрации контейнер стоит ровно */
.profile-page .form-container {
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/*Профиль
Карта лояльности*/

.form-container .card{
    width: 100%;
    color: black;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-container .card h2{
    font-size: 25px;
}

.form-container .card p{
    font-size: 20px;
}