html{
    height: -webkit-fill-available;
}

body{
    font-family: 'Montserrat';
    background-color: #fff;
}

main{
    display: flex !important;
    flex: 1;
    position: relative;
    overflow: visible !important;
}

h1,h2,h3,h4,h5,h6{
    text-transform: initial !important;
}


input, button{
    font-family: inherit;
}

button{
    font-size: 14px;
    font-weight: 500;
}

input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
}
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}
input[type=number] {
    -moz-appearance: textfield;
}
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

h3.auth-title{
    text-transform: initial;
}

.nowrap{
    white-space: nowrap;
}

.link{
    font-size: 14px;
    line-height: 14px;
    font-weight: 400;
    cursor: pointer;
    display: inline-block;
    color: #2196F3;
    border-bottom: 1px solid transparent;
}

.link:hover{
    border-color: #2196F3;
}

.auth-btn{
    cursor: pointer;
    width: 100%;
    transition: 0.3s ease;
    background: #fff;
    border-radius: 2px;
    border: 1px solid #DEDEDE;
    padding: 0 20px;
    height: 50px;
    line-height: 100%;
    color: #01142F;
    font-size: 14px;
    font-weight: 500;
}

.auth-btn span{
    color: inherit;
    font-weight: inherit;
    font-size: inherit;
}

.auth-btn:hover{
    border-color: #C8C8C8;
}

.auth-btn:active{
    background-color: #FAFAFA;
}

.auth-btn.auth-submit{
    background-color: #FFCE41;
    border: 1px solid #FFCE41;
}

.auth-btn.auth-submit:hover{
    background-color: #F1B300;
    border: 1px solid #F1B300;

}

.auth-btn.auth-submit:active{
    background-color: #DDA400;
    border: 1px solid #DDA400;
}

.auth-btn.disabled{
    pointer-events: none;
    color: #9A9DA7 !important;
    border: 1px solid #E7E7E7 !important;
    background-color: #E7E7E7 !important;
}

.container{
    margin: auto;
    max-width: 420px;
    width: calc(100% - 32px);
    text-align: center;
}

.container.full{
    width: 100%;
    max-width: 100%;
}

.auth-wrp{
    text-align: left;
    margin-top: -42px;
    display: flex;
    flex-direction: column;
    padding: 40px;
    background-color: #FAFAFA;
    border-radius: 8px;
}

.auth-title{
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 32px;
    line-height: 100%;
    text-align: center;
    text-transform: initial;
}

.auth-text{
    font-weight: 400;
    font-size: 14px;
    line-height: 160%;
}

.auth-title.auth-title--code{
    text-align: start;
    margin-bottom: 24px;
}

.auth-tabs{
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 24px;
    margin-bottom: 40px;
}

.auth-tab{
    user-select: none;
    padding: 2px 0;
    cursor: pointer;
    position: relative;
    font-weight: 700;
    font-size: 16px;
    line-height: 100%;
    transition: 0.3s ease;
    color: #aaadb4;
}

.auth-tab:hover{
    color: #7e828f;
}

.auth-tab.active{
    color: #1C253D;
}


.auth-tab:not(:first-child)::after{
    content: "";
    position: absolute;
    display: block;
    top: 50%;
    transform: translateY(-50%);
    left: -13px;
    width: 2px;
    height: 24px;
    background-color: #D8D8D8;
}


.auth-form-group{
    position: relative;
    margin-bottom: 40px;
}

.auth-form-group.error .auth-form-error{
    display: block;
}

.auth-form-error{
    display: none;
}

.auth-form-group.error .auth-form-input{
    border-color: #FD2012;
}

.auth-form-group.hide{
    display: none;
}

.auth-form-error{
    position: absolute;
    left: 0;
    top: 84px;
    font-weight: 400;
    font-size: 12px;
    line-height: 100%;
    color: #FD2012;
}

.auth-form-title{
    margin-bottom: 12px;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
}

.auth-form-input{
    transition: 0.3s ease;
    padding: 15px 18px;
    border: 1px solid #DEDEDE;
    border-radius: 2px;
    width: 100%;
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    background-color: #fff;
}

.auth-form-input::placeholder{
    color: #BBC0C6;
    font-weight: 400;
    font-size: 14px;
}

.auth-form-input:hover{
    border-color: #ADADAD;
}

.auth-form-input:focus{
    border-color: #1C253D;
}

.auth-link{
    margin-top: 16px;
    text-align: center;
}

.auth-link .link{
    font-weight: 500;
}

.auth-link-bottom{
    margin-top: 24px;
    font-weight: 500;
}

.auth-actions.auth-actions--code{
    margin-top: 98px;
}

.auth-desc{
    margin-bottom: 40px;
    font-weight: 400;
    font-size: 14px;
    line-height: 160%;
}

.auth-desc b{
    font-weight: 600;
}

.auth-desc span{
    font-size: 14px;
}


.auth-label{
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 14px;
    line-height: 100%
}


.auth-code{
    position: relative;
    margin-bottom: 12px;
    width: 100%;
    display: flex;
    background: #FFFFFF;
    border-radius: 2px;
    height: 50px;
    transition: 0.3s ease;
}

.auth-code.complete .auth-msg{
    color: #67C23A;
}

.auth-icon{
    display: none;
}

.auth-icon-info{
    display: block;
}

.auth-code.complete .auth-icon-complete{
    display: block;
}

.auth-code.error .auth-msg{
    color: #EF6142;
}

.auth-code.error .auth-icon-error{
    display: block;
}

.auth-code.error .auth-icon-complete{
    display: none;
}

.auth-code.complete .auth-icon-info,
.auth-code.error .auth-icon-info{
    display: none;
}

.auth-msg{
    pointer-events: none;
    height: 100%;
    cursor: default;
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    font-weight: 400;
    font-size: 12px;
    line-height: 1;
    color: #BBBBCC;
    display: flex;
    align-items: center;
    column-gap: 5px;
}

.auth-code > input{
    width: 100%;
    letter-spacing: 4px;
    border: 1px solid #DEDEDE;
    transition: 0.3s ease;
    font-size: 20px;
    line-height: 1;
    font-weight: 500;
    padding: 14px 20px 12px;
}

.auth-code > input:hover{
    border-color: #ADADAD;
}

.auth-code > input:focus{
    border-color: #1C253D;
}

.auth-code.complete > input{
    border: 1px solid #67C23A;
}

.auth-code.error > input{
    border: 1px solid #EF6142;
}

.auth-timer, .auth-reset{
    position: absolute;
    left: 0;
    top: 66px;
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
}

.auth-reset{
    top: 69px;
    line-height: 100%;
    cursor: pointer;
    font-weight: 500;
    color: #2196F3;
    border-bottom: 1px solid transparent;
}

.auth-reset:hover{
    border-color: #2196F3;
}


.flag{
    pointer-events: none;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-hints{
    position: absolute;
    z-index: 12;
    top: 82px;
    left: -1px;
    width: calc(100% + 2px);
    background: white;
    box-shadow: 0px 12px 24px rgb(0 0 0 / 10%);
    padding: 12px 0;
}


.auth-hint{
    padding: 8px 18px;
    font-weight: 400;
    font-size: 15px;
    line-height: 15px;
    cursor: pointer;
    transition: .3s ease;
    background-color: #fff;
}

.auth-hint.focus,
.auth-hint:hover{
    background: #f5f5f5;
}


/*toastify*/
.toastify{
    margin-top: 32px;
    z-index: 9;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.toastify-container{
    position: relative;
    margin: 0 auto;
    max-width: 1300px;
    width: calc(100vw - 32px);
    padding: 16px 48px 16px 16px;
    animation: slide-from-top 0.3s ease;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 12px;
}

.toastify-container.error{
    background: #FEEFEE;
    border: 1px solid #FD2012;
}

.toastify-container.error .toastify-icon-info{
    display: block;
}

.toastify-close{
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 16px;
    opacity: 0.4;
    transition: 0.3s ease;
    transform: translateY(-50%);
}

.toastify-close:hover{
    opacity: 1;
}

.toastify-text{
    font-weight: 400;
    font-size: 14px;
    line-height: 160%;
}

.toastify-icon-info{
    display: none;
}



/*Loading*/
.lds-ring {
    display: inline-block;
    position: relative;
    width: 20px;
    height: 20px;
}
.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 16px;
    height: 16px;
    margin: 4px;
    border: 2px solid var(--font-color);
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: var(--font-color) transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}
@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes slide-from-top {
    0%{
        transform: translateY(-50%);
    }
    100%{
        transform: translateY(0%);
    }
}

@media (max-width: 1080px) {
    body{
        min-height: unset !important;
    }
    main{
        padding-bottom: 48px;
        position: fixed;
        inset: 0;
        background-color: #fff;
    }
    .auth-wrp{
        margin-top: 0;
        padding: 32px 20px;
    }
    .toastify{
        margin-top: 76px;
    }
    .auth-actions.auth-actions--code{
        margin-top: 90px;
    }
    .auth-desc{
        margin-bottom: 32px;
    }
    .auth-title.auth-title--code{
        margin-bottom: 16px;
    }
    .auth-tabs{
        margin-bottom: 32px;
    }
    .auth-form-group{
        margin-bottom: 32px;
    }
}

/*For demo*/
.auth-wrp.demo{
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
    padding: 40px;
}
.auth-wrp.demo .auth-title{
    text-align: start;
    margin-bottom: 24px;
}

.auth-wrp.demo .auth-tabs{
    margin-top: 40px;
    justify-content: flex-start;
    margin-bottom: 24px;
}

.auth-wrp.demo .auth-actions.auth-actions--code{
    margin-top: 76px;
}

.auth-wrp.demo .toastify-container{
    width: calc(100% - 80px);
    margin: 40px auto 0;
}

.auth-wrp.demo .toastify{
    margin-top: 0;
    bottom: 0;
}

.auth-wrp.demo .toastify-bg{
    position: absolute;
    inset: 0;
    background-color: #fff;
    opacity: 0.8;
}

@media (max-width: 499px) {
    body{
        padding: 0 !important;
    }
    /*.auth-title{*/
    /*    font-size: 20px;*/
    /*}*/
    /*.auth-tab{*/
    /*    font-size: 14px;*/
    /*}*/
    /*.link,*/
    /*.auth-desc,*/
    /*.auth-desc span,*/
    /*.auth-label,*/
    /*.auth-link,*/
    /*.auth-reset,*/
    /*.auth-timer,*/
    /*.auth-form-title{*/
    /*    font-size: 12px;*/
    /*}*/
    /*.auth-btn,*/
    /*.auth-code{*/
    /*    height: 46px;*/
    /*    font-size: 12px;*/
    /*}*/
    /*.auth-code > input{*/
    /*    height: 46px;*/
    /*    font-size: 16px;*/
    /*}*/
    /*.auth-form-input{*/
    /*    font-size: 12px;*/
    /*    padding: 13px 18px;*/
    /*}*/
    /*.auth-form-error{*/
    /*    top: 74px;*/
    /*}*/
    /*.auth-timer,*/
    /*.auth-reset{*/
    /*    top: 54px;*/
    /*}*/
    /*.auth-form-error{*/
    /*    font-size: 10px;*/
    /*}*/
    .auth-wrp.demo{
        padding: 24px 16px;
    }
    .auth-wrp.demo .toastify-container{
        left: 16px;
        top: 16px;
        right: 16px;
        margin: 0;
        width: calc(100% - 32px);
    }
    .auth-wrp.demo .toastify-close{
        top: 50%;
        transform: translateY(-50%);
    }
    .auth-wrp.demo .auth-title.auth-title--code{
        margin-bottom: 16px;
    }
    .auth-wrp.demo .auth-desc{
        margin-bottom: 32px;
    }

}