.modal.auth-modal-shell {
    display: none;
    box-sizing: border-box;
    width: calc(100% - 32px) !important;
    max-width: 432px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
    color: #2b2b2b;
    z-index: 9999;
}

.modal.auth-modal-shell,
.modal.auth-modal-shell * {
    box-sizing: border-box;
    letter-spacing: 0;
}

.modal.auth-modal-shell form {
    margin: 0;
}

.auth-modal_card {
    position: relative;
    padding: 28px 26px 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    font-size: 15px;
}

.auth-modal_close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f2f2f2;
    color: #888;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.auth-modal_close:hover {
    background: #e6e6e6;
    color: #555;
}

.auth-modal_head {
    margin: 0 22px 22px;
    text-align: center;
}

.auth-modal_title {
    margin: 0 !important;
    color: #2b2b2b;
    font-size: 20px !important;
    font-weight: 800;
    line-height: 1.5;
}

.auth-modal_free {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 5px;
    border-radius: 4px;
    background: #ea6123;
    color: #fff;
    font-size: 15px;
    line-height: 1.4;
    vertical-align: 1px;
}

.auth-modal_subtitle {
    margin: 7px 0 0 !important;
    color: #8a8a8a;
    font-size: 15px !important;
    font-weight: 400;
    line-height: 1.6;
}

.auth-modal_error {
    margin: -8px 0 16px;
    padding: 10px 12px;
    border: 1px solid #efb1aa;
    border-radius: 6px;
    background: #fff4f2;
    color: #c83c2c;
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
}

.auth-modal_social-list,
.auth-modal_stack {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.auth-modal_social,
.auth-modal_email-link,
.auth-modal_submit {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-width: 0 !important;
    height: 52px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1.5px solid transparent !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
}

.auth-modal_social--line {
    background: #06c755 !important;
    box-shadow: 0 4px 12px rgba(6, 199, 85, .3);
    color: #fff !important;
}

.auth-modal_social--line:hover {
    background: #05b34c !important;
}

.auth-modal_social--google {
    border-color: #dadce0 !important;
    background: #fff !important;
    color: #3c4043 !important;
}

.auth-modal_social--google:hover {
    background: #f8f9fa !important;
}

.auth-modal_line-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    margin-right: 10px;
    border-radius: 4px;
    object-fit: contain;
}

.auth-modal_google-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    margin-right: 10px;
    object-fit: contain;
}

.auth-modal_divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px;
}

.auth-modal_divider::before,
.auth-modal_divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ececec;
}

.auth-modal_divider span {
    color: #8a8a8a;
    font-size: 15px;
    line-height: 1.4;
    white-space: nowrap;
}

.auth-modal_field {
    position: relative;
    margin: 0 0 14px;
}

.auth-modal_suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    display: none;
    width: 100%;
    margin: -1px 0 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #dcdcdc;
    border-radius: 0 0 10px 10px;
    background: #fff;
    box-shadow: 0 5px 12px rgba(0, 0, 0, .12);
    list-style: none;
}

.auth-modal_suggestions.is-open {
    display: block;
}

.auth-modal_suggestion {
    display: block;
    width: 100%;
    margin: 0;
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px dotted #aaa;
    background: #fff;
    color: #2b2b2b;
    font-size: 15px;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}

.auth-modal_suggestion:last-child {
    border-bottom: 0;
}

.auth-modal_suggestion:hover,
.auth-modal_suggestion.is-active {
    background: #f3f5f7;
}

.auth-modal_label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 6px !important;
    color: #2b2b2b;
    font-size: 15px !important;
    font-weight: 600;
    line-height: 1.5;
}

.auth-modal_label-main {
    display: flex;
    align-items: center;
    gap: 7px;
}

.auth-modal_required {
    padding: 2px 6px;
    border-radius: 3px;
    background: #e53935;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.4;
}

.modal.auth-modal-shell .auth-modal_input {
    width: 100% !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1.5px solid #dcdcdc !important;
    border-radius: 10px !important;
    background: #fafafa !important;
    color: #2b2b2b !important;
    font-size: 15px !important;
    line-height: normal !important;
}

.modal.auth-modal-shell .auth-modal_input:focus {
    border-color: #ea6123 !important;
    outline: 0;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(234, 97, 35, .12);
}

.modal.auth-modal-shell .auth-modal_input::placeholder {
    color: #bbb;
}

.auth-modal_forgot {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #666;
    font-size: 15px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.modal.auth-modal-shell .auth-modal_submit {
    margin-top: 4px !important;
    border: 0 !important;
    background: #ea6123 !important;
    box-shadow: 0 4px 12px rgba(234, 97, 35, .28);
    color: #fff !important;
}

.auth-modal_email-link {
    background: #f1f2f4 !important;
    color: #4a4f57 !important;
}

.auth-modal_email-link:hover {
    background: #e8eaed !important;
}

.auth-modal_chevron {
    margin-left: 8px;
    color: #8a8f97;
    font-size: 18px;
    line-height: 1;
}

.auth-modal_footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #ececec;
    color: #999;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

.auth-modal_footer a,
.auth-modal_text-button {
    margin: 0 0 0 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ea6123;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.auth-modal_note,
.auth-modal_secure {
    margin: 0 !important;
    color: #aaa;
    font-size: 15px !important;
    line-height: 1.5;
    text-align: center;
}

.auth-modal_secure {
    padding-top: 4px;
}

@media (max-width: 767px) {
    .modal.auth-modal-shell {
        width: calc(100% - 28px) !important;
        max-width: 358px;
        border-radius: 16px;
    }

    .auth-modal_card {
        padding: 28px 26px 24px;
    }

    .auth-modal_head {
        margin-bottom: 20px;
    }

    .auth-modal_social,
    .auth-modal_email-link,
    .auth-modal_submit {
        height: 52px !important;
        font-size: 15px !important;
    }
}

@media (max-height: 650px) {
    .auth-modal_card {
        padding-top: 22px;
        padding-bottom: 20px;
    }

    .auth-modal_head {
        margin-bottom: 15px;
    }

    .auth-modal_social,
    .auth-modal_email-link,
    .auth-modal_submit {
        height: 46px !important;
    }

    .auth-modal_divider {
        margin-top: 14px;
        margin-bottom: 12px;
    }
}
