* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

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

body {
    margin: 0;
    min-height: 100vh;
    color: #eef2f7;
    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(74, 97, 128, 0.18),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 90%,
            rgba(32, 52, 76, 0.2),
            transparent 38%
        ),
        #090d13;
}

button,
input {
    font: inherit;
}

.login-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 36px 20px;
}

.login-panel {
    width: min(100%, 420px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 26px;
}

.brand-logo {
    display: grid;
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid #394658;
    border-radius: 13px;
    color: #c4202d;
    background: #151e2a;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 12px 30px rgba(0, 0, 0, 0.28);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand-copy {
    min-width: 0;
}

.brand-name {
    color: #c4202d;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-tagline {
    margin-top: 4px;
    color: #8390a2;
    font-size: 12px;
    line-height: 1.3;
}

.login-card {
    padding: 32px;
    border: 1px solid #273343;
    border-radius: 18px;
    background: rgba(18, 25, 36, 0.96);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.46),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.language-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    margin-bottom: 30px;
}

.language-button {
    min-width: 37px;
    height: 29px;
    padding: 0 9px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #748195;
    background: transparent;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.language-button:hover {
    color: #d8dee7;
    background: #1b2634;
}

.language-button.active {
    border-color: #3b495c;
    color: #c4202d;
    background: #202b3a;
}

.login-heading {
    margin-bottom: 27px;
}

.login-kicker {
    display: block;
    margin-bottom: 10px;
    color: #8292a8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.login-heading h1 {
    margin: 0 0 9px;
    color: #f5f7fa;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.login-heading p {
    margin: 0;
    color: #8996a8;
    font-size: 14px;
    line-height: 1.55;
}

.login-form {
    display: grid;
    gap: 19px;
}

.field {
    display: grid;
    gap: 8px;
}

.field span {
    color: #c4ccd7;
    font-size: 13px;
    font-weight: 650;
}

.field input {
    width: 100%;
    min-height: 47px;
    padding: 11px 13px;
    border: 1px solid #344155;
    border-radius: 9px;
    outline: none;
    color: #f5f7fa;
    background: #0d141e;
    transition:
        border-color 140ms ease,
        box-shadow 140ms ease,
        background 140ms ease;
}

.field input::placeholder {
    color: #5f6b7d;
}

.field input:hover {
    border-color: #46566c;
}

.field input:focus {
    border-color: #7a8ba2;
    background: #101924;
    box-shadow: 0 0 0 3px rgba(122, 139, 162, 0.15);
}

.sign-in-button {
    width: 100%;
    min-height: 47px;
    margin-top: 3px;
    border: 1px solid #d9e0e8;
    border-radius: 9px;
    color: #101722;
    background: #e8edf3;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition:
        background 140ms ease,
        transform 140ms ease;
}

.sign-in-button:hover {
    background: #ffffff;
}

.sign-in-button:active {
    transform: translateY(1px);
}

.login-error {
    margin: 0 0 20px;
    padding: 11px 13px;
    border: 1px solid #70434b;
    border-radius: 8px;
    color: #efc5ca;
    background: #2c1b20;
    font-size: 13px;
    line-height: 1.45;
}

.login-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 17px;
    padding: 0 3px;
    color: #606d80;
    font-size: 11px;
}

@media (max-width: 500px) {
    .login-page {
        align-items: start;
        padding: 30px 15px;
    }

    .brand {
        margin-bottom: 22px;
    }

    .login-card {
        padding: 26px 22px;
        border-radius: 16px;
    }

    .login-footer {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
}

/* Working language selector */

.language-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
}

.language-button {
    display: inline-flex;
    min-width: 42px;
    min-height: 34px;
    justify-content: center;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid #d9dee7;
    border-radius: 9px;
    color: #667085;
    background: #f6f7f9;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        color 0.15s ease;
}

.language-button:hover {
    border-color: #c7cdd8;
    color: #172033;
    background: #eef0f4;
}

.language-button.active {
    border-color: #b51f2b;
    color: #ffffff;
    background: #b51f2b;
    box-shadow: 0 4px 12px rgba(181, 31, 43, 0.18);
}
