@font-face {
    font-family: 'Inter';
    src: url('../assets/fonts/inter-latin-wght.woff2') format('woff2');
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    src: url('../assets/fonts/inter-cyrillic-wght.woff2') format('woff2');
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/poppins-latin-400.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --page-background: #ffffff;
    --card-background: #e3e3e3;
    --field-background: #ffffff;
    --text-primary: #191b1c;
    --text-muted: #787878;
    --action-background: #ec3124;
    --action-text: #ffffff;
    font-family: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: var(--page-background); }
button, input { font: inherit; }

.login-page {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    place-items: center;
    padding: 24px;
}
.login-card {
    display: flex;
    width: 380px;
    max-width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 32px;
    border-radius: 14px;
    background: var(--card-background);
    box-shadow: 0 4px 4px rgb(0 0 0 / 16%);
}
.login-logo { width: 180px; height: 70px; object-fit: contain; }
.login-form { display: flex; width: 100%; flex-direction: column; margin-top: 28px; }
.login-field {
    display: flex;
    flex-direction: column;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: normal;
}
.login-field + .login-field { margin-top: 13px; }
.login-field input {
    width: 100%;
    height: 42px;
    margin-top: 7px;
    padding: 0 16px;
    border: 0;
    border-radius: 7px;
    outline: none;
    background: var(--field-background);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}
.login-field input::placeholder { color: var(--text-muted); opacity: 1; }
.login-field input:focus-visible { outline: 2px solid var(--action-background); outline-offset: 2px; }
.primary-button {
    width: 100%;
    height: 44px;
    margin-top: 24px;
    border: 0;
    border-radius: 8px;
    background: var(--action-background);
    color: var(--action-text);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
}
.primary-button:hover { filter: brightness(0.94); }
.primary-button:active { transform: translateY(1px); }
.primary-button:focus-visible { outline: 3px solid var(--action-text); outline-offset: -5px; }
.error-message { margin: 16px 0 0; color: #b42318; font-size: 14px; }

@media (max-width: 520px) {
    .login-page { padding: 16px; }
    .login-card { padding: 28px 24px; }
    .login-logo { max-width: 100%; height: auto; }
    .login-field input { font-size: 16px; }
}
