@font-face {
    font-family: Poppins;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/poppins-regular.woff2") format("woff2");
}

@font-face {
    font-family: Poppins;
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/poppins-semibold.woff2") format("woff2");
}

:root {
    color-scheme: light;
    font-family: Poppins, Arial, sans-serif;
    color: #30214b;
    background: #f7f6f7;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    height: 60px;
    flex: 0 0 60px;
    display: flex;
    align-items: center;
    padding: 0 23px;
    background: #fff;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    display: block;
    width: 127px;
    height: auto;
}

.login-main {
    flex: 1 0 auto;
    display: grid;
    place-items: center;
    padding: 44px 24px;
    background: #f7f6f7;
}

.login-card {
    width: min(100%, 565px);
    min-height: 447px;
    padding: 65px 64px 64px;
    border: 1px solid #dedde0;
    border-radius: 3px;
    background: #fff;
}

.login-card h1 {
    margin: 0 0 35px;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
}

.intro {
    margin: 0 0 37px;
    font-size: 16px;
    line-height: 1.4;
}

.login-card label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}

.login-card label span {
    color: #c40048;
}

.login-card input {
    display: block;
    width: 100%;
    height: 41px;
    padding: 0 16px;
    border: 1px solid #bcb4c7;
    border-radius: 4px;
    color: #30214b;
    background: #fff;
    font: inherit;
    font-size: 16px;
}

.login-card input::placeholder {
    color: #685b7a;
    opacity: 1;
}

.login-card input:focus-visible,
.login-card button:focus-visible,
.language-select select:focus-visible,
a:focus-visible {
    outline: 3px solid #8d70d8;
    outline-offset: 2px;
}

.login-card button {
    width: 100%;
    height: 41px;
    margin-top: 32px;
    border: 0;
    border-radius: 4px;
    color: #fff;
    background: #2f087e;
    font: inherit;
    font-size: 16px;
    cursor: pointer;
}

.login-card button:hover {
    background: #250568;
}

.field-error {
    margin: 7px 0 -21px;
    color: #b00020;
    font-size: 13px;
}

.hello-card {
    min-height: 300px;
}

.back-link {
    display: inline-flex;
    min-height: 41px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 4px;
    color: #fff;
    background: #2f087e;
    font-size: 16px;
    text-decoration: none;
}

.back-link:hover {
    background: #250568;
}

.site-footer {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 21px;
    border-top: 1px solid #e8e7e9;
    background: #fff;
    color: #382a50;
    font-size: 10px;
}

.powered-by {
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.powered-by img {
    display: block;
    width: 55px;
    height: auto;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
}

.footer-links a {
    padding: 0 10px;
    border-left: 1px solid #e4e1e7;
    color: inherit;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.language-select select {
    max-width: 100px;
    margin-right: 1px;
    padding: 3px 5px;
    border: 0;
    border-radius: 3px;
    color: #30214b;
    background: #f4f2f5;
    font: inherit;
    font-weight: 600;
}

.copyright {
    margin: 0;
    white-space: nowrap;
}

.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: 900px) {
    .site-footer {
        flex-wrap: wrap;
        justify-content: center;
        padding: 12px 16px;
    }

    .footer-links {
        order: 3;
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 10px;
    }
}

@media (max-width: 600px) {
    .site-header {
        height: 52px;
        flex-basis: 52px;
        padding: 0 21px;
        border-bottom: 1px solid #e8e7e9;
    }

    .brand img {
        width: 102px;
    }

    .login-main {
        display: block;
        padding: 0;
        background: #fff;
    }

    .login-card {
        width: 100%;
        min-height: 0;
        padding: 20px 25px 40px;
        border: 0;
        border-radius: 0;
    }

    .login-card h1 {
        margin-bottom: 24px;
        font-size: 20px;
    }

    .intro {
        margin-bottom: 27px;
        font-size: 14px;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 5px;
        padding: 8px 18px;
        font-size: 8px;
    }

    .footer-links {
        order: 0;
        justify-content: flex-start;
        white-space: normal;
        row-gap: 3px;
    }

    .footer-links a {
        padding: 0 5px;
    }

    .language-select select {
        max-width: 95px;
        padding: 2px 3px;
    }

    .copyright {
        order: 1;
        white-space: normal;
    }
}
