#user_modal.modal {
    position: fixed;
    z-index: 1050;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

#user_modal.modal.is-active {
    display: flex;
}

#user_modal .modal-background {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .42);
}

#user_modal .modal-card {
    position: relative;
    z-index: 1;
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 32px);
    overflow: visible;
}

.ant-auth,
.ant-auth * {
    box-sizing: border-box;
}

.ant-auth {
    position: relative;
    width: min(430px, calc(100vw - 32px));
    min-height: 310px;
    padding: 45px 42px 41px;
    border: 1px solid #b6b6b6;
    background: #fff;
    color: #333;
    font-family: "Source Sans Pro", Arial, sans-serif;
    box-shadow: 0 4px 0 rgba(0, 0, 0, .36), 0 0 9px rgba(0, 0, 0, .44);
}

.ant-auth__header {
    position: absolute;
    top: 16px;
    right: 16px;
}

.ant-auth__close {
    position: relative;
    display: block;
    width: 16px;
    height: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.ant-auth__close::before,
.ant-auth__close::after {
    content: "";
    position: absolute;
    top: 7px;
    left: 1px;
    width: 15px;
    height: 2px;
    border-radius: 2px;
    background: #999;
}

.ant-auth__close::before {
    transform: rotate(45deg);
}

.ant-auth__close::after {
    transform: rotate(-45deg);
}

.ant-auth__title {
    margin: 0 0 26px;
    color: #333;
    font-family: "Russo One", "Source Sans Pro", Arial, sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: .15px;
    text-transform: uppercase;
}

.ant-auth__field {
    display: block;
    margin: 0 0 17px;
}

.ant-auth__label {
    display: block;
    margin: 0 0 7px;
    color: #6a6a6a;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
}

.ant-auth__input {
    display: block;
    width: 100%;
    height: 38px;
    padding: 0 11px;
    border: 1px solid #c7c7c7;
    border-radius: 4px;
    background: #fff;
    color: #4d5660;
    font: inherit;
    font-size: 14px;
    line-height: 38px;
}

.ant-auth__input::placeholder {
    color: #4d5660;
    opacity: 1;
}

.ant-auth__input:focus,
.ant-auth__code-input:focus {
    border-color: #9a9a9a;
    outline: 0;
}

.ant-auth__agree {
    display: grid;
    grid-template-columns: 12px 1fr;
    gap: 9px;
    align-items: start;
    margin: 0 0 19px;
    color: #666;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.28;
}

.ant-auth__agree input {
    width: 12px;
    height: 12px;
    margin: 3px 0 0;
    accent-color: #1683f3;
}

.ant-auth__agree a {
    color: #009bf3;
    text-decoration: underline;
}

.ant-auth__message {
    margin: 0 0 8px;
    max-width: 350px;
    color: #6a6a6a;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
}

.ant-auth__code {
    display: flex;
    align-items: center;
    min-height: 40px;
    margin: 0 0 14px;
    border: 1px solid #d8d8d8;
}

.ant-auth__code-input {
    display: block;
    width: 100%;
    height: 38px;
    padding: 0 42px;
    border: 0;
    background: transparent;
    color: #4d5660;
    font-family: "Source Sans Pro", Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 38px;
    text-align: center;
    letter-spacing: 7px;
}

.ant-auth__code-input::placeholder {
    color: #4d5660;
    opacity: 1;
}

.ant-auth__error {
    margin: -11px 0 20px;
    color: #ff0000;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.35;
}

.ant-auth__code.is-error .ant-auth__code-input {
    color: #4d5660;
}

.ant-auth__submit,
.ant-auth__resend {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 225px;
    min-height: 42px;
    margin: 0 auto;
    padding: 6px 14px;
    border-radius: 3px;
    font-family: "Russo One", "Source Sans Pro", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
}

.ant-auth__submit {
    border: 1px solid #bf242a;
    background: linear-gradient(#df6267 0%, #ce454b 47%, #c8343b 48%, #d24b50 100%);
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .25);
    cursor: pointer;
}

.ant-auth__submit:disabled {
    opacity: .65;
    cursor: default;
}

.ant-auth__resend {
    border: 0;
    background: #f1f1f1;
    color: #6b6b6b;
    text-transform: none;
    box-shadow: none;
    cursor: pointer;
}

.ant-auth__resend:disabled {
    cursor: default;
}

.ant-auth__resend:not(:disabled) {
    border: 1px solid #bf242a;
    background: linear-gradient(#df6267 0%, #ce454b 47%, #c8343b 48%, #d24b50 100%);
    color: #fff;
    text-transform: uppercase;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.ant-auth__back {
    display: block;
    width: 100%;
    margin: 9px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6a6a6a;
    font: inherit;
    font-size: 9px;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
}

@media (max-width: 700px) {
    #user_modal.modal {
        align-items: flex-start;
        padding: 10px;
        overflow-y: auto;
    }

    .ant-auth {
        width: calc(100vw - 20px);
        min-height: auto;
        padding: 40px 20px 32px;
    }

    .ant-auth__header {
        top: 14px;
        right: 14px;
    }

    .ant-auth__title {
        margin-bottom: 24px;
        font-size: 17px;
    }

    .ant-auth__label,
    .ant-auth__message {
        font-size: 15px;
    }

    .ant-auth__field {
        margin-bottom: 17px;
    }

    .ant-auth__input {
        height: 38px;
        font-size: 15px;
        line-height: 38px;
    }

    .ant-auth__agree {
        grid-template-columns: 14px 1fr;
        gap: 10px;
        font-size: 13px;
    }

    .ant-auth__code-input {
        height: 38px;
        font-size: 20px;
        line-height: 38px;
        letter-spacing: 7px;
    }

    .ant-auth__submit,
    .ant-auth__resend {
        width: min(100%, 225px);
        min-height: 42px;
        font-size: 15px;
    }

    .ant-auth__error {
        font-size: 12px;
    }
}
