.app-beeline.auth-screen {
    background: #F1F3F5;
}

.back-btn {
    position: absolute;
    left: -80px;
    top: 0;
    width: 40px;
    height: 40px;
    align-items: center;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    cursor: pointer;
    background-size: 18px 18px;
    background-image: url('../../../../web/images/auth-back-btn.svg');
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

.back-btn:hover {
    border-color: #111111;
}

.main-wrap__cell {
    display: grid;
    min-height: 100vh;
    min-height: 100svh;
    grid-template-rows: 1fr minmax(200px, min-content) 1fr auto;
}

.main-wrap {
    max-width: 476px;
    width: 100%;
    padding: 0 10px;
}

.form-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 48px;
    width: 100%;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1), 0px 4px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}


.form-wrap form {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.form-field__header,
.form-wrap label {
    font-size: 17px;
    line-height: 22px;
}

input[type="text"].form-input {
    margin-top: 12px;
    margin-bottom: 12px;
    border: 1px solid transparent;
    background: rgba(0, 0, 0, 0.1);
}

input[type="text"].form-input:focus {
    background: #fff;
    border: 1px solid #111;
}

.form__logo {
    background: none;
    width: 100px;
    height: 45px;
    margin: auto auto 20px auto;
}

.form__logo img {
    height: 45px;
}

.form__logo img:nth-child(2) {
    margin: 0 18px;
}

.form__title {
    padding: 0 0 24px 0;
    text-align: left;
    font-size: 26px;
    line-height: 32px;
    display: flex;
    letter-spacing: 0.2px;
    font-weight: 500;
}

.form-wrap .form-button {
    width: auto;
    padding: 0 20px;
    color: rgba(0, 0, 0, 0.87);
    background: #FDD835;
    letter-spacing: 0.2px;
    font-size: 17px;
    align-self: flex-start;
    margin-top: 24px;
}

.form-wrap .form-button--error {
    margin-top: 24px;
}

.form-wrap .form-button:hover,
.form-wrap .form-button:active,
.form-wrap .form-button:focus {
    background: #FDD835;
}

.reg-footer {
    margin-top: 24px;
    color: rgba(0, 0, 0, 0.38);
}

.reg-terms a {
    text-decoration: underline;
}

.reg-terms,
.reg-terms a {
    font-size: 15px;
    line-height: 18px;
    text-align: center;
    letter-spacing: 0.2px;
    color: rgba(0, 0, 0, 0.38);
    mix-blend-mode: normal;
}

.form-error {
    padding: 0;
    font-size: 15px;
}

.progressbar {
    flex: 1 1;
    height: 4px;
    width: 100%;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.progressbar__bar {
    height: 4px;
    background: linear-gradient(88.87deg, #FECA48 -2.46%, #FF7D5D 20.58%, #B732A2 49.09%, #621A9F 80.89%, #030013 115.95%);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.progressbar--auth {
    margin: 12px auto;
}

.auth-form-countdown {
    width: 100%;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 17px;
    line-height: 22px;
}

.auth-form-countdown__change-number-btn {
    cursor: pointer;
}

.form-sms-confirm {
    margin: 14px 0 24px;
}

.form-sms-confirm .form-input--code {
    opacity: 0;
    height: 48px;
    width: 172px;
}

.form-input__code {
    position: absolute;
    display: flex;
    grid-gap: 4px;
    pointer-events: none;
}

.form-input__code-symbol {
    position: relative;
    width: 40px;
    height: 48px;
    background: #f2f3f7;
    border-radius: 12px;
    font-size: 17px;
    line-height: 48px;
    text-align: center;
    transition: background 300ms ease-out;
}

.form-input__code--error .form-input__code-symbol {
    background: #ffecef;
}

.form-input__code-symbol.active:after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(0, -50%);
    width: 1px;
    height: 19px;
    background: #111111;
    animation: 1s steps(2, start) flash-cursor infinite;
}

.form-sms-confirm.completed .form-input__code-symbol.active:after {
    left: 64%;
}

@keyframes flash-cursor {
    to {
        visibility: hidden;
    }
}

.form-sms-confirm__error {
    margin-top: 14px;
    color: #f73434;
}

.form-sms-confirm__countdown {
    display: flex;
    align-items: center;
}

.form-sms-confirm__countdown .auth-form-countdown__countdown {
    margin-left: 5px;
}

.form-sms-confirm__new-code {
    cursor: pointer;
}

.form-sms-confirm__new-code .auth-form-countdown__change-number-btn {
    margin-right: 11px;
}

.auth-error {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 48px;
    border-radius: 8px;
    background: #FFECEF;
}

.auth-error__icon {
    width: 100%;
    max-width: 52px;
    max-height: 20px;
    flex: 1 1 52px;
    height: 20px;
    background-size: 20px 20px;
    background-image: url('../../../../web/images/exclamation-error.svg');
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

.auth-error__text {
    margin: 0;
    padding: 0;
    font-size: 15px;
    flex: 1 1;
}

.auth-alternative {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    font-size: 17px;
    line-height: 20px;
    margin: 24px 0;
}

.auth-alternative:before,
.auth-alternative:after {
    content: '';
    width: 50%;
    height: 1px;
    background: #E5E5E5;
}

.auth-social {
    display: flex;
    gap: 10px 0;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.auth-social .form-button {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #EF3124;
    color: #FFFFFF;
    line-height: unset;
    margin: 0;
}

.auth-social .form-button:hover,
.auth-social .form-button:active,
.auth-social .form-button:focus {
    background: #EF3124;
    color: #FFFFFF;
    opacity: 0.8;
}

.auth-social .form-button > svg {
    height: 24px;
}

.auth-social__hint {
    font-size: 13px;
    color: #959595;
}

@media screen and (max-width: 700px) {
    .back-btn {
        left: 0;
        top: -64px;
    }
}

@media screen and (max-width: 382px) {
    .form-wrap {
        margin-left: 0;
        margin-right: 0;
    }


    .back-btn {
        left: 12px;
        top: 12px;
        width: 28px;
        height: 28px;
        border-radius: 8px;
    }
}
