:root {
    color-scheme: light;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: #1b2333;
    background: #f9fafc;
    font-synthesis: none;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
}
button,
input {
    font: inherit;
}
button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}
a {
    color: #3158c9;
    text-underline-offset: 3px;
}
button {
    cursor: pointer;
}
button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
button:focus-visible,
a:focus-visible {
    outline: 3px solid #8ba8ff;
    outline-offset: 4px;
}
[hidden] {
    display: none !important;
}
.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100dvh;
}
.entry {
    padding: 36px 48px 24px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.wordmark {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 21px;
    font-weight: 750;
    color: #1b2333;
    letter-spacing: -0.6px;
}
.wordmark > span:last-child {
    font-weight: 450;
    color: #727d92;
}
.brand-mark {
    background: #2857db;
    color: white;
    border-radius: 11px;
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    margin-right: 4px;
    font-size: 24px;
    box-shadow: 0 4px 12px #2857db20;
}
.entry-content {
    width: 100%;
    max-width: 398px;
    margin: auto;
    padding: 64px 0 48px;
}
h1 {
    font-size: 28px;
    line-height: 1.25;
    letter-spacing: -0.9px;
    margin: 0 0 10px;
    font-weight: 750;
}
.subtitle {
    font-size: 14px;
    line-height: 1.6;
    color: #788297;
    margin: 0 0 26px;
    overflow-wrap: anywhere;
}
.tabs {
    display: flex;
    background: #edf0f5;
    padding: 4px;
    border-radius: 10px;
    gap: 4px;
    margin-bottom: 24px;
}
.tabs button {
    flex: 1;
    border: 0;
    border-radius: 7px;
    padding: 10px;
    background: none;
    color: #6c7689;
    font-size: 14px;
    font-weight: 600;
}
.tabs button[aria-pressed="true"] {
    background: #fff;
    box-shadow: 0 1px 4px #14233b12;
    color: #202a3c;
}
.providers {
    display: grid;
    gap: 10px;
}
.providers button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 15px;
    min-height: 46px;
    border: 1px solid #dce1e9;
    border-radius: 8px;
    background: white;
    color: #414c60;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 1px 2px #15213608;
}
.providers button:hover:enabled {
    border-color: #829adc;
    background: #fbfcff;
}
.providers svg,
.yandex-mark {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}
.yandex-mark {
    display: grid;
    place-items: center;
    background: #fc3f35;
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: bold;
}
.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #929bae;
    font-size: 12px;
    margin: 24px 0;
}
.divider::before,
.divider::after {
    content: "";
    height: 1px;
    background: #e2e6ed;
    flex: 1;
}
label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    font-weight: 550;
    margin-bottom: 18px;
}
input:not([type="checkbox"]) {
    width: 100%;
    height: 46px;
    min-width: 0;
    border: 1px solid #dce1e9;
    border-radius: 8px;
    background: #fff;
    padding: 12px 14px;
    font-size: 14px;
    color: #1b2333;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}
input::placeholder {
    color: #a1a9b8;
}
input:focus {
    outline: 0;
    border-color: #426be7;
    box-shadow: 0 0 0 3px #426be712;
}
.primary {
    width: 100%;
    border: 0;
    background: #2e59d9;
    border-radius: 8px;
    padding: 13px 16px;
    min-height: 46px;
    color: white;
    font-size: 14px;
    font-weight: 650;
    box-shadow: 0 3px 8px #2e59d920;
}
.primary:hover:enabled {
    background: #254dc2;
}
.consents {
    margin-top: 22px;
}
.consents label {
    flex-direction: row;
    align-items: flex-start;
    font-size: 11.5px;
    font-weight: 400;
    line-height: 1.6;
    gap: 9px;
    margin-bottom: 12px;
}
.consents input {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin: 2px 0 0;
    accent-color: #2e59d9;
}
.consents a {
    color: #425d9a;
}
.muted,
.field-hint {
    color: #8992a4;
}
.field-hint {
    font-size: 12px;
    line-height: 1.6;
    margin: 0 0 22px;
}
.service-note {
    font-size: 11px;
    line-height: 1.5;
    color: #8992a4;
}
.service-note:empty {
    display: none;
}
fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}
.sr-only {
    position: absolute;
    clip: rect(0, 0, 0, 0);
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.step-caption {
    font-size: 12px;
    color: #6c7ca2;
    letter-spacing: 0.5px;
    margin: 0 0 10px;
}
.progress {
    display: flex;
    gap: 6px;
    margin-bottom: 30px;
}
.progress span {
    height: 3px;
    flex: 1;
    background: #e1e7f3;
    border-radius: 4px;
}
.progress span.active {
    background: #2e59d9;
}
.text-button {
    display: block;
    margin: 17px auto 0;
    background: none;
    border: 0;
    color: #64728c;
    font-size: 12px;
    padding: 5px;
    line-height: 1.5;
}
.text-button:hover {
    color: #2e59d9;
}
.domain-input {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #dce1e9;
    border-radius: 8px;
    overflow: hidden;
    min-width: 0;
}
.domain-input input:not([type="checkbox"]) {
    border: 0;
    border-radius: 0;
    flex: 1;
    width: 0;
    box-shadow: none;
}
.domain-input:focus-within {
    border-color: #426be7;
    box-shadow: 0 0 0 3px #426be712;
}
.domain-input > span {
    font-size: 13px;
    font-weight: 400;
    color: #8a94a6;
    padding-right: 12px;
    overflow-wrap: anywhere;
    max-width: 55%;
}
.code-input {
    letter-spacing: 10px;
    font-size: 24px !important;
    text-align: center;
    height: 58px !important;
}
#form-status {
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    margin: 18px 0 0;
    color: #31589a;
}
#form-status:empty {
    display: none;
}
#form-status[data-error="true"] {
    background: #fff1ef;
    color: #a0352b;
    padding: 12px 14px;
    border-radius: 8px;
}
footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    font-size: 11px;
    color: #9ba3b1;
}
footer a {
    color: inherit;
    text-decoration: none;
}
.story {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #195cea 0%, #2948cb 47%, #342a88 100%);
    color: white;
    padding: 70px 64px;
}
.story::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image:
        linear-gradient(
            30deg,
            #8caaff 12%,
            transparent 12.5%,
            transparent 87%,
            #8caaff 87.5%
        ),
        linear-gradient(
            150deg,
            #8caaff 12%,
            transparent 12.5%,
            transparent 87%,
            #8caaff 87.5%
        ),
        linear-gradient(
            30deg,
            #8caaff 12%,
            transparent 12.5%,
            transparent 87%,
            #8caaff 87.5%
        ),
        linear-gradient(
            150deg,
            #8caaff 12%,
            transparent 12.5%,
            transparent 87%,
            #8caaff 87.5%
        ),
        linear-gradient(
            60deg,
            #668dff 25%,
            transparent 25.5%,
            transparent 75%,
            #668dff 75%
        );
    background-size: 80px 140px;
    background-position:
        0 0,
        0 0,
        40px 70px,
        40px 70px,
        0 0;
    mask-image: linear-gradient(130deg, transparent, #000);
}
.story-content {
    position: relative;
    max-width: 440px;
}
.eyebrow {
    font-size: 11px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #d6e2ff;
    margin-bottom: 30px;
}
.eyebrow > span {
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background: #9ac7ff;
    box-shadow: 0 0 0 4px #b1d8ff13;
}
.story h2 {
    font-size: 43px;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin: 0 0 22px;
    font-weight: 760;
}
.story-intro {
    font-size: 15px;
    line-height: 1.75;
    color: #c8d5ff;
    margin: 0 0 32px;
    max-width: 410px;
}
.features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}
.features li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid #ffffff15;
    background: #ffffff0d;
    border-radius: 10px;
}
.feature-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: bold;
    border-radius: 8px;
    color: #fff;
    background: #4386ff;
}
.features li:nth-child(2) .feature-icon {
    background: #00ac92;
}
.features li:nth-child(3) .feature-icon {
    background: #9f5cea;
}
.features h3 {
    font-size: 13px;
    margin: 0 0 5px;
    font-weight: 600;
}
.features p {
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
    color: #bfccf6;
}
.story-footnote {
    font-size: 11px;
    color: #9eb3ef;
    margin: 28px 0 0;
}
@media (min-width: 1700px) {
    .entry-content {
        max-width: 410px;
    }
    .story-content {
        max-width: 460px;
    }
    .entry {
        padding: 44px 60px 30px;
    }
    .story h2 {
        font-size: 48px;
    }
}
@media (max-width: 1050px) {
    .entry {
        padding: 28px;
    }
    .story {
        padding: 42px;
    }
    .story h2 {
        font-size: 35px;
    }
    .features li {
        padding: 16px 14px;
        gap: 12px;
    }
}
@media (max-width: 760px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }
    .entry {
        min-height: 100dvh;
        padding: 24px;
    }
    .entry-content {
        padding: 44px 0;
        max-width: 420px;
    }
    .story {
        padding: 55px 26px;
    }
    .story-content {
        width: 100%;
        max-width: 420px;
    }
    .story h2 {
        font-size: 36px;
    }
    h1 {
        font-size: 26px;
    }
    .wordmark {
        font-size: 19px;
    }
    footer {
        font-size: 10px;
    }
}
