/* Billur — kirish sahifasi. Ranglar billur-theme.css tokenlaridan (light / dark). */

html body.b-auth-page,
html body.b-auth-page.bg-full-screen-image {
    background: var(--b-bg) !important;
    min-height: 100vh;
}
html body.dark-layout.b-auth-page { background: #18181b !important; }
html body.b-auth-page .app-content,
html body.b-auth-page .content .content-wrapper,
html body.b-auth-page .content-body {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent;
}

.b-auth {
    display: grid;
    grid-template-columns: 44% 1fr;
    min-height: 100vh;
}

/* ---------- Chap brend paneli ---------- */
.b-auth__brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.75rem 1.75rem 1.5rem;
    color: #e6fffb;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 70% 20%, rgba(94, 234, 212, .22), transparent 55%),
        linear-gradient(160deg, #0b4a44 0%, #0f766e 50%, #14958a 100%);
}
/* Dekorativ halqa (pastki o'ng burchak) */
.b-auth__brand::after {
    content: "";
    position: absolute;
    right: -150px;
    bottom: -210px;
    width: 470px;
    height: 470px;
    border-radius: 50%;
    border: 46px solid rgba(255, 255, 255, .07);
    pointer-events: none;
}
.b-auth__brand > * { position: relative; z-index: 1; }

.b-auth__brand-top { display: flex; align-items: center; gap: .75rem; }
.b-auth__logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .25);
    object-fit: contain;
}
.b-auth__name { font-size: 15px; font-weight: 700; letter-spacing: .06em; color: #fff; }
.b-auth__org { font-size: 12px; color: rgba(230, 255, 251, .75); margin-top: 1px; }

.b-auth__hero { max-width: 520px; }
.b-auth__hero h1 {
    color: #fff !important;
    font-size: 1.6rem;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0 0 1.75rem;
}

.b-auth__features { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.b-auth__features li { display: flex; align-items: center; gap: .8rem; font-size: 14.5px; color: #f0fdfa; }
.b-auth__features i {
    flex: 0 0 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, .14);
    font-size: 15px;
}

.b-auth__brand-foot { font-size: 12px; color: rgba(230, 255, 251, .55); }

/* ---------- O'ng qism ---------- */
.b-auth__main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
}
.b-auth__theme {
    position: absolute;
    top: 1.1rem;
    right: 1.25rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b !important;
    font-size: 18px;
    transition: background-color .15s ease;
}
.b-auth__theme:hover { background: var(--b-surface-2); }

.b-auth__card {
    width: 100%;
    max-width: 400px;
    padding: 2.25rem 2rem 2rem;
    text-align: center;
    background: var(--b-surface);
    border: 1px solid var(--b-border);
    border-radius: 18px;
    box-shadow: 0 24px 60px -30px rgba(15, 23, 42, .3);
}
body.dark-layout .b-auth__card { background: #27272a; border-color: #3f3f46; }

.b-auth__emblem {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #fff;
    padding: 3px;
    object-fit: contain;
    box-shadow: 0 0 0 4px var(--b-surface), 0 0 0 5px var(--b-border), 0 10px 24px -10px rgba(0, 0, 0, .35);
    margin-bottom: 1.1rem;
}

.b-auth__title {
    font-size: 1.4rem;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--b-heading);
    margin: 0 0 .4rem;
}
.b-auth__tagline { color: var(--b-primary); font-size: 12.5px; line-height: 1.5; font-weight: 600; margin: 0 0 .6rem; }
.b-auth__subtitle { color: var(--b-text-muted); font-size: 13px; line-height: 1.55; margin: 0 0 1.5rem; }

.b-auth__alert {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .7rem .85rem;
    margin-bottom: 1.1rem;
    border-radius: var(--b-radius-sm);
    background: var(--b-danger-soft);
    color: var(--b-danger);
    font-size: 13px;
    font-weight: 500;
    text-align: left;
}
.b-auth__alert i { margin-top: 2px; }

.b-auth__form { text-align: left; }
.b-auth__field { margin-bottom: 1rem; }
html body .b-auth__field label { font-size: 12.5px; font-weight: 600; color: var(--b-text); margin-bottom: .4rem; display: block; }
.b-auth__label-row { display: flex; justify-content: space-between; align-items: baseline; }
.b-auth__label-row a { font-size: 12px; font-weight: 500; }

.b-auth__input { position: relative; }
.b-auth__input > i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--b-text-muted);
    font-size: 15px;
    pointer-events: none;
}
html body .b-auth__input .form-control {
    height: 44px;
    padding-left: 40px;
    padding-right: 44px;
    font-size: 14px;
    border-radius: 10px;
    background: var(--b-surface-2);
}
html body.dark-layout .b-auth__input .form-control { background: #18181b; border-color: #3f3f46; }
.b-auth__toggle {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--b-text-muted);
    cursor: pointer;
}
.b-auth__toggle:hover { color: var(--b-heading); }

html body .btn.b-auth__submit {
    width: 100%;
    height: 44px;
    margin-top: .35rem;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 600;
}

.b-auth__divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.4rem 0;
    color: var(--b-text-muted);
    font-size: 12.5px;
}
.b-auth__divider::before,
.b-auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--b-border); }

html body a.b-auth__oneid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    height: 44px;
    border-radius: 10px;
    background: #4825c2;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background-color .15s ease;
}
html body a.b-auth__oneid:hover { background: #3b1ea3; color: #fff; }

/* ---------- OneID: bir nechta hisobdan birini tanlash ---------- */
.b-auth--single { grid-template-columns: 1fr; }
.b-auth__card--wide { max-width: 480px; }
.b-auth__subtitle strong { color: var(--b-heading); }

.b-accounts { display: flex; flex-direction: column; gap: .6rem; text-align: left; }
.b-accounts form { margin: 0; }
html body .b-account {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem 1rem;
    border: 1px solid var(--b-border);
    border-radius: 12px;
    background: var(--b-surface);
    color: var(--b-text);
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
html body .b-account:hover,
html body .b-account:focus-visible { border-color: var(--b-primary); background: var(--b-primary-soft); outline: none; }
body.dark-layout .b-account { background: #27272a; border-color: #3f3f46; }
.b-account__icon {
    flex: 0 0 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--b-primary-soft);
    color: var(--b-primary);
    font-size: 18px;
}
.b-account__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.b-account__role { font-weight: 700; font-size: 14px; color: var(--b-heading); }
.b-account__org { font-size: 12.5px; line-height: 1.4; color: var(--b-text); overflow-wrap: anywhere; }
.b-account__area { font-size: 12px; color: var(--b-text-muted); display: inline-flex; align-items: center; gap: .3rem; }
.b-account__go { color: var(--b-text-muted); font-size: 18px; }
html body .b-account:hover .b-account__go { color: var(--b-primary); }

html body a.b-accounts__back {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: 1.25rem;
    font-size: 13px;
    color: var(--b-text-muted);
}
html body a.b-accounts__back:hover { color: var(--b-primary); }

/* ---------- Planshet / mobil ---------- */
@media (max-width: 991.98px) {
    .b-auth { grid-template-columns: 1fr; }
    .b-auth__brand { display: none; }
    .b-auth__main { min-height: 100vh; padding: 4rem 1rem 2rem; }
    .b-auth__card { padding: 1.75rem 1.25rem 1.5rem; box-shadow: none; }
}
