:root {
    /* Настройки кнопок переключения по вкладкам "Войти" и "Создать аккаунт" */
    --background-color-button-switch:  #f53e54;
    --background-color-button-switch-hover: rgba(34, 34, 34, 0.9);

    /* Настройки кнопки снизу войти и создать аккаунт */
    --color-text-button-confirm: #fff;
    --background-color-button-confirm: #222;
    --padding-button-confirm: 10px 40px;
    --border-radius-button-confirm: 30px
}

.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: 600px;
    background: #FFF;
    margin: 10% auto 0;
    cursor: auto;
    border-radius: 5px;
    -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: 70px;
        line-height: 70px;
    }
}

.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 label {
    font-size: 16px;
    color: #444;
    font-weight: 400;
}

.cd-form label a {
    color: var(--background-color-button-switch);
}

/* .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;
    border-radius: 0.25em;
}

.cd-form input.full-width {
    width: 100%;
}

.cd-form input.has-padding {
    padding: 12px 20px 12px 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;
}

.cd-form #remember-me:checked {
    background: var(--background-color-button-switch);
    color: #f6f6f6;
}

.cd-form input[type=submit]:hover {
    background: #ff8a73;
}

form.cd-form button {
    background: var(--background-color-button-confirm);
    padding: var(--padding-button-confirm);
    display: block;
    margin: 0 auto;
    color: var(--color-text-button-confirm);
    border-radius: var(--border-radius-button-confirm);
}

@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: 10px 20px 10px 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;
}

.form-group input {
    width: 100%;
    padding: 10px 10px 10px 5px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder {
    color: transparent;
}

.form-group label {
    position: absolute;
    top: 12px;
    left: 21px;
    font-size: 14px;
    color: #999;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:not(:placeholder-shown) + label {
    top: -12px;
    left: 11px;
    font-size: 14px;
    color: var(--background-color-button-switch);
    background-color: #fff;
    padding: 0 5px;
}

.form-group input:focus {
    border-color: var(--background-color-button-switch);
}

#accept-terms {
    accent-color: var(--background-color-button-switch);
    width: 16px;
    height: 16px;
}

#remember-me {
    accent-color: var(--background-color-button-switch);
    width: 16px;
    height: 16px;
}