@font-face {
    font-family: "VK Sans Display";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/VK-Sans-Display-Regular.woff2") format("woff2");
}

@font-face {
    font-family: "VK Sans Display";
    font-style: normal;
    font-weight: 500;
    src: url("../fonts/VK-Sans-Display-Medium.woff2") format("woff2");
}

@font-face {
    font-family: "VK Sans Display";
    font-style: normal;
    font-weight: 600;
    src: url("../fonts/VK-Sans-Display-DemiBold.woff2") format("woff2");
}

:root {
    color: #000;
    font-family: "VK Sans Display", Arial, sans-serif;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-width: 320px;
    min-height: 100%;
    margin: 0;
}

body {
    background: #087ff5;
}

button,
input {
    font: inherit;
}

a {
    color: #0077ff;
    text-decoration: none;
}

h1,
h2,
p {
    margin: 0;
}

.target-page {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background: #087ff5;
}

.target-page__line {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.target-page__hat,
.target-page__target {
    position: absolute;
    z-index: 1;
    display: block;
    pointer-events: none;
    user-select: none;
}

.target-page__hat {
    top: 63.4%;
    left: 2.8%;
    width: 27.7vw;
    max-width: 531px;
    transform: translateY(-50%);
}

.target-page__target {
    top: 12.3%;
    right: -1%;
    width: 33.7vw;
    max-width: 644px;
}

.target-header {
    position: absolute;
    top: 6.3%;
    left: 50%;
    z-index: 3;
    width: 17.7%;
    min-width: 236px;
    max-width: 338px;
    transform: translateX(-50%);
}

.target-header img {
    display: block;
    width: 100%;
    height: auto;
}

.login-card {
    position: absolute;
    top: 28.7%;
    left: 50%;
    z-index: 4;
    width: min(30%, 574px);
    min-width: 573px;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
    transform: translateX(-50%);
}

.login-card__main {
    padding: 40px;
    text-align: center;
}

.login-card h1 {
    font-size: 28px;
    line-height: 34px;
    font-weight: 600;
    color: #000000;
}

.target-login,
.admin-login {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    font-size: 16px;
    line-height: 22px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.125s ease;
    outline-color: #0277FF;
    outline-offset: 2px;
}

.target-login {
    margin-top: 40px;
    background: #0277FF;
    color: #fff;
}

.target-login:hover {
    background: #026eec;
}

.admin-login {
    margin-top: 12px;
    background: #F6F7F8;
    color: #0277FF
}

.admin-login:hover {
    background: #f1f1f1;
}

.error-message {
    margin-top: 12px;
    color: #e64646;
    font-size: 14px;
    line-height: 18px;
}

.admin-login:disabled {
    cursor: default;
    opacity: .65;
}

.login-error,
.form-error {
    display: block;
    margin-top: 12px;
    color: #e64646;
    font-size: 14px;
    line-height: 18px;
}

.login-error a {
    color: inherit;
    text-decoration: underline;
}

.auth-error,
.auth-2fa {
    text-align: left;
}

.auth-error > p,
.auth-2fa > p {
    margin-top: 12px;
    color: #626d7a;
    font-size: 16px;
    line-height: 22px;
}

.auth-error > .auth-error-support {
    margin-top: 0;
}

.auth-back,
.auth-button-2fa,
.auth-button-2fa-resend,
.auth-button-2fa-cancel {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

.auth-back,
.auth-button-2fa,
.auth-button-2fa-resend {
    margin-top: 28px;
    background: #0277ff;
    color: #fff;
}

.auth-2fa form {
    margin-top: 24px;
}

.input-2fa {
    width: 100%;
    min-height: 48px;
    border: 1px solid #dce1e6;
    border-radius: 12px;
    padding: 0 16px;
    appearance: textfield;
    outline-color: #0277ff;
}

.input-2fa::-webkit-inner-spin-button,
.input-2fa::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
}

.form-timer {
    display: block;
    margin-top: 10px;
    color: #818c99;
    font-size: 13px;
    line-height: 18px;
}

.auth-button-2fa:disabled,
.auth-button-2fa-resend:disabled {
    cursor: default;
    opacity: .55;
}

.auth-button-2fa[hidden],
.auth-button-2fa-resend[hidden] {
    display: none;
}

.auth-button-2fa-cancel {
    margin-top: 10px;
    background: #f6f7f8;
    color: #0277ff;
}

.help-card {
    display: grid;
    min-height: 118px;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    align-items: center;
    border-top: 1px solid #f0f2f5;
    padding: 24px 40px;
}

.help-icon {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #0077ff;
    color: #fff;
    font-size: 22px;
    font-weight: 600;
}

.help-content h2 {
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    color: #000000;
    margin-bottom: 6px;
}

.help-content p,
.help-email {
    font-size: 14px;
    line-height: 18px;
}

.help-content p {
    color: #000000;
}

.help-contact {
    display: flex;
    gap: 16px;
    align-items: baseline;
    justify-content: space-between;
}

.help-email {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
}

.help-email a {
    outline-color: #0277FF;
    outline-offset: 2px;
    transition: color 0.125s ease;
}

.help-email a:hover {
    color: #026eec;
}

.target-footer {
    position: absolute;
    bottom: 4.8%;
    left: 50%;
    z-index: 3;
    display: flex;
    gap: 48px;
    align-items: center;
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
    line-height: 16px;
    transform: translateX(-50%);
    white-space: nowrap;
}

.target-footer a {
    color: inherit;
}

@media (max-aspect-ratio: 4/3), (max-width: 900px) {
    .target-page {
        display: flex;
        min-height: 100svh;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 112px 20px 104px;
    }

    .target-page__line {
        width: auto;
        min-width: 100%;
        left: 50%;
        transform: translateX(-50%);
    }

    .target-page__hat {
        top: auto;
        bottom: 4%;
        left: -10%;
        width: 48vw;
        opacity: .72;
        transform: none;
    }

    .target-page__target {
        top: 10%;
        right: -10%;
        width: 48vw;
        opacity: .72;
    }

    .target-header {
        top: 32px;
        width: 250px;
    }

    .login-card {
        position: relative;
        top: auto;
        left: auto;
        width: min(100%, 574px);
        min-width: 0;
        transform: none;
    }

    .target-footer {
        right: 16px;
        bottom: 24px;
        left: 16px;
        flex-wrap: wrap;
        gap: 8px 24px;
        justify-content: center;
        transform: none;
    }
}

@media (max-width: 560px) {
    .target-page {
        display: block;
        height: 100svh;
        padding: 0;
    }

    .target-page__line {
        width: auto;
        min-width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .target-page__hat {
        top: 72px;
        bottom: auto;
        left: 50%;
        width: min(79vw, 295px);
        opacity: 1;
        transform: translateX(-50%);
    }

    .target-page__target {
        display: none;
    }

    .target-header {
        top: 20px;
        left: 20px;
        width: 135px;
        min-width: 0;
        transform: none;
    }

    .login-card {
        position: absolute;
        top: 35%;
        left: 50%;
        width: calc(100% - 24px);
        max-width: 450px;
        border-radius: 14px;
        transform: translateX(-50%);
    }

    .login-card__main {
        min-height: 210px;
        padding: 26px 24px 16px;
    }

    .login-card h1 {
        font-size: 17px;
        line-height: 19px;
    }

    .target-login {
        margin-top: 26px;
        min-height: 36px;
        border-radius: 8px;
        font-size: 11px;
        line-height: 14px;
    }

    .admin-login {
        min-height: 32px;
        margin-top: 8px;
        font-size: 11px;
        line-height: 14px;
        border-radius: 8px;
    }

    .error-message {
        margin-top: 8px;
        font-size: 11px;
        line-height: 14px;
    }

    .help-card {
        min-height: 84px;
        grid-template-columns: 32px 1fr;
        gap: 11px;
        padding: 16px 24px;
    }

    .help-icon {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .help-content h2 {
        font-size: 13px;
        line-height: 16px;
    }

    .help-content p,
    .help-email {
        font-size: 10px;
        line-height: 13px;
    }

    .help-content p {
        margin-top: 1px;
    }

    .help-contact {
        gap: 8px;
    }

    .target-footer {
        right: 18px;
        bottom: 18px;
        left: 18px;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 3px 20px;
        justify-content: initial;
        font-size: 8px;
        line-height: 10px;
        white-space: normal;
    }

    .target-footer span {
        grid-row: 1 / 3;
        align-self: center;
    }

    .target-footer a {
        grid-column: 2;
    }
}

@media screen and (max-height: 800px) and (min-width: 768px) {
    .target-page {
        min-height: 800px;
    }

    .login-card {
        top: 20%;
    }
}
