.auth{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    height: 100vh;
    overflow: auto;
    padding: 2% 0;
}
.sections .section{
    width: 410px;
    max-width: 98%;
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    margin: 5px auto;
    box-shadow: 0 5px 15px 0 rgba(31,32,35,.07);
}
.logo img{
    width: 116px;
    margin: 0 auto;
    display: block;
}
.logo a{
    display: block;
    width: fit-content;
    margin: 0 auto;
}
.section .title{
    font-size: 16px;
    color: #333;
    margin-top: 36px;
    font-weight: bold;
}
.section[section="code"],
.section[section="password"]{
    display: none;
}
.agree{
    margin-top: 34px;
    text-align: center;
    font-size: 12px;
    color: #565656;
}
.field:not(:first-child){
    margin-top: 20px;
}
.field label{
    display: block;
}
.field label.code-email,
.field label.code-sms{
    display: none;
}
.field input{
    height: 48px !important;
    border-radius: 8px;
    width: 100%;
    border: 1px solid #bbb;
    outline: 0;
    padding: 3px 15px;
    margin-top: 10px;
    font-size: 14px;
}
.fields{
    margin-top: 20px;
}
.submit{
    background: var(--theme-color, #8B5CF6);
    height: 48px;
    text-align: center;
    font-size: 15px;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    margin-top: 32px;
    transition: background-color .35s ease-in-out;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.submit:not([disable="1"]):not(.is-loading):hover{
    background: var(--theme-color-hover, #7C3AED);
}
.submit[disable="1"],
.submit.is-loading{
    background: #b9b9b9;
    pointer-events: none;
    cursor: wait;
}
.submit[disable="1"]:after,
.submit.is-loading:after{
    content: '';
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #fff;
    border-right-color: transparent !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    animation: spin 1s linear infinite;
}
.send-again{
    margin-top: 36px;
    text-align: center;
    font-size: 13px;
    color: #666;
    min-height: 24px;
}
.send-again .resend-code{
    display: none;
    color: #19bfd3;
    font-weight: 700;
}
.send-again .timer-wrap{
    display: inline-block;
}
.links{
    margin-top: 20px;
}
.links a{
    color: #19bfd3;
    padding-right: 16px;
    position: relative;
}
.links a:before{
    content: '';
    width: 4px;
    height: 4px;
    border: 2px solid;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    right: 2px;
    border-radius: 2px;
    border-color: #19bfd3 #19bfd3 transparent transparent;
    transform: rotate(-135deg);
}
.links > div:not(:first-child){
    margin-top: 2px;
}
.timer{
    display: inline-block;
    min-width: 38px;
    margin: 0 2px;
}
.field .error{
    color: #b2001a;
    font-size: 12px;
    margin: 3px 4px;
    display: none;
}
.field[has-error="1"] input{
    border-color: #d32f2f;
}
.field[has-error="1"] .auth-code-digit{
    border-color: #d32f2f;
}

.field[has-error="1"] .error{
    display: block;
}

.field[field="code"] .error{
    display: none !important;
}

.auth-code-inputs{
    display: flex;
    justify-content: center;
    gap: 10px;
    direction: ltr;
    width: 90%;
    margin: 36px auto 0;
}

.auth-code-inputs input{
    height: 52px !important;
    line-height: 52px !important;
}

.auth-code-digit{
    width: 46px;
    height: 52px;
    margin-top: 0 !important;
    padding: 0 !important;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0;
    border-radius: 10px;
    border: 1px solid #bbb;
    outline: 0;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.auth-code-digit:focus{
    border-color: #5980cd;
    box-shadow: 0 0 0 3px rgba(89,128,205,.15);
}

@media (max-width: 420px){
    .auth-code-inputs{
        gap: 8px;
    }

    .auth-code-digit{
        width: 40px;
        height: 48px;
        font-size: 20px;
    }
}

@-webkit-keyframes spin {
    0%   {-webkit-transform: rotate(0deg)}
    100% {-webkit-transform: rotate(360deg)}
}
@keyframes spin {
    0%   {transform: rotate(0deg)}
    100% {transform: rotate(360deg)}
}