.pin-header {
    display: flex;
    align-items: center;
    height: 108px;
}

.pin-header img {
    display: block;
    margin: auto;
    width: 72px;
    height: auto;
    object-fit: cover;
}

.pin-form-block {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
}

.pin-form-item {
    position: relative;
    margin: 9px 9px 0;
    width: 12px;
    height: 18px;
}

.pin-form-item::before {
    content: "";
    position: absolute;
    bottom: 0;
    width: 12px;
    height: 2px;
    background: #B7BAC2;
    transition: 108ms;
}

.pin-form-item.enter__number::before {
    bottom: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #576BF5;
}

#reset-btn {
    margin: 0 auto 18px;
    width: 90px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    font-size: 1.44rem;
    color: #B7BAC2;
}

.pin-kb-block {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: auto;
    width: 243px;
    padding: 0 18px;
}

.pin-kb-item {
    width: 81px;
    height: 81px;
    line-height: 81px;
    text-align: center;
    font-size: 2.7rem;
    font-weight: 500;
}

#pin.error .pin-kb-item {
    color: #EB5659;
}

#pin.error .pin-form-item.enter__number::before {
    background: #EB5659;
}

#pin.error {
    animation: sway 432ms;
}

@keyframes sway {
    0% {
        transform: translateX(-9px);
    }

    20% {
        transform: translateX(9px);
    }

    40% {
        transform: translateX(-9px);
    }

    60% {
        transform: translateX(9px);
    }

    80% {
        transform: translateX(-9px);
    }

    100% {
        transform: translateX(0px);
    }
}