/* =========================
   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: white;
    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. REGISTRATION KONTENER SECTION STILI
   ======================================= */

.register-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: 20px;
    border-radius: 12px;
    width: 100%;
    max-width: 420px; 
    text-align: center;
    z-index: 10; 
    transition: transform 0.3s ease;
}

.register-container:hover {
    transform: translateY(-8px); 
}

.register-container h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

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

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


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

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

.form-group label { 
    display: block; 
    font-weight: 600; 
    color: white; 
    margin-bottom: 8px; 
    font-size: 0.95rem; 
}

.form-group input, .form-group select { 
    width: 100%; 
    padding: 12px; 
    border: 2px solid rgba(255, 255, 255, 0.3); 
    border-radius: 8px; 
    font-size: 1rem; 
    color: white; 
    background: rgba(0, 0, 0, 0.3); 
    transition: border-color 0.3s, box-shadow 0.3s; 
    appearance: none; 
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23ffffff' d='M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7em top 50%;
    background-size: 0.65em auto, 100%;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus, .form-group select:focus { 
    border-color: white; 
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2); 
    outline: none; 
    background: rgba(0, 0, 0, 0.5);
}

.form-group select option {
    background: #1A202C; 
    color: white;
}


/* ===========================================
   6. RO'YXATDAN O'TISH TUGMASI SECTION STILI
   =========================================== */

.btn-register { 
    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-register: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: 20px;
    font-size: 0.9rem; 
    color: rgb(225, 216, 216); 
    line-height: 1.6; 
}

.extra-links a { 
    color: white; 
    text-decoration: none; 
    font-weight: 600; 
    transition: color 0.3s; 
}

.extra-links a:hover { 
    color: var(--primary-blue); 
    text-decoration: underline; 
}


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

/* PLANSHEYLAR VA KICHIK LAPTOP EKRANLARI (768px gacha) */
@media (max-width: 768px) {
    
    /* Kontteynerni ixchamlashtirish */
    .register-container {
        max-width: 380px; 
        padding: 30px; /* Paddingni biroz kamaytirish */
    }
    
    /* Sarlavha */
    .register-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: Skrollni yoqish va kontentni tepaga siljitish */
    html, body {
        align-items: flex-start;
        padding-top: 7px;
        padding-bottom: 7px;
        min-height: auto; 
    }

    /* Konteynerni mobilga moslash */
    .register-container { 
        margin: 10px auto; 
        padding: 12px; 
        max-width: 90%; 
    }
    
    /* Sarlavha */
    .register-container h2 { 
        font-size: 1.3rem; 
        margin-bottom: 7px; 
    }
    
    /* Logo o'lchami */
    .login-logo img { 
        height: 50px; 
    }
    
    /* Forma elementlarining bo'shliqlarini kamaytirish */
    .form-group {
        margin-bottom: 15px;
    }

    /* Kichik matnlar */
    .form-group label, .extra-links {
        font-size: 0.85rem; 
    }

    /* Input/Select/Tugma ichki bo'shliqlarini kamaytirish */
    .form-group input, .form-group select, .btn-register {
        padding: 10px; 
        font-size: 1rem;
    }
    
    /* Ovoz tugmasini kichraytirish */
    #toggle-video-sound {
        bottom: 10px; 
        right: 10px; 
        width: 80px; 
        height: 40px; 
        font-size: 0.8rem; 
        border-radius: 20px; 
    }
    /* Mobil uchun hover effektini o'chirish/oddiy holatda qoldirish */
    #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) {
    .register-container {
        padding: 15px;
        margin: 10px auto;
    }
    .register-container h2 {
        font-size: 1.3rem;
    }
    .form-group {
        margin-bottom: 10px;
    }
    .extra-links {
        margin-top: 15px;
    }
}
