:root {
    --navy: #101c31;
    --blue: #2563eb;
    --text: #182338;
    --muted: #748096;
    --border: #e1e6ef;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: #fff;
}

.login-layout {
    display: grid;
    grid-template-columns: 46% 54%;
    min-height: 100vh;
}

.brand-panel {
    background: linear-gradient(145deg, #172b4b, #0b1425);
    color: #fff;
    padding: 52px 65px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand-logo, .mobile-logo {
    font-size: 23px;
    font-weight: 850;
    letter-spacing: 1.2px;
}

.brand-logo span, .mobile-logo span {
    color: #60a5fa;
    margin-left: 4px;
}

.brand-content { max-width: 460px; }

.eyebrow {
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 2px;
    color: #8ab4f8;
    margin-bottom: 20px;
}

.brand-content h1 {
    font-size: clamp(32px, 3.2vw, 52px);
    line-height: 1.14;
    letter-spacing: -1.7px;
    margin: 0 0 25px;
}

.brand-content p {
    color: #aebbd0;
    font-size: 16px;
    line-height: 1.8;
}

.brand-footer {
    font-size: 12px;
    color: #8291a8;
}

.login-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-card {
    width: 100%;
    max-width: 390px;
    margin: auto;
}

.accent { color: var(--blue); margin-bottom: 12px; }

h2 {
    font-size: 34px;
    letter-spacing: -1px;
    margin: 0 0 10px;
}

.subtitle {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 34px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 650;
    margin-bottom: 9px;
}

input {
    width: 100%;
    height: 49px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 9px;
    font-size: 14px;
    outline: none;
    margin-bottom: 23px;
    transition: border-color .2s, box-shadow .2s;
}

input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

button {
    width: 100%;
    height: 49px;
    background: var(--blue);
    color: #fff;
    border: 0;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}

button:hover { background: #1d4ed8; }

.alert-error {
    background: #fff1f2;
    color: #be123c;
    border-radius: 8px;
    padding: 13px;
    font-size: 13px;
    margin-bottom: 20px;
}

.login-help {
    color: var(--muted);
    font-size: 12px;
    text-align: center;
    margin-top: 25px;
}

.login-copyright {
    font-size: 11px;
    color: #a1aab9;
}

.mobile-logo { display: none; }

@media (max-width: 850px) {
    .login-layout { display: block; }
    .brand-panel { display: none; }
    .login-panel { min-height: 100vh; padding: 28px; }
    .mobile-logo { display: block; margin-bottom: 55px; }
    .login-card { margin: auto; }
}


/* Login language switcher */

.login-panel {
    position: relative;
}

.login-language-switcher {
    position: absolute;
    top: 28px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.login-language-switcher form {
    margin: 0;
}

.login-language-switcher .language-option {
    width: auto;
    min-width: 46px;
    height: 36px;
    padding: 0 10px;
    background: transparent;
    color: #748096;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.login-language-switcher .language-option:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.login-language-switcher .language-option.active {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.login-language-switcher .language-option:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

@media (max-width: 850px) {
    .login-language-switcher {
        top: 18px;
        right: 20px;
    }
}
