:root {
    /* Layout */
    --card-radius: 12px;
    --shell-bg: #ffffff;

    /* Colors */
    --teal: linear-gradient(360deg, #257579 0, #4c8dc6 100%);
    --gold: #e2c772;
    --purple: #244192;
    --purple-600: #24459f;

    /* Shadows */
    --shadow-1: 0 0.75rem 2rem rgba(16, 24, 40, 0.08);
}

html,
body {
    height: 100%;
    overflow: hidden;
}

/* ===== Fullscreen video background ===== */
.bg-video {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    background: #000;
}
.bg-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.bg-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.6);
}

.page-foreground {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Optional: disable video on small screens for performance */
@media (max-width: 768px) {
    html,
    body {
        overflow: auto;
    } /* allow scroll if content needs it on mobile */
    /*.bg-video {*/
    /*    display: none;*/
    /*}*/
    .bg-overlay {
        background: linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.55),
                rgba(0, 0, 0, 0.72)
        );
    }
}

/* ===== Cards wrapper (STACKED) ===== */
.login-cards {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2vw, 28px);
    width: min(100%, 520px);
    margin-inline: auto;
}

.login-card {
    border: 0;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-1);
    width: 100%;
    background: #ffffffe8;
}

.card-body {
    padding: clamp(20px, 3.2vw, 28px);
}

/* ===== Button: cursor-following shine (FIXED) ===== */
.btn-oneid-custom {
    position: relative;
    overflow: hidden;

    /* defaults */
    --sx: 50%;
    --sy: 50%;
}

/* Shine that follows cursor */
.btn-oneid-custom::before {
    content: "";
    position: absolute;
    inset: 0; /* ✅ IMPORTANT: same size as button */
    pointer-events: none;

    opacity: 0;
    transition: opacity 0.15s ease;

    background: radial-gradient(
            260px circle at var(--sx) var(--sy),
            rgba(255, 255, 255, 0.24),
            rgba(255, 255, 255, 0.18) 38%,
            rgba(255, 255, 255, 0) 70%
    );
}

/* Optional glossy streak */
.btn-oneid-custom::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.1;
    background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.2),
            rgba(255, 255, 255, 0.02) 45%,
            rgba(255, 255, 255, 0) 70%
    );
}

/* show shine on hover/focus */
.btn-oneid-custom:hover::before,
.btn-oneid-custom:focus-visible::before {
    opacity: 1;
}

/* keep label above shine */
.btn-oneid-custom .indicator-label,
.btn-oneid-custom .indicator-progress {
    position: relative;
    z-index: 2;
}

/* ===== OneID Card ===== */
.oneid-head {
    color: var(--purple);
    font-weight: 600;
    font-size: 25px;
}

.oneid-note {
    color: #667085;
    font-size: 14px;
}

.oneid-mark {
    width: clamp(110px, 18vw, 160px);
    height: auto;
}

.btn-oneid-custom {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--purple);
    --bs-btn-border-color: var(--purple);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--purple);
    --bs-btn-hover-border-color: var(--purple);
    --bs-btn-focus-shadow-rgb: 23, 112, 217;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--purple);
    --bs-btn-active-border-color: var(--purple);
    --bs-btn-active-shadow: none;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--purple);
    --bs-btn-disabled-border-color: var(--purple);
    border-radius: 50px;
    padding-block: 14px;
    font-weight: 600;
}

/* ===== Brand Card (TOP) ===== */
.brand-card {
    background: var(--teal);
    color: #fff;
    border: 0;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 22px;
    text-align: center;
    width: 100%;
}

.brand-mark {
    width: min(300px, 75%);
    height: auto;
}

@media (max-width: 420px) {
    .oneid-head {
        font-size: 20px;
    }
    .brand-mark {
        width: min(260px, 85%);
    }
}

/* ===== Liquid Glass (iOS-like) ===== */
.glass-card,
.modal-content.glass-modal {
    position: relative;
    overflow: hidden;

    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px) saturate(170%);
    -webkit-backdrop-filter: blur(18px) saturate(170%);

    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);

    border-radius: var(--card-radius);
}

.glass-card::before,
.modal-content.glass-modal::before {
    content: "";
    position: absolute;
    inset: -40% -30%;
    background: radial-gradient(
            circle at 30% 25%,
            rgba(255, 255, 255, 0.35),
            rgba(255, 255, 255, 0.08) 35%,
            rgba(255, 255, 255, 0) 65%
    );
    transform: rotate(-8deg);
    pointer-events: none;
}

.glass-card::after,
.modal-content.glass-modal::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
}

.glass-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.brand-card.glass-card {
    background: rgba(36, 65, 146, 0.14);
}

.login-card.glass-card {
    background: rgba(255, 255, 255, 0.16);
}

@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
    .glass-card,
    .modal-content.glass-modal {
        background: rgba(255, 255, 255, 0.92);
    }
}

:root {
    --text: #5c6578;
    --active-bg: transparent;
    --item-bg: #ececec;
    --flag-border: #c8cddc;
    --chev: #bdc2d0;
}

.language-fs {
    font-size: 12px !important; /* fs-16px */
    font-weight: 500 !important;
}

/* Active button (ko‘rinib turgan) */
.lang-switcher .btn-lang {
    background: var(--active-bg);
    border-radius: 50px;
    padding: 0px 0px 0px 0px !important;

    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text);
    box-shadow: none !important;
}

.lang-switcher .btn-lang .left {
    display: flex;
    align-items: center;
    gap: 5px;
}

.flag-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 0.5px solid var(--flag-border);
    object-fit: cover;
    display: block;
}

.chevron {
    width: 13px;
    height: 13px;
    fill: var(--chev);
    flex: 0 0 auto;
}

.lang-switcher .dropdown-menu {
    border: 1px solid #d7d8e1 !important;
    background: transparent;
    overflow: hidden;
    min-width: 100px; /* button bilan bir xil */
}

.lang-switcher .dropdown-item {
    padding: 0; /* biz o‘zimiz button yasaymiz */
    background: transparent; /* defaultni o‘chirib qo‘yamiz */
}

.lang-switcher .lang-item {
    background: var(--item-bg) !important;
    color: var(--text);
    border: 0 !important;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    width: 100%;
}

/* Rasmdagidek: English tepasi yumaloq, pasti tekis */
.lang-switcher .lang-item.english {
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}

/* Russian pastki yumaloq */
.lang-switcher .lang-item.russian {
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
}

.lang-switcher li + li {
    margin-top: 0;
}

/* Hover (chiroyli) */
.lang-switcher .lang-item:hover {
    filter: brightness(0.98);
}
.mt-minus {
    margin-top: -25px;
}
@media (max-width: 1200px) {
    .mt-minus {
        margin-top: -15px;
    }
}
