body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;

}

.reg_flex .container {
    background: white;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.error {
    background-color: #f8d7da;
    color: #842029;
    padding: 10px;
    border: 1px solid #f5c2c7;
    border-radius: 5px;
    margin-bottom: 15px;
}



.reg_flex input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    width: -webkit-fill-available;
}

.reg_flex button {
    width: 100%;
    background-color: transparent;
    border: 1px solid black;
    color: black;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    /* Плавный переход */
    transition: all 0.3s ease;
    /* анимация всех свойств за 0.3 секунды */
}

.reg_flex button:hover {
    background-color: black;
    border-color: black;
    color: #fff;
}

.reg_flex a {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: #888;
    text-decoration: none;
    /* Плавный переход */
    transition: all 0.3s ease;
    /* анимация всех свойств за 0.3 секунды */
}

.reg_flex a:hover {
    color: black;
}

.logo {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.logo img {
    width: 150px;
    margin: 0 auto;
}

.d-flex {
    display: flex;

}

.reg_flex {
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
}

.mg_auth {
    margin-top: -50px;
}

.password-field {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.password-field input {
    flex: 1;
}

.toggle-password {
    margin-left: 5px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 18px;
}

.toggle-password img {
    max-width: 24px;
}

.reg_flex form {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
}

/* Общие стили для header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: transparent;
}

/* Логотип */
.logo a {
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Меню */
.menu {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu ul {
    display: flex;
    list-style: none;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.menu ul li a {
    text-decoration: none;
    font-size: 16px;
    color: #666;
    padding: 14.5px 10px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
}

.menu ul li a:hover {
    background-color: black;
    color: white;
}

/* Профиль */
.profile {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 8px;
    width: 200px;
    /* border: 1px solid gray; */
    padding: 4px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
}

.profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

/* Dropdown */
.dropdown {
    display: none;
    position: absolute;
    top: 55px;
    right: 0;
    background-color: white;
    /* border: 1px solid #ddd; */
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
    border-radius: 12px;
    z-index: 10;
    width: 240px;
}

.dropdown a,
.dropdown button {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 8px;
    padding: 15px;
    text-decoration: none;
    color: black;
    text-align: right;
    border: none;
    cursor: pointer;
    font-size: 16px;
    background-color: transparent;
    width: -webkit-fill-available;
    text-wrap-mode: nowrap;

}

.dropdown form button {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 8px;
}


/* Для адаптива */
@media (max-width: 768px) {
    .menu ul {
        display: none;
        flex-direction: column;
        background-color: white;
        position: absolute;
        top: 50px;
        right: 0;
        padding: 10px;
        border: 1px solid #ddd;
        width: 200px;
        z-index: 10;
    }

    .menu ul.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 20px;
    }
}

.menu-toggle {
    display: none;
}

.header .logo a img {
    width: 50px;
    height: 50px;

}

.header .logo {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    min-width: 169px;
    justify-content: flex-start;
}

.header p {
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: #666;
    text-align: right;
}