.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-window {
    width: 380px;
    max-width: 100%;
}

.login-logo {
    text-align: center;
    padding: 15px 0;
    font-size: 28px;
    color: #325272;
}

.login-logo div {
    font-size: 16px;
    font-weight: bold;
    margin-top: 5px;
    color: #333;
}

.login-field {
    margin-bottom: 12px;
}

.login-field label {
    display: block;
    font-size: 12px;
    margin-bottom: 3px;
    font-weight: bold;
    color: #333;
}

.login-field .form-control-xp {
    width: 100%;
    padding: 6px 8px;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 6px;
}

.login-remember label {
    display: inline;
    font-weight: normal;
    margin-bottom: 0;
}

.login-actions {
    text-align: right;
    padding-top: 8px;
}

.login-btn {
    padding: 6px 24px;
    font-size: 13px;
}

/* ── İstifadəçi seçimi (select2) ─────────────────────────────────── */

.login-window .select2-container {
    width: 100% !important;
}

.login-window .select2-container--default .select2-selection--single {
    height: 40px;
    border: 1px solid #c2cad4;
    border-radius: 0;
    background: #fff;
}

.login-window .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
    padding-left: 6px;
    color: #222;
}

.login-window .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
}

.login-window .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999;
    font-size: 13px;
}

/* Açılan siyahı body-yə əlavə olunur (`.xp-window`-da `overflow:hidden` var),
   ona görə bu qaydalar pəncərə ilə məhdudlaşdırılmır. Bu CSS yalnız giriş
   səhifəsində yüklənir. */
.select2-dropdown {
    border-color: #c2cad4;
    border-radius: 0;
}

.select2-results__group {
    font-size: 11px;
    font-weight: bold;
    color: #1f5a7a;
    background: #eef3f8;
    padding: 3px 8px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.select2-container--default .select2-results__option {
    padding: 4px 8px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #1f5a7a;
}

.select2-search--dropdown .select2-search__field {
    font-size: 13px;
    padding: 5px 6px;
    border: 1px solid #c2cad4;
}

/* Sətir: avatar + ad + vəzifə */
.login-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.login-opt-ava {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border-radius: 50%;
    object-fit: cover;
    background: #d7e3ee;
    color: #2a4a7a;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    border: 1px solid #c2d3e4;
}

.login-opt-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.login-opt-name {
    font-size: 13px;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.login-opt-pos {
    font-size: 10.5px;
    color: #8a97a4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Seçilmiş sətir vurğulananda mətn ağ olur — alt sətir də oxunaqlı qalsın. */
.select2-results__option--highlighted .login-opt-name,
.select2-results__option--highlighted .login-opt-pos {
    color: #fff;
}

/* ── Şifrə sahəsi ────────────────────────────────────────────────── */

.login-pass-box {
    position: relative;
}

.login-pass-box .form-control-xp {
    padding-right: 30px;
}

.login-pass-eye {
    position: absolute;
    right: 1px;
    top: 1px;
    bottom: 1px;
    width: 28px;
    border: none;
    background: transparent;
    color: #8a97a4;
    cursor: pointer;
    font-size: 12px;
}

.login-pass-eye:hover {
    color: #2a4a7a;
}

.login-hint {
    font-size: 11px;
    color: #8a97a4;
    margin-top: 4px;
}

.login-hint-warn {
    color: #a33;
}

/* Seçilmiş sətir də eyni şablonla göstərilir — qutunun içində dikinə mərkəzlə. */
.login-window .select2-selection__rendered .login-opt {
    height: 38px;
    line-height: 1.25;
}

.login-window .select2-selection__rendered .login-opt-name {
    font-weight: 600;
}
