/* Login only — isolated from dashboard theme */
html, body { min-height: 100%; margin: 0; }
.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;
}
/* Top-right language (same idea as dashboard header) */
.nxt-login-lang {
    position: fixed;
    top: 12px;
    right: 14px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 5px;
}
.nxt-login-lang__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #353a40;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
}
.nxt-login-lang__btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
    background: #3e444c;
}
.nxt-login-lang__btn.is-active {
    color: #0a0a0a;
    border-color: #00cc33;
    background: #00ff3e;
    box-shadow: 0 0 16px rgba(0, 255, 80, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.nxt-login-lang__btn.is-active .nxt-login-lang__code {
    color: #0a0a0a;
}
.nxt-login-lang__fi {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    width: 1.15rem;
    height: 0.77rem;
    border-radius: 2px;
    background: #444 center / cover no-repeat;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.nxt-login-lang__fi--ro {
    background-image: url("https://flagcdn.com/w20/ro.png");
}
.nxt-login-lang__fi--gb {
    background-image: url("https://flagcdn.com/w20/gb.png");
}
.nxt-login-lang__btn.is-active .nxt-login-lang__fi {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}
.nxt-login-lang__code {
    letter-spacing: 0.04em;
    font-size: 12px;
    font-weight: 700;
}

body.nxt-login {
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #050b1b;
    background-image: url("../login-desktop-original-v2.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: none;
    min-height: 100vh;
}
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px;
}
.login-card {
    width: 100%;
    max-width: 330px;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    color: #fff;
}
.login-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
}
.login-card h3 { margin: 0; font-size: 34px; font-weight: 300; line-height: 1; }
.login-sub {
    margin: 2px 0 0;
    opacity: 0.65;
    font-size: 11px;
    letter-spacing: 0.6px;
}
.login-lock {
    font-size: 42px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.9);
    margin-top: -4px;
}
.login-card .form-group { margin-bottom: 10px; }
.login-card label { display: block; margin-bottom: 0; font-size: 0; }
.login-card .form-control {
    width: 100%;
    box-sizing: border-box;
    background: #f5f2c8;
    border: 0;
    color: #1f2e44;
    border-radius: 4px;
    padding: 7px 10px;
    height: 26px;
    font-size: 12px;
}
.login-card .form-control:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(118, 155, 255, 0.35);
}
.login-card .btn-login {
    width: 100%;
    margin-top: 16px;
    height: 28px;
    padding: 0 10px;
    background: linear-gradient(180deg, #2e3d58 0%, #22324f 100%);
    border: 1px solid rgba(120, 150, 220, 0.25);
    color: #fff;
    border-radius: 4px;
    font-weight: 400;
    font-size: 11px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(9, 17, 38, 0.45);
}
.login-card .btn-login:hover {
    filter: brightness(1.09);
    box-shadow: 0 5px 14px rgba(12, 22, 52, 0.6);
}
.login-card .alert-danger {
    padding: 8px 10px;
    font-size: 13px;
    margin-bottom: 12px;
    border-radius: 4px;
    background: rgba(180, 40, 40, 0.35);
    border: 1px solid rgba(255, 100, 100, 0.35);
}

@media (min-width: 768px) {
    body.nxt-login {
        background-position: center top;
        background-size: cover;
    }

    .login-wrap {
        /* Final desktop alignment to match reference screenshot */
        padding-top: clamp(330px, 52vh, 430px);
    }
}

/* Mobile-only login tuning; desktop remains unchanged */
@media (max-width: 767px) {
    body.nxt-login {
        background-image: url("../login-mobile-original.png");
        background-position: center top;
        background-size: auto 100%;
        background-repeat: no-repeat;
        filter: none;
    }

    .login-wrap {
        align-items: flex-start;
        justify-content: center;
        padding: 360px 14px 24px;
    }

    .login-card {
        max-width: 100%;
        padding: 0;
    }

    .login-card h3 {
        font-size: 38px;
    }

    .login-sub {
        font-size: 11px;
    }

    .login-lock {
        font-size: 44px;
    }
}
