@charset "UTF-8";

:root {
    --bg: #080a0d;
    --surface: #10151c;
    --line: #2b3442;
    --text: #f0f4fa;
    --muted: #96a4b5;
    --accent: #00c8ff;
    --danger: #ff4b5c;
}

* {
    box-sizing: border-box;
}

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

body {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
        var(--bg);
    background-size: 38px 38px;
    color: var(--text);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

button,
input,
select {
    font: inherit;
}

.login-page {
    border-top: 4px solid var(--accent);
}

.login-shell {
    min-height: calc(100vh - 4px);
    display: grid;
    place-items: center;
    padding: 20px;
}

.login-card {
    width: min(420px, 100%);
    padding: 22px;
    background: rgba(13, 17, 23, .97);
    border: 1px solid var(--line);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
}

.login-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.login-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.login-logo {
    width: 38px;
    height: 38px;
}

.login-brand-name {
    overflow: hidden;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: .07em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.login-language-select {
    position: relative;
    flex: 0 0 auto;
}

.login-language-select::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--accent);
    pointer-events: none;
    transform: translateY(-25%);
}

.login-language-select select {
    height: 34px;
    min-width: 102px;
    padding: 0 27px 0 9px;
    border: 1px solid var(--line);
    border-radius: 0;
    outline: 0;
    appearance: none;
    background: #07090c;
    color: var(--text);
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
}

.login-language-select select:focus {
    border-color: var(--accent);
}

.login-card h1 {
    margin: 30px 0 14px;
    font-size: 25px;
    line-height: 1.15;
}

.login-form {
    margin: 0;
}

.login-form input {
    width: 100%;
    height: 46px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 0;
    outline: 0;
    background: #07090c;
    color: var(--text);
}

.login-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.login-form button {
    width: 100%;
    height: 46px;
    margin-top: 10px;
    border: 1px solid var(--accent);
    border-radius: 0;
    background: var(--accent);
    color: #001018;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    cursor: pointer;
}

.login-form button:hover,
.login-form button:focus-visible {
    background: transparent;
    color: var(--accent);
    outline: 0;
}

.login-error {
    margin-top: 10px;
    padding: 10px 11px;
    background: rgba(255, 75, 92, .09);
    border: 1px solid var(--danger);
    color: #ffd8dd;
    font-size: 12px;
    font-weight: 700;
}

.sr-only {
    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: 520px) {
    .login-shell {
        padding: 0;
    }

    .login-card {
        min-height: calc(100vh - 4px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        border: 0;
        padding: 20px;
    }

    .login-language-select select {
        min-width: 92px;
    }
}
