:root {
    --color-bg: #1c022b;
    --color-text: #ffffff;
    --color-accent-soft: #3be09d;

    --space-8: 8px;
    --space-16: 16px;
    --space-32: 32px;

    --radius-12: 12px;

    --font-body: "Outfit", Tahoma, Geneva, Verdana, sans-serif;

    --page-gutter: var(--space-16);
}

@media (min-width: 768px) {
    :root {
        --page-gutter: var(--space-32);
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    overflow-x: clip;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 22px;
}

h1,
h2,
h3,
p,
ul {
    margin: 0;
}

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

a {
    color: inherit;
}

button,
input {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 2px solid var(--color-accent-soft);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: var(--space-16);
    z-index: 100;
    padding: var(--space-8) var(--space-16);
    border-radius: var(--radius-12);
    background: var(--color-text);
    color: var(--color-bg);
}

.skip-link:focus {
    top: var(--space-8);
}

.site-main {
    position: relative;
    z-index: 1;
}



@media (max-width: 767px) {
    .modal--terms {
        padding: 0;
    }
    
    
    
    
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}



.auth { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 40px 24px 26px; box-sizing: border-box; background: #0a0110; color: #fff; font-family: var(--font-body); }

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

.auth__bg { position: fixed; inset: 0; pointer-events: none; }

.auth__bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.auth__bg::after { content: ""; position: absolute; inset: 0; background: rgba(4, 0, 7, .9); }

.auth__panel { position: relative; z-index: 1; width: min(100%, 904px); min-height: 590px; border-radius: 22px; overflow: hidden; background: url("../images/auth-pattern.webp") center top / 1000px auto repeat, linear-gradient(180deg, #2a0342 0%, #25033c 55%, #1c022b 100%); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }

.auth__head { position: relative; display: flex; align-items: center; justify-content: center; height: 77px; padding: 0 96px; background: radial-gradient(ellipse 34% 150% at 0 100%, rgba(122, 22, 150, .6), transparent 70%), linear-gradient(180deg, #0f0314 0%, #1a0423 50%, #2b043c 100%); }

.auth__head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, #4a1163, #7a1a95 50%, #4a1163); }

.auth__logo { position: absolute; left: 35px; top: 15px; width: 65px; height: auto; }

.auth__title { margin: 0; font-size: 27px; font-weight: 400; line-height: 1.2; text-align: center; white-space: nowrap; }

.auth__body { width: 317px; max-width: 100%; margin: 0 auto; padding: 32px 0 30px; }

.auth__form { display: flex; flex-direction: column; }

.auth__label { margin: 0 0 2px 22px; font-size: 16px; line-height: 22px; }

.auth__field { position: relative; }

.auth__field + .auth__label { margin-top: 21px; }

.auth__input { width: 100%; height: 43px; padding: 0 18px; border: 1px solid transparent; border-radius: 999px; background: #000; color: #fff; font: inherit; font-size: 12.5px; }

@media (pointer: coarse) { .auth__input { font-size: 16px; } }

.auth__input::placeholder { color: #c8a6ec; opacity: 1; }

.auth__input:focus { outline: 0; border-color: #7a1a95; }

.auth__input--password { padding-right: 52px; }

.auth__eye { position: absolute; top: 50%; right: 13px; display: flex; padding: 0; border: 0; background: none; transform: translateY(-50%); cursor: pointer; }

.auth__eye svg { width: 25px; height: 25px; }

.auth__eye[aria-pressed="true"] { opacity: .7; }

.auth__strength { margin: 15px 15px 0; }

.auth__meter { display: flex; gap: 4px; }

.auth__meter span { flex: 1; height: 4px; border-radius: 2px; background: #48295a; transition: background-color .2s; }

.auth__strength[data-level="1"] .auth__meter .is-on { background: #ff5a5a; }

.auth__strength[data-level="2"] .auth__meter .is-on { background: #ffc400; }

.auth__strength[data-level="3"] .auth__meter .is-on { background: #14c37f; }

.auth__strength-title { margin: 8px 0 8px; color: #b6a6c3; font-size: 11.5px; line-height: 16px; }

.auth__check { display: flex; gap: 13px; align-items: flex-start; margin-top: 18px; font-size: 11px; line-height: 16.5px; cursor: pointer; }

.auth__check input { appearance: none; -webkit-appearance: none; flex: none; width: 25px; height: 25px; margin: 0; border-radius: 5px; background: #4e335e center / 17px no-repeat; cursor: pointer; }

.auth__check input:checked { background-color: #14c37f; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.4l3 3 6-6.3' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.auth__check input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.auth__submit { width: calc(100% - 26px); height: 45px; margin: 27px auto 0; padding: 0 16px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #47f0a0 0%, #14c37f 45%, #0aa864 100%); box-shadow: inset 0 2px 2px rgba(255, 255, 255, .45), 0 4px 0 #067a46; color: #fff; font: inherit; font-size: 20px; font-weight: 700; letter-spacing: -.01em; text-transform: uppercase; text-shadow: 0 2px 1px rgba(0, 0, 0, .25); cursor: pointer; animation: auth-submit-pop .5s .1s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes auth-submit-pop {
    0% { transform: scale(.3); opacity: 0; }
    45% { transform: scale(1.08); opacity: 1; }
    75% { transform: scale(.97); }
    100% { transform: scale(1); }
}

.auth__submit:hover { filter: brightness(1.06); }

.auth__submit:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.auth__submit:disabled { background: linear-gradient(180deg, #dadada 0%, #9a9a9a 32%, #858283 70%, #7a7778 100%); box-shadow: inset 0 2px 2px rgba(255, 255, 255, .35); color: #e3e3e3; filter: none; cursor: not-allowed; }

.auth__submit.is-loading { display: flex; align-items: center; justify-content: center; gap: 10px; cursor: wait; }

.auth__submit.is-loading::before, .auth__submit.is-loading::after { content: ""; flex: none; width: .8em; height: .8em; box-sizing: border-box; }

.auth__submit.is-loading::before { border: .14em solid currentColor; border-right-color: transparent; border-radius: 50%; animation: auth-spin .7s linear infinite; }

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

.auth__note { margin: 14px 0 0; color: #9c8aa8; font-size: 9px; line-height: 12px; text-align: center; }

.auth__note a { color: inherit; }

.auth__field.is-invalid .auth__input { border-color: #f95d5e; }
.auth__label.is-invalid::after { content: "*"; margin-left: 2px; color: #f95d5e; }
.auth__errors { margin: 0; color: #f95d5e; font-size: 12.5px; line-height: 16px; text-align: center; }
.auth .auth__errors { margin-top: 16px; }
.auth__errors:not([hidden]) + .auth__submit { margin-top: 12px; }


@media (max-width: 760px), (orientation: landscape) and (pointer: coarse) and (max-height: 600px) {
    html, body { height: 100%; overflow: hidden; }
    .auth { position: fixed; top: 0; right: 0; left: 0; display: block; height: 100vh; height: 100dvh; min-height: 0; padding: 0; background: #25033c; }
    .auth__bg { display: none; }
    .auth__panel { width: 100%; height: 100%; min-height: 0; padding-bottom: var(--keyboard, 0px); overflow-y: auto; overscroll-behavior: contain; border-radius: 0; box-shadow: none; background-image: url("../images/auth-pattern-mobile.webp"), linear-gradient(180deg, #2a0342 0%, #25033c 55%, #1c022b 100%); background-size: 100% auto, auto; background-repeat: repeat-y, no-repeat; }
    .auth__head { height: 56px; padding: 0 64px; background: radial-gradient(ellipse 60% 120% at 50% 100%, rgba(122, 22, 150, .35), transparent 75%), linear-gradient(180deg, rgba(42, 5, 57, .2) 0%, rgba(59, 7, 82, .2) 100%); }
    .auth__title { font-size: 18px; }
    .auth__logo { left: auto; right: 16px; top: 10px; width: 40px; }
    .auth__body { width: 100%; max-width: 560px; margin: 0 auto; padding: 40px 13px 32px; }
    .auth__label { margin-left: 25px; font-size: 17.5px; }
    .auth__input { height: 47px; padding: 0 19px; font-size: 16px; }
    .auth__field + .auth__label { margin-top: 24px; }
    .auth__eye { right: 16px; }
    .auth__eye svg { width: 27px; height: 27px; }
    .auth__strength { margin: 19px 16px 0; }
    .auth__strength-title { margin: 9px 0 10px; font-size: 13px; }
    
    
    .auth__check { gap: 15px; margin-top: 19px; padding-right: 8px; font-size: 12px; line-height: 18px; }
    .auth__submit { width: calc(100% - 28px); margin-top: 34px; font-size: 19px; }
    
    .auth__errors { font-size: 14px; line-height: 18px; }
    .auth__errors:not([hidden]) + .auth__submit { margin-top: 16px; }
    
    .auth__note { margin-top: 16px; font-size: 10px; line-height: 13px; }
}


@media (prefers-reduced-motion: reduce) {
    .auth__submit { animation: none; }
}

[data-captcha] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
