

.nav__back {
    background: transparent;
    display: flex;
    align-items: center;
    border: none;
    box-shadow: none;
    outline: none;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
}

.nav__back-text {
    margin-left: 25px;
    font-size: 15px;
}

.register-main {
    background: #16546d;
    position: relative;
    padding-top: 90px;
    z-index: 1;
    padding-bottom: 40px;
}

.register-main-old::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 220px;
    content: '';
    background: url(../assets/images/register_bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
}

.register-grid {
    background: #fff;
    width: 100%;
    margin-top: 0px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
        'logo right'
        'tologin right';
    justify-items: center;
}

.register-grid__logo {
    grid-area: logo;
    margin-bottom: 225px;
    padding-top: 40px;
    
}
 
.register-grid__logo img {
    display: block;
    margin: 0 auto;
}

.register-grid__to-login {
    grid-area: tologin;
    padding-bottom: 40px;
}

.register-grid__to-login p {
    font-size: 16px;
    color: #4b4d50;
    margin-bottom: 60px;
    text-align: center;
}

.register-grid__to-login a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    text-transform: uppercase;
    color: #fff;
    font-size: 14px;
    background: #1e98d8;
    height: 50px;
    width: 250px;
    border-radius: 3px;
    position: relative;
}

.register-grid__to-login a::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 15px;
    width: 24px;
    height: 24px;
    background: url(../assets/images/lock.png);
    background-size: cover;
}

.register-grid__right-col {
    grid-area: right;
    width: 100%;
    border-left: 1px solid #d9d9d9;
    padding: 40px 50px;
}

.register-header {
    font-size: 26px;
    color: #000;
    text-align: center;
    padding: 0 45px 15px;
    font-weight: normal;
}

.register-text {
    text-align: center;
    font-size: 15px;
    line-height: 1.3;
    height:175px;
}

.register-phone {
    display: block;
    margin: 5px auto;
}

.register-phone-link {
    font-size: 20px;
    text-align: center;
    margin: 0 auto;
    width: 100%;
    display: block;
    color: #003084;
    text-decoration: none;
}

.register-form__item {
    display: flex;
    flex-direction: column-reverse;
    margin-bottom: 5px;
}

.register-form__item input {
    height: 40px;
    border-radius: 3px;
    border: 1px solid grey;
    padding-left: 10px;
    font-size: 16px;
}

.register-form__item label {
    margin-bottom: 5px;
    color: #4b4d50;
    font-size: 14px;
}

.register-form__checkbox {
    display: flex;
    justify-content: center;
    align-items: center;
}

.register-form__checkbox label {
    margin-left: 5px;
    position: relative;
    cursor: pointer;
}

.register-form__checkbox label::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 1px solid grey;
    left: -25px;
}

.register-form__checkbox input {
    opacity: 0;
    position: absolute;
}

.styled-checkbox:checked + label:after {
    content: '';
    position: absolute;
    left: -20px;
    top: 9px;
    background: #000;
    width: 2px;
    height: 2px;
    box-shadow: 
      2px 0 0 #000,
      4px 0 0 #000,
      4px -2px 0 #000,
      4px -4px 0 #000,
      4px -6px 0 #000,
      4px -8px 0 #000;
    transform: rotate(45deg);
}

.register-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    text-transform: uppercase;
    color: #fff;
    font-size: 14px;
    background: #16546d;
    height: 50px;
    width: 250px;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    margin: 10px auto 0;
    border: none;
}

.register-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 26px;
    height: 27px;
    background-size: cover;
    background: url(../assets/images/envelope.png);
}

.register-help {
    font-weight: normal;
    text-align: center;
    color: #fff;
    font-size: 15px;
    padding: 20px 0;
    border-bottom: 1px solid white;
}

.register-help a {
    color: inherit;
}

@media (max-width: 767px) {
    .nav__back {
        justify-content: center;
    }

    .register-grid {
        max-width: 90vw;
        margin: 0 auto;
        grid-template-columns: 1fr;
        grid-template-areas: 
            'logo'
            'right'
            'tologin'
    }

    .register-grid__logo {
        margin-bottom: 0px;
        width: 90%;
    }

    .register-grid__right-col {
        padding: 40px 10px 20px;
    }

    .register-main {
        padding-bottom: 0px;
    }

    .register-form__checkbox label {
        font-size: 14px;
        max-width: 80%;
        margin: 25px auto;
    }

    .register-form {
        margin-top: 15px;
    }

    .register-grid__to-login p {
        margin-bottom: 10px;
    }
}

/* login page */

.register-header--login {
    margin-bottom: 40px;
}

.login-form {
    margin-top: 90px;
}

.forgot-password {
    text-decoration: underline;
    font-size: 16px;
    color: #4b4d50;
    text-align: center;
    display: block;
    width: 100%;
    margin: 90px auto 25px;
}

.register-btn--login::after {
    content: none;
}

.register-grid__to-login--login p {
    margin-bottom: 25px;
}

@media (max-width: 767px) {
    .forgot-password {
        margin: 20px auto;
    }

    .login-form {
        margin-top: 35px;
    }
}

/* custo - select */

.custom-select {
    width: 100%;
    border: 1px solid grey;
    border-radius: 3px;
    height: 40px;
    display: flex;
    align-items: center;
    padding-left: 20px;
    position: relative;
    cursor: pointer;
    margin-bottom: 15px;
}


.custom-select::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 14px;
    height: 8px;
    background: url('../assets/images/arrow-down.png');
    background-size: cover;
}

.custom-dropdown {
    list-style: none;
    border: 1px solid black;
    width: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
    transform: translateY(100%);
    z-index: 100;
    background: white;
    opacity: 0;
    display: none;
}

.dropdown--active .custom-dropdown {
    display: block;
    opacity: 1;
}

.dropdown--active.custom-select::after {
    transform: translateY(-50%) rotate(180deg);
}

.custom-dropdown__item {
    padding: 5px 0 5px 20px;
    cursor: pointer;
}

.custom-dropdown__item:hover {
    background: rgba(30, 152, 216);
}