@import url('https://fonts.googleapis.com/css2?family=Russo+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
.navbar{
    top: 0;
    height: 64px;
    width: 100%;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #282b3a;
    position: fixed;
    z-index: 10;
    backdrop-filter: blur(20px);
    background-color: #1b1d2587;
    line-height: 1rem;
}
.nav__center_content{
    width: 100%;
    max-width: 1216px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    color: white;
    height: 100%;
    padding: 0px 20px;
    .left{
        display: flex;
        flex-direction: row;
        align-items: center;
        height: 100%;
    }
    .right{
        display: flex;
        flex-direction: row;
        align-items: center;
        height: 100%;
        position: relative;
    }
}
.drop_button{
    position: relative;
    width: 24px;
    height: 18px;
    display: none;
    align-items: center;
    margin-right: 20px;
    span{
        transition: .3s;
        width: 60%;
        height: 2px;
        background-color: #fff;
        &::before{
            content: "";
            position: absolute;
            width: 100%;
            height: 2px;
            background-color: #fff;
            top: 0;
            transition: .3s;
        }
        &::after{
            content: "";
            position: absolute;
            width: 80%;
            height: 2px;
            background-color: #fff;
            bottom: 0;
            transition: .3s;
        }
    }
    span.active{
        width: 0;
        &::before{
            width: 100%;
            top: auto;
            transform: rotate(45deg);
        }
        &::after{
            width: 100%;
            bottom: auto;
            transform: rotate(-45deg);
        }
    }
}
.nav__logo{
    font-family: 'Russo One', sans-serif;
    color: #fff;
    font-size: 25px;
    margin-right: 30px;
    position: relative;
    &::after{
        content: "βeta";
        font-family: 'Courier New', Courier, monospace;
        position: absolute;
        bottom: -19px;
        right: 0;
        font-size: 16px;
    }
}
.nav__select_role{
    font-size: 16px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.nav__select_role::after{
    content: url("../icons/arrow.svg");
    margin-top: 5px;
}
.nav__navigations{
    display: flex;
    flex-direction: row;
    .navigation{
        margin-right: 25px;
        cursor: pointer;
        &:hover{
            color: #ffffffa9;
        }
    }
}
.search{
    margin-right: 25px;
    cursor: pointer;
}
.login{
    background-color: #282b3a;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: .3s;
    &:hover{
        background-color: white;
        color: #282b3a;
    }
}
.user{
    border-radius: 15px;
    padding: 5px;
    display: flex;
    flex-direction: row;
    align-items: center;
    transition: .3s;
    cursor: pointer;
}
.user:hover{
    background-color: #282b3a;
}
.user img{
    width: 33px;
    border-radius: 10px;
    
}
.user::after{
    content: url("/icons/arrow.svg");
    margin-top: 5px;
}
.user_collapse{
    position: absolute;
    top: 69px;
    padding: 5px 0;
    right: 0;
    background-color: #1b1d25;
    width: 150px;
    border-radius: 15px;
    overflow: hidden;
    opacity: 0;
    display: none;
    transition: .1s;
    box-shadow: #00000066 0px 0px 10px;
}
.user_collapse .but{
    display: flex;
    align-items: center;
    padding: 5px 10px;
    height: 30px;
    cursor: pointer;
}
.user_collapse .but:hover{
    background-color: #ffffff13;
}


.collapse{
    z-index: 10;
    margin-top: 65px;
    left: -100%;
    z-index: 2;
    color: white;
    display: none;
    flex-direction: column;
    position: fixed;
    width: 100%;
    height: calc(100% - 65px);
    background-color: #1b1d25;
    transition: .5s ease;
    .collapse__select_role{
        padding: 15px 0px;
        padding-left: 20px;
        border-bottom: 1px solid #282b3a;
        &:hover{
            color: #ffffffa9;
        }
    }
    .collapse__navigations{
        padding-left: 20px;
        margin-top: 10px;
        .navigation{
            padding: 12px 0px;
        }
        .navigation{
            &:hover{
                color: #ffffffa9;
            }
        }
    }
    .collapse__search{
        display: flex;
        align-items: center;
        padding-left: 20px;
        margin-top: 5px;
        &::after{
            content: "Поиск";
            &:hover{
                color: #ffffffa9;
            }
        }
    }
}
a{
    color: white;
    text-decoration: none;
}

@media screen and (max-width: 1080px) {
    .drop_button{
        display: flex;
    }
    .collapse{
        display: flex;
    }
    .nav__select_role{
        display: none;
    }
    .nav__navigations{
        display: none;
    }
    .search{
        display: none;
    }
}

@media screen and (max-width: 380px) {
    .nav__logo{
        font-size: 18px;
        &::after{
            bottom: -17px;
            font-size: 14px;
        }
    }
}




.overflow{
    opacity: 0;
    position: fixed;
    z-index: 999;
    background-color: #0000009c;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    transition: .3s;
}
.overflow .collaps{
    width: 496px;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow: hidden;
    position: relative;
}
.loader, .loader_reg{
    transition: .3s;
    display: none;
    opacity: 0;
    position: absolute;
    overflow: hidden;
    width: 100%;
    height: 100%;
    z-index: 10;
    background-color: #0000005c;
    border-radius: 40px;
}
.loader::before {
    content: '';
    position: absolute;
    transform: translateX(-50%) rotate(-30deg);
    top: -30px;
    left: -30px;
    width: 200%;
    height: 30px;
    background-color: #ffffff88;
    filter: blur(10px);
    animation: diagonal-slide 2s .5s infinite ease;
}
.login_form{
    width: 495px;
    height: 705px;
    background-color: #323541;
    border-radius: 40px;
    position: absolute;
    left: 0px;
    transition: .5s;
}
.login_form.register{
    height: 887px;
    left: 500px;
}
.login_form form{
    line-height: 1rem;
    height: 605px;
    padding: 60px 40px 0 40px;
    position: relative;
}
.login_form form h1{
    display: inline;
    font-weight: 400;
    color: white;
    position: relative;
    border-bottom: 6px white solid;
}
.login_form form .inputs{
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 66px;
}
.login_form form .inputs input{
    width: calc(100% - 30px);
    height: 76px;
    padding: 0 15px;
    margin-top: 18px;
    border: none;
    background-color: #3F404D;
    border-radius: 15px;
    font-size: 15px;
    color: white;
}
.login_form form .inputs input.error{
    border: rgb(255, 90, 90) 1px solid;
}
.login_form form .inputs input.error::placeholder{
    color: rgb(255, 90, 90);
}
.login_form form .inputs input::placeholder{
    color: #7D7E8A;
    font-weight: 500;
}
.login_form form .inputs input:first-child{
    margin-top: 0px;
}

.login_form form .checks{
    display: flex;
    flex-direction: column;
    margin-top: 60px;
    color: white;
    font-size: 16px;
}
.login_form form .checks .check{
    display: flex;
    flex-direction: row;
    align-items: center;
}
.login_form form .checks .check:first-child{
    margin-bottom: 18px;
}
.login_form form .checks .check input{
    height: 10px;
    margin-right: 10px;
    margin-left: 5px;
    accent-color: #7D7E8A;
    background-color: #D9D9D9;
    transform: scale(2);
    cursor: pointer;
}
.login_form form .buttons{
    margin-top: 60px;
}
.login_form.register form .buttons{
    margin-top: 45px;
}
.login_form form .buttons .button{
    width: 100%;
    height: 61px;
    background-color: #22242C;
    color: white;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: .3s;
}
.login_form form .buttons .button:hover{
    transform: scale(1.05);
}
.login_form form .buttons .button:first-child{
    margin-bottom: 23px;
}
.login_form form .close{
    width: 35px;
    height: 35px;
    position: absolute;
    top: 55px;
    right: 40px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}
.login_form form .close:hover{
    background-color: #424554;
}
.login_form form .back{
    width: 35px;
    height: 35px;
    position: absolute;
    top: 55px;
    right: 80px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}
.login_form form .back:hover{
    background-color: #424554;
}
.login_form form .close::before{
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    border-radius: 50px;
    background-color: #ffffff;
    transform: rotate(45deg);
}
.login_form form .close::after{
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    border-radius: 50px;
    background-color: #ffffff;
    transform: rotate(-45deg);
}
  
@keyframes diagonal-slide {
    from{
        transform: translateX(-50%) rotate(-30deg);
    }
    to{
        top: 100%;
        left: 100%;
    }
}

@media screen and (max-height: 887px) {
    .collaps{
        align-items: start !important;
        overflow-y: scroll !important;
    }
}
@media screen and (max-width: 495px) {
    .collaps{
        width: 100%;
    }
    .login_form{
        width: 100%;
    }
}
@media screen and (max-width: 400px) {
    .login_form form{
        padding: 60px 20px;
    }
    .login_form{
        padding: 0;
        height: 100vh;
        border-radius: 0;
    }
}
