/* =========================
   1. ASOSIY QOIDALAR STILI
   ========================= */

:root {
    --primary-blue: #4285F4;
    --bg-light: #F7F9FC;
    --text-dark: #1A202C;
    --text-muted: #4A5568;
    --border-color: #E2E8F0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden; 
}

/* =========================
   2. VIDEO FON SECTION STILI
   ========================= */

#background-video {
    position: fixed; 
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1; 
    transform: translate(-50%, -50%); 
    object-fit: cover;
}

/* =========================================
   3. OVOZ BOSHQARUVI TUGMASI SECTION STILI
   ========================================= */

#toggle-video-sound {
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    z-index: 1000;
    width: 100px; 
    height: 50px; 
    display: flex;
    justify-content: space-evenly; 
    align-items: center;
    font-size: 1rem; 
    font-weight: 700; 
    background: rgba(0, 0, 0, 0.7); 
    color: white; 
    border: 2px solid rgba(255, 255, 255, 0.5); 
    border-radius: 25px; 
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4); 
    transition: all 0.3s ease-in-out, box-shadow 0.2s; 
}

#toggle-video-sound:hover {
    background: rgba(0, 0, 0, 0.9); 
    transform: scale(1.05); 
    border: 2px solid white; 
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 
                0 6px 20px rgba(0, 0, 0, 0.8); 
}

#toggle-video-sound:active {
    transform: scale(1.0) translateY(2px); 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); 
}

/* =================================
   4. LOGIN KONTENERI SECTION STILI
   ================================= */

.login-container {
    background-color: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    border: 1px solid rgba(255, 255, 255, 0.18); 
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); 
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 420px; 
    text-align: center;
    z-index: 10; 
    transition: transform 0.3s ease;
}

.login-container:hover {
    transform: translateY(-5px); 
}

.login-container h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--primary-blue);
}

.login-logo { 
    margin-bottom: 20px; 
}

.login-logo img { 
    height: 150px; 
    border-radius: 12px;
}

/* ===================================
   5. FORMA ELEMENTLARI SECTION STILI
   =================================== */

.form-group { 
    margin-bottom: 20px; 
    text-align: left; 
}

.form-group label { 
    display: block; 
    font-weight: 600; 
    color: var(--text-dark); 
    margin-bottom: 8px; 
    font-size: 0.95rem; 
}

.form-group input { 
    width: 100%; 
    padding: 12px; 
    border: 2px solid var(--border-color); 
    border-radius: 8px; 
    font-size: 1rem; 
    color: var(--text-dark); 
    transition: border-color 0.3s, box-shadow 0.3s; 
}

.form-group input:focus { 
    border-color: var(--primary-blue); 
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2); 
    outline: none; 
}

/* ========================================
   6. TIZIMGA KIRISH TUGMASI SECTION STILI
   ======================================== */

.btn-login { 
    width: 100%; 
    padding: 12px; 
    border-radius: 8px; 
    font-weight: 700; 
    text-decoration: none; 
    display: block; 
    background-color: var(--primary-blue); 
    color: white; 
    border: none; 
    cursor: pointer; 
    font-size: 1.05rem; 
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.4); 
    transition: all 0.3s ease; 
}

.btn-login:hover { 
    background-color: #357ae8; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.5); 
}

/* ======================================
   7. QO'SHIMCHA HAVOLALAR SECTION STILI
   ====================================== */

.extra-links { 
    margin-top: 30px; 
    font-size: 0.95rem; 
    color: var(--text-muted); 
    line-height: 1.6; 
}

.extra-links a { 
    color: var(--primary-blue); 
    text-decoration: none; 
    font-weight: 600; 
    transition: color 0.3s; 
    font-weight: 600; 
}

.extra-links a:hover { 
    color: #357ae8; 
    text-decoration: underline; 
}

/* ======================================
   8. RESPONSIVE MEDIA QUERIES SECTION STILI
   ====================================== */

/* PLANSHEYLAR VA KICHIK LAPTOP EKRANLARI (768px gacha) */
@media (max-width: 768px) {
    /* Login konteynerini ixchamlashtirish */
    .login-container {
        max-width: 380px; 
    }
    
    /* Sarlavha */
    .login-container h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    /* Logo o'lchami */
    .login-logo img {
        height: 120px;
    }

    /* Ovoz tugmasi joylashuvi */
    #toggle-video-sound {
        bottom: 20px; 
        right: 20px;
    }
}


/* MOBIL TELEFONLAR UCHUN (600px gacha) */
@media (max-width: 600px) {
    
    /* Body (Kontentni tepaga siljitish) */
    html, body {
        align-items: flex-start; 
        padding-top: 5vh; 
        padding-bottom: 5vh;
        min-height: auto;
    }

    /* Login konteyneri */
    .login-container { 
        margin: 20px auto; 
        padding: 30px; 
        max-width: 90%; 
    }
    
    /* Sarlavha */
    .login-container h2 { 
        font-size: 1.5rem; 
        margin-bottom: 20px;
    }
    
    /* Logo o'lchami */
    .login-logo img { 
        height: 100px; 
    }
    
    /* Kichik matnlar */
    .form-group label, .extra-links {
        font-size: 0.9rem; 
    }
    
    /* Ovoz tugmasi */
    #toggle-video-sound {
        bottom: 10px; 
        right: 10px; 
        width: 80px; 
        height: 40px; 
        font-size: 0.8rem; 
        border-radius: 20px; 
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4); 
    }
    /* Mobil uchun hover/active effektini oddiylashtirish */
    #toggle-video-sound:hover, #toggle-video-sound:active {
        transform: none; 
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4); 
    }
}

/* Kichik telefonlar uchun (375px gacha) */
@media (max-width: 375px) {
    .login-container {
        padding: 20px;
        margin: 10px auto;
    }
    .btn-login {
        padding: 10px;
        font-size: 1rem;
    }
}
