* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #111827;
    background: #fff;
    font-family: var(--sc-text-font, var(--sc-body-font, Arial, sans-serif));
    font-size: var(--sc-text-size, 16px);
    font-weight: var(--sc-text-weight, 400);
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--sc-heading-font, Arial, sans-serif);
    letter-spacing: 0;
    line-height: 1.15;
}

h1 {
    font-family: var(--sc-h1-font, var(--sc-heading-font, Arial, sans-serif));
    font-size: var(--sc-h1-size, 48px);
    font-weight: var(--sc-h1-weight, 700);
}

h2 {
    font-family: var(--sc-h2-font, var(--sc-heading-font, Arial, sans-serif));
    font-size: var(--sc-h2-size, 38px);
    font-weight: var(--sc-h2-weight, 700);
}

h3 {
    font-family: var(--sc-h3-font, var(--sc-heading-font, Arial, sans-serif));
    font-size: var(--sc-h3-size, 28px);
    font-weight: var(--sc-h3-weight, 600);
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
.sc-button,
input[type="button"],
input[type="submit"] {
    font-family: var(--sc-button-font, var(--sc-body-font, Arial, sans-serif));
    font-size: var(--sc-button-size, var(--sc-text-size, 16px));
    font-weight: var(--sc-button-weight, 600);
}

small {
    font-family: var(--sc-small-text-font, var(--sc-body-font, Arial, sans-serif));
    font-size: var(--sc-small-text-size, 14px);
    font-weight: var(--sc-small-text-weight, 400);
}

.errortext {
    color: #dc2626;
}

.sc-section__container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.sc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border: 0;
    border-radius: var(--sc-button-radius, 6px);
    color: var(--sc-button-color, #fff);
    background: var(--sc-button-bg, var(--sc-primary, #6f4190));
    cursor: pointer;
}

.sc-theme-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 32px;
    border-bottom: 1px solid #eef0f4;
}

.sc-theme-empty--footer {
    justify-content: center;
    border-top: 1px solid #eef0f4;
    border-bottom: 0;
}

.sc-theme-message {
    min-height: 55vh;
    display: grid;
    place-items: center;
    gap: 20px;
    padding: 60px 20px;
    text-align: center;
}

.sc-system-block-placeholder {
    padding: 28px;
    background: #fff7ed;
}

.sc-system-block-placeholder__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 18px;
    border: 1px dashed #fb923c;
    border-radius: 8px;
    color: #9a3412;
}

.none {
    display: none;
}

.pointer {
    cursor: pointer;
}

.popup {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 72px 16px 40px;
}

.active_popup {
    display: flex;
}

.popup_bg {
    position: absolute;
    inset: 0;
    min-height: 100%;
    background: rgba(15, 23, 42, .72);
}

.login_form {
    position: relative;
    z-index: 1;
    width: min(460px, 100%);
    color: #111827;
}

.register_form {
    position: relative;
    z-index: 1;
}

.reset_popup {
    align-items: center;
}

.user-form-card,
.user-form-remind {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
}

.user-form-card {
    padding: 28px;
    margin-bottom: 16px;
}

.user-form-remind {
    padding: 18px 20px;
    text-align: center;
}

.user-form-title {
    margin-bottom: 24px;
    text-align: center;
}

.user-form-title h2 {
    margin: 0 0 6px;
    color: var(--sc-primary, #6f4190);
    font-size: 28px;
}

.user-form-title p,
.user-form-remind p,
.form-button p {
    margin: 0;
    color: #6b7280;
}

.user-form {
    display: grid;
    gap: 16px;
}

.user-form .form-group {
    display: grid;
    gap: 6px;
    margin: 0;
}

.form-control {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 14px;
    color: #111827;
    background: #fff;
    outline: 0;
}

.form-control:focus {
    border-color: var(--sc-primary, #6f4190);
    box-shadow: 0 0 0 3px rgba(111, 65, 144, .14);
}

.form-button {
    display: grid;
    gap: 12px;
    text-align: center;
}

.form-button button,
.big_btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    width: 100%;
    border: 1px solid var(--sc-primary, #6f4190);
    border-radius: var(--sc-button-radius, 6px);
    padding: 10px 18px;
    color: #fff;
    background: var(--sc-primary, #6f4190);
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
}

.form-button a,
.user-form-remind a {
    color: var(--sc-primary, #6f4190);
    font-weight: 700;
}

.loaded_loader {
    display: none;
    width: 20px;
    height: 20px;
    margin-left: 8px;
}

.loaded_loader img {
    width: 100%;
    height: 100%;
    animation: sc-auth-spin .8s linear infinite;
}

.loaded_btn .loaded_loader {
    display: inline-flex;
}

@keyframes sc-auth-spin {
    to {
        transform: rotate(360deg);
    }
}

.login_errortext,
.register_errortext,
.reset_errortext {
    display: block;
    text-align: center;
}

.sc-invoice {
    min-height: 60vh;
}

@media (max-width: 560px) {
    h1 {
        font-size: 34px;
    }

    .popup {
        padding-top: 42px;
    }

    .user-form-card {
        padding: 22px;
    }
}
