.account-drawer {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 31;
    pointer-events: none;
    transition: all .4s ease;
}

.account-drawer--active {
    opacity: 1;
    pointer-events: all;
}

.account-drawer__container {
    width: 100%;
    max-width: 650px;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    color: #281D18;
    background: #FFFEF9;
    transform: translateX(100%);
    transition: all .4s ease;
}

.account-drawer--active .account-drawer__container {
    transform: translateX(0);
}

.account-drawer__close {
    position: absolute;
    top: 25px;
    right: 25px;
    cursor: pointer;
}

.account-form {
    height: 100%;
    max-height: 0;
    font-size: 14px;
    padding: 0;
    opacity: 0;
    transition: all .4s ease;
    box-sizing: border-box;
    overflow-y: auto;
    scrollbar-width: thin;
    /* pointer-events: none; */
}

.account-form--active {
    max-height: 100svh;
    padding: 240px 75px;
    opacity: 1;
    pointer-events: all;
}

.account-form__title {
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 80px;
}

.account-form__title--reset {
    margin-bottom: 30px;
}

.account-form__main {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.account-form__input {
    width: 100%;
    height: 55px;
    position: relative;
}

.account-form__input input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    background: #FFFEF9;
    border: 1px solid #E7E7E7;
    padding: 19px 13px;
    padding-right: 40px;
    box-sizing: border-box;
    cursor: default;
    transition: all .4s ease;
}

.account-form__input input::placeholder {
    color: #AAAAAA;
    font-weight: 300;
    transition: all .4s ease;
}

.account-form__input input:hover {
    border: 1px solid #AAAAAA;
}

.account-form__input input:focus {
    border: 1px solid #281D18;
}

.account-form__input input:focus::placeholder {
    color: #281D18;
    font-weight: 400;
}

.account-form__input-btn {
    height: 100%;
    position: absolute;
    top: 0;
    right: 10px;
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
    transition: all .4s ease;
}

.account-form__input-btn--active {
    opacity: 1;
    pointer-events: all;
}

.account-form__link {
    color: #281D18;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
    transition: all .4s ease;
}

.account-form__link:hover {
    text-underline-offset: 2px;
}

.account-form__link--reset {
    width: max-content;
    align-self: flex-end;
}

.account-form__submit {
    height: 55px;
    position: relative;
    color: #FFFEF9;
    font-size: 14px;
    text-transform: uppercase;
    background: #281D18;
    border: 1px solid #281D18;
    margin-top: 5px;
    cursor: pointer;
}

.account-form__submit:after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #FFFEF9;
    transform: scaleX(0);
    transform-origin: left;
    transition: all 0.4s ease;
}

.account-form__submit span {
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.account-form__submit:hover:after {
    transform: scaleX(1);
}

.account-form__submit:hover span {
    color: #281D18;
}

.account-form__checkboxes {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 10px 0;
}

.account-form__checkboxes label {
    display: flex;
    align-items: stretch;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
}

.account-form__checkboxes input {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border: 1px solid #281D18;
    background: #FFFEF9;
    appearance: none;
    position: relative;
    margin-top: 2px;
    transition: all .4s ease;
}

.account-form__checkboxes input:checked {
    background: #281D18;
}

.account-form__checkboxes input:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    color: #FFFEF9;
    font-size: 14px;
    line-height: 1;
}

.account-form__text {
    text-align: center;
}

.account-form__text--reset {
    max-width: 270px;
    text-align: left;
    margin-bottom: 25px;
}

.account-drawer__overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

@media (max-width: 768px) {
    .account-drawer__close {
        top: 20px;
        right: 20px;
    }

    .account-form {
        font-size: 12px;
        padding: 0;
    }

    .account-form__header {
        padding: 50px 35px 25px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .account-form__title {
        font-size: 16px;
        margin-bottom: 0;
    }

    .account-form__main {
        padding: 50px 35px;
    }

    .account-form__main--reset {
        padding-top: 40px;
    }

    .account-form__input {
        height: 50px;
    }

    .account-form__input-btn {
        right: 8px;
    }

    .account-form__checkboxes label {
        gap: 8px;
        font-size: 12px;
    }

    .account-form__submit {
        height: 50px;
        margin-top: 0;
    }

    .account-form__text--reset {
        max-width: 260px;
        margin-bottom: 20px;
    }
}