:root {
    --text-color: #494949;
    --link-color: #204EC6;
}

* {
    box-sizing: inherit;
}

html {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
}

.background-container {
    width: 100%;
    height: 100vh;
    background: no-repeat center / cover;
}

/* menu switch form */
.control-switch-form {
    position: fixed;
    z-index: 10;
}

.control-switch-btn {
    min-width: 213px;
    cursor: pointer;
}

#radio-login,
#radio-register,
#radio-change-password,
#radio-auth-code,
#radio-premium {
    display: none;
}

/* login form */
#radio-login:checked ~ #login {
    display: block;
}


.auth-row {
    justify-content: end;
    align-items: center;
    height: 100vh;
}

.auth-form {
    background: linear-gradient(177.65deg, rgba(255, 255, 255, 0.65) 1.22%, rgba(255, 255, 255, 0.35) 94.99%);
    backdrop-filter: blur(15px);
    border: 1px solid #fff;
    border-radius: 15px;
    padding: 40px 0;
}

.auth-form__title {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.auth-form__help {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 30px;
}

.auth-form__help-text {
    margin-right: 2px;
}

.auth-form__help-link {
    color: var(--link-color);
    font-weight: 600;
}

.auth-form__form {
    margin: auto;
    width: 284px;
    max-width: calc(100% - 40px);
}

.auth-form__form--login {

}


.auth-form__input,
.auth-form__select {
    border-radius: 10px;
    margin-bottom: 12px;
    height: 36px;
    font-size: 14px;
}

.auth-form__check {
    display: flex;
    justify-content: space-between;
}

.auth-form__checkbox-lable {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.auth-form__checkbox {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.auth-form__checkbox::after {
    position: relative;
    top: 6px;
    right: -8px;
    content: "";
    display: none;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.auth-form__checkbox:checked::after {
    display: block;
}

.auth-form__checkbox:checked {
    background-color: var(--link-color);
}

.auth-form__forget-password-link {
    font-weight: 600;
    color: var(--link-color);
}

.auth-form__control {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
}

.auth-form__btn {
    margin: auto;
    height: 46px;
    min-width: 168px;
    border-radius: 30px;
    background-color: var(--link-color);
    border-color: var(--link-color);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
}

.auth-form__btn--small {
    margin: unset;
    min-width: 116px;
}

.auth-form__btn--transparent {
    background-color: transparent;
    color: var(--link-color);
}

.auth-form__social-text {
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    padding: 0 16px;
    margin-top: 30px;
    margin-bottom: 22px;
}

.auth-form__social-text::after,
.auth-form__social-text::before {
    content: "";
    display: block;
    background-color: var(--text-color);
    height: 1px;
    width: 50px;
}

.auth-form__social {
    text-align: center;
    margin-bottom: 30px;

}

.auth-form__social-link,
.auth-form__social-icon,
.auth-form__social-icon::after {
    position: relative;
    width: 38px;
    height: 38px;
    line-height: 38px;
    border-radius: 50%;
}

.auth-form__social-link {
    text-decoration: none;
    display: inline-block;
    margin: 0 8px;
}

.auth-form__social-icon {
    position: relative;
    background-color: #fff;
    font-size: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #DBE2E8 14.61%, #EEF2F4 37.86%, #FBFCFC 62.08%, #FFFFFF 85.39%);
}

.auth-form__social-icon--fb {
    color: #294DA5;
}

.auth-form__social-icon--google {
    color: #BE463A;
}

.auth-form__social-icon::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    border: 1px solid #fff;
    outline: 4px solid #EEF2F4;
    border-radius: 50%;
}

.auth-form__policy-link {
    display: block;
    text-align: center;
    color: var(--link-color);
    font-size: 14px;
    font-weight: 600;
}

/* register */

#radio-register:checked ~ #register {
    display: block;
}

.auth-form__form--register {
    width: calc(100% - 64px);
}

.auth-form__form-title {
    font-size: 20px;
    font-weight: 600;
}

.account-status__control {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 18px 0;
}


.account-status__btn {
    background-color: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin: 0 4px;
}

.account-status__btn--active {
    background-color: #204EC6;
    color: #fff;
}

.account-status__btn--premium {
    background-color: #FFCC00;
}

.account-status__btn-icon {
    margin-right: 4px;
}

.account-status__sync-icon {
    cursor: pointer;
    opacity: 0.8;
    margin-left: 4px;
}

.account-status__sync-icon:hover {
    opacity: 1;
}

.auth-form__select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    position: relative;
    background: #fff url(../img/select-arrow/arrow.png) no-repeat calc(100% - 16px) 50%;
}

.auth-form__checkbox-label--small {
    font-size: 14px;
}

.auth-form__checkbox-label--small > .auth-form__policy-link {
    margin-left: 4px;
}

/* change password */
#radio-change-password:checked ~ #change-password {
    display: block;
}

#change-password {
    display: none;
}

/* auth code */
#auth-code {
    display: none;
}

#radio-auth-code:checked ~ #auth-code {
    display: block;
}

.auth-form__code {
    display: flex;
    max-width: 230px;
    margin: auto;
    justify-content: space-between;
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 34px;
}

.auth-form__code-item {
    position: relative;
    width: 30px;
    text-align: center;
}

.auth-form__code-text {
    line-height: 36px;
    margin-bottom: 0px;
}

.auth-form__code-item::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
    border-bottom: 1px solid #000;
}

.auth-form__code-item::before {
    content: "";
    display: none;
    position: absolute;
    height: 25px;
    top: 50%;
    left: 4px;
    transform: translateY(-50%);
    border-left: 1px solid #000;
    animation: flicker linear 1s infinite;
}

.auth-form__code-item--ediable::before {
    display: block;
}

@keyframes flicker {
    0%, 50% {
        opacity: 0;
    }

    51%, 100% {
        opacity: 1;
    }
}

/* premium*/
#premium {
    display: none;
}

#radio-premium:checked ~ #premium{
    display: block;
}

.row-premium {
    /* padding: 0 112px; */
    justify-content: center;
}

.premium__item {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 15px;
    padding: 30px 10px;
    text-align: center;
    height: 100%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
    transition: transform ease-in-out 0.2s;
}

.premium__item:hover {
    transform: translateY(-20px);
}

.premium__item-title {
    font-size: 24px;
    font-weight: 600;
}

.premium__price {
    text-align: center;
    font-size: 36px;
    font-weight: 600;
    color: var(--link-color);
    margin-top: 30px;
}

.premium__price-text {
    position: relative;
}

.premium__price-unit {
    position: absolute;
    top: 15px;
    left: 100%;
    font-size: 24px;
}

.premium__duration {
    display: block;
    font-size: 18px;
}

.premium__feature-list {
    flex: 1;
    list-style: none;
    padding-left: 0;
    margin-top: 42px;
    color: var(--text-color);
}

.premium__feature-item {
    font-size: 16px;
}

.premium__feature-icon {
    color: #18AA2E;
    margin-right: 8px;
}

.premium__ribbon-img {
    display: none;
    position: absolute;
    top: -10px;
    right: 14px;
    width: 38px;
}

.premium__item-active .premium__ribbon-img{
    display: block;
}
