:root {
    /* Настройки кнопок переключения по вкладкам "Войти" и "Создать аккаунт" */
    --background-color-button-switch: #5FC7AE;
    --background-color-button-switch-hover: #676767;

    /* Настройки кнопки снизу войти и создать аккаунт */
    --color-text-button-confirm: #323232;
    --background-color-button-confirm: none;
    --padding-button-confirm: 0;
    --border-radius-button-confirm: 5px
}

.cd-user-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1039;
    overflow-y: auto;
    cursor: pointer;
    visibility: hidden;
    opacity: 0;
    -webkit-transition: .5s ease;
    -moz-transition: .5s ease;
    -ms-transition: .5s ease;
    -o-transition: .5s ease;
    transition: .5s ease;
}

.cd-user-modal.is-visible {
    visibility: visible;
    opacity: 1;
}

.cd-user-modal.is-visible .cd-user-modal-container {
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
}

.cd-user-modal-container {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: #FFF;
    margin: 10% auto 0;
    cursor: auto;
    -webkit-transform: translateY(-70px);
    -moz-transform: translateY(-70px);
    -ms-transform: translateY(-70px);
    -o-transform: translateY(-70px);
    transform: translateY(-70px);
    -webkit-transition-property: -webkit-transform;
    -moz-transition-property: -moz-transform;
    -ms-transition-property: -moz-transform;
    -o-transition-property: -moz-transform;
    transition-property: transform;
    -webkit-transition-duration: 0.8s;
    -moz-transition-duration: 0.8s;
    -ms-transition-duration: 0.8s;
    -o-transition-duration: 0.8s;
    transition-duration: 0.8s;
}

.cd-user-modal-container .cd-switcher {
    list-style: none;
    padding: 0;
}

.cd-user-modal-container .cd-switcher:after {
    content: "";
    display: table;
    clear: both;
}

.cd-user-modal-container .cd-switcher li {
    width: 50%;
    float: left;
    text-align: center;
}

.cd-user-modal-container .cd-switcher a {
    display: block;
    width: 100%;
    height: 50px;
    line-height: 50px;
    font-weight: 600;
    background: var(--background-color-button-switch);
    color: #fff;
    font-size: 18px;
    text-transform: uppercase;
    text-decoration: none;
    -webkit-transition: .3s ease;
    -moz-transition: .3s ease;
    -ms-transition: .3s ease;
    -o-transition: .3s ease;
    transition: .3s ease;
}

.cd-user-modal-container .cd-switcher a:hover {
    background: var(--background-color-button-switch-hover);
}

.cd-user-modal-container .cd-switcher a.selected {
    background: #fff;
    color: #323232;
}

@media only screen and (min-width: 600px) {
    .cd-user-modal-container .cd-switcher a {
        height: 50px;
        line-height: 50px;
    }
}

.cd-form {
    padding: 1.4em;
}

.cd-form .fieldset {
    position: relative;
    margin: 1.4em 0;
}

.cd-form .fieldset:first-child {
    margin-top: 0;
}

.cd-form .fieldset:last-child {
    margin-bottom: 0;
}

.cd-form .fieldset a {
    color: var(--background-color-button-switch);
}

.cd-form label {
    font-size: 16px;
    color: #444;
    font-weight: 400;
}

.cd-form label.image-replace {
    display: inline-block;
    position: absolute;
    left: 15px;
    top: 50%;
    bottom: auto;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
    color: transparent;
    text-shadow: none;
    background-repeat: no-repeat;
    background-position: 50% 0;
}

.cd-form label.cd-username {}

.cd-form label.cd-email {}

.cd-form label.cd-password {}

.cd-form input {
    margin: 0;
    padding: 0;
    width: auto;
    height: auto;
}

.cd-form input.full-width {
    width: 100%;
}

.cd-form input.has-padding {
    padding: 5px 20px 5px 20px;
}

.cd-form input.has-border {
    border: 1px solid #d2d8d8;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    -o-appearance: none;
    appearance: none;
}

.cd-form input.has-border:focus {
    border-color: var(--background-color-button-switch);
    outline: none;
}

.cd-form input.has-error {
    border: 1px solid #d76666;
}

.cd-form input[type=password] {
    /* space left for the HIDE button */
    padding-right: 65px;
}


.cd-form #remember-me {
    border: medium none;
    cursor: pointer;
    position: relative;
    height: 16px;
    width: 16px;
}

.cd-form #remember-me:checked {
    accent-color: var(--background-color-button-switch);
}

.cd-form #accept-terms {
    border: medium none;
    cursor: pointer;
    position: relative;
    height: 16px;
    width: 16px;
}

.cd-form #accept-terms:checked {
    accent-color: var(--background-color-button-switch);
}

.cd-form input[type=submit]:hover {
    background: #ff8a73;
}

form.cd-form button {
    background: #f1f1f1 none repeat scroll 0 0;
    border-radius: 25px;
    box-shadow: 0 0 4px 4px #e2e2e2;
    color: #5fc7ae;
    display: block;
    margin: 0 auto;
    font-family: "Montserrat",sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 33px;
    text-transform: uppercase;
    top: 19px;
    -webkit-transition: all 0.5s ease 0s;
    -o-transition: all 0.5s ease 0s;
    transition: all 0.5s ease 0s;
}

form.cd-form button:hover {
    box-shadow: 0 0 4px 4px #59BBA3;
    color: #fff;
    background: #5FC7AE;
}

@media only screen and (min-width: 600px) {
    .cd-form {
        padding: 2em;
    }
    .cd-form .fieldset:first-child {
        margin-top: 0;
    }
    .cd-form .fieldset:last-child {
        margin-bottom: 0;
    }
    .cd-form input.has-padding {
        padding: 5px 20px 5px 20px;
    }
    .cd-form input[type=submit] {
        padding: 16px 0;
    }
}

.cd-form-message {
    padding: 10px 15px 0;
    font-size: 16px;
    line-height: 1.4;
    text-align: justify;
}

.cd-form-bottom-message {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 16px;
    margin-top: 10px;
}

.cd-form-bottom-message a {
    color: #FFF;
    text-decoration: none;
}

.cd-form-bottom-message a:hover {
    text-decoration: none;
    color: #ff9900;
}

#cd-login,
#cd-signup,
#cd-reset-password {
    display: none;
}

#cd-login.is-selected,
#cd-signup.is-selected,
#cd-reset-password.is-selected {
    display: block;
}