.form-wrapper, .terms-of-service {
    background-color: #fff;
    width: 75vw;
    max-width: 895px;
    padding: 40px 0;
    border-radius: 10px;
    box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.16),
                0 3px 4px 0 rgba(0, 0, 0, 0.16),
                0 1px 5px 0 rgba(0, 0, 0, 0.16);
}

.form {
    display: flex;
    -webkit-flex-direction: column;
    align-items: center;
}

.form p, .form span {
    line-height: 16px;
}

.form-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.87);
}

.form-subtitle {
    text-align: center;
    margin-bottom: 16px;
}

.form-title-social-register {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.56);
    font-weight: 400;
    line-height: 1.14;
    padding-bottom: 1rem;
}

.social-sign-btn-wrap {
    display: flex;
    align-items: center;
}

.social-sign-btn {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: start;
    height: 50px;
    width: 200px;
    margin: 5px;
    border-radius: 4px;
    border: 1px solid rgb(151, 151, 151);
    color: rgba(0, 0, 0, 0.87);
}

.social-sign-btn:hover {
    border: 1px solid black;
    color: black;
}

.social-sign-btn > span {
    opacity: 0.8;
    font-size: 14px;
    letter-spacing: .4px;
    line-height: 16px;
}

.social-sign-btn > img {
    display: flex;
    height: 25px;
    margin: 0 10px;
}

.divider-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 328px;
    margin: 20px 0;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.56);
}

.divider {
    content: "";
    height: 1px;
    border-bottom: .5px solid #E8E8E8;
}

.divider-for-register {
    width: 26%;
}

.divider-for-login {
    width: 43%;
}

.form-item-wrapper {
    width: 80%;
    max-width: 328px;
    color: #6c6c6c;
    font-size: 14px;
    position: relative;
}

.form-toggle-btn-wrapper {
    margin-bottom: 24px;
}

.form-forgot-btn-wrapper {
    margin-bottom: 10px;
}

.info-text {
    margin-left: 12px;
    color:  rgba(0, 0, 0, 0.6);
    position: absolute;
    bottom: 6px;
}

.password-input {
    position: relative;
}

.btn-show-password {
    position: absolute;
    height: 22px;
    width: 24px;
    right: 18px;
    top: 18px;
    cursor: pointer;
}

.form-group-wrap-forgot-password {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.inputs-wrapper {
    display: flex;
    -webkit-flex-direction: column;
    align-items: center;
    width: 66%;
}

.terms-wrapper {
    display: flex;
    align-items: center;
    justify-content: start;
    margin: 4px 0 20px 0;
    font-size: 12px;
}

.keep-me-wrapper {
    display: flex;
    align-items: center;
    margin: 15px 0 20px 0;
    font-size: 12px;
}

.terms {
    margin: 0 4px;
}

.invalid-value {
    color: red;
}

.terms-of-service {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 46px 0 24px;
    padding: 64px 64px 32px 64px;
}

.terms-of-service p {
    font-size: 14px;
    margin:auto;
    color: rgba(0, 0, 0, 0.87);
}

.terms-of-service-wrapper {
    display: flex;
    justify-content: center;
    padding-top: 24px;
    background-color: rgba(0, 0, 0, 0.54);
    zoom: 1;
    z-index: 20;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
}

.terms-of-service-wrapper > * {
    overflow: auto;
    -webkit-transform: translateZ(0px);
}

.terms-of-service-btn-wrapper {
    display: flex;
    margin-top: 32px;
    justify-content: center;
    width: 100%;
}

.btn-terms-agree {
    width: 40%;
    max-width: 200px;
    margin-right: 16px;
    cursor: pointer;
}

.btn-terms-cancel {
    width: 40%;
    max-width: 200px;
    cursor: pointer;
}

/*Register and login pages*/
@media(min-width: 240px) and (max-width: 420px) {
    .footer-nav-menu {
        margin-bottom: 0;
    }
}

@media(min-width: 240px) and (max-width: 600px) {
    .main-bgc {
        background-color: white;
    }
    
    .form-wrapper, .terms-of-service {
        width: 100vw;
        box-shadow: none;
        margin: 0;
    }
}

@media(min-width: 240px) and (max-width: 768px) {
    .container {
        padding: 0px 0;
    }
    
    .form-item-wrapper {
        width: 94%;
    }
    
    .inputs-wrapper {
        width: 96%;
    }
    
    .social-sign-btn-wrap {
        flex-direction: column;
        height: 150px;
    }
    
    .divider-wrapper {
        margin: 20px 0;
    }
    
    .inputs-wrapper {
        margin-bottom: 0px;
    }
    
    .terms-wrapper * {
        font-size: 11px;
    }
    
    .footer {
        display: flex;
        flex-direction: column;
        padding: 10px 16px;
        background-color: rgb(255, 255, 255);
    }
    
    .footer-nav-menu a {
        margin-right: 21px;
        margin-bottom: 16px;
    }
    
    .footer span {
        margin-right: 0;
    }
}

@media(min-width: 720px) {
    .form-wrapper, .terms-of-service {
        min-width: 720px;
    }
    
    .footer {
        flex-direction: row;
    }
    
    .agreements-nav-menu-btn {
        margin-bottom: 10px;
    }
}

input:focus {
    border-color: rgb(41, 121, 255);
}

input:focus + label {
    color: rgb(41, 121, 255);
    top: 0;
}

#pass_second {
    padding-bottom: 5px;
}

#new_password, #new_password_confirm, #password_login {
    padding-bottom: 20px;
}
