@font-face {
    font-family: "Montserrat";
    src: url("%D1%88%D1%80%D0%B8%D1%84%D1%82%D1%8B/Montserrat-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: #000;
    color: #fff;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-weight: 500;
}

.login-page {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    border: 3px solid #202020;
    padding: 24px;
}

.login-box {
    width: 220px;
    margin-top: -3vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.logo {
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
}

.logo svg {
    width: 82px;
    height: auto;
    display: block;
}

h1 {
    width: max-content;
    align-self: center;
    margin: 0 0 22px;
    color: #f4f4f4;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
}

.login-error,
.login-hint {
    margin: 0 0 12px;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
}

.login-error {
    color: #ee6a6a;
}

.login-hint {
    margin-top: 10px;
    color: #8c8c8c;
}

input,
button {
    width: 100%;
    height: 30px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 12px;
}

input {
    margin: 0 0 12px;
    padding: 0 32px;
    border: 1px solid #282828;
    background: #151515;
    color: #fff;
    outline: none;
}

input::placeholder {
    color: #777;
}

input:focus {
    border-color: #555;
}

button {
    margin: 0;
    padding: 0 18px;
    border: 1px solid #595959;
    background: #333;
    color: #fff;
    cursor: pointer;
}

button:hover,
button:focus {
    background: #3d3d3d;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 480px) {
    .login-page {
        border-width: 2px;
        padding: 20px 16px;
    }

    .login-box {
        width: min(100%, 320px);
        margin-top: 0;
    }

    h1 {
        font-size: 24px;
    }

    input,
    button {
        height: 44px;
        font-size: 14px;
    }

    input {
        padding: 0 16px;
    }
}
