
.text-align-right {
    text-align: right;
}

/* Затемнение фона */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Полупрозрачный черный фон */
    z-index: 9998;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

/* Стили модального окна */
.login {
    position: relative;
    z-index: 9999;
    width: 100%;
    max-width: 420px;
    background-color: var(--main-bg-color) ;
    border: 1px solid var(--border--color);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transform: scale(1.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login__close {
    position: absolute;
    top: 10px;
    right:25px;
    cursor: pointer;
    color: #888;
}

.login__close:hover {
    color: #444;
}

.registration-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.register-link {
    color: #40A6FF;
    text-decoration: none;
    margin-left: 5px;
}

.login__content {
    flex-grow: 1;
    margin-top: 15px;
}

.login__row {
    width: 100%;
    margin-bottom: 40px;
}

.forgot-password-row{
    display: flex;
}

.forgot-password-row>label{
    margin-right: auto;
    margin-bottom: 0;
}

.forgot-password-row>input{
    margin-right: 5px;
}

.login__input {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.login__social {
    text-align: center;
}

.login__social-caption {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
}

.login__social-btns img {
    width: 40px;
    margin: 0 8px;
    transition: transform 0.3s;
}

.login__social-btns img:hover {
    transform: scale(1.2);
}

.login-btn {
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.info-btn {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.info-btn:hover {
    background-color: #0056b3;
}
.login__avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.login__menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.login__menu li {
    flex: 1 1 48%;
    display: flex;
    align-items: center;
}

.login__menu li a {
    text-decoration: none;
    color: var(--text-grey-color);
    font-size: 16px;
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    border: 1px solid transparent;
}

.login__menu li a:hover {
    background-color: var(--main-bg-color);
    border: 1px solid var(--border--color);
}

.login__menu li span {
    margin-right: 10px;
    font-size: 18px;
    color: #555;
}
.round{
    border-radius: 50%;
}

.d-none {
    display: none;
}
@media (max-width: 768px) {
    .login{
        width: auto;
    }
    .modal-overlay{
        align-items: start;
        padding-top: 50px;
    }
}

@media (max-width: 1000px) {
    .login-btn{
        padding-right: 0;
    }
}