@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Quicksand:wght@400;500;700&display=swap');

/* O'zgaruvchilar */
:root {
    --primary-color: #00f260;
    --secondary-color: #0575E6;
    --glass-bg: rgba(20, 20, 35, 0.75);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-color: #fff;
    --muted-color: #94a3b8;
}

/* 1. ASOSIY BODY SOZLAMALARI */
body {
    /* Orqa fon rasmi yo'li to'g'riligini tekshiring */
    background: url('../../hero-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Quicksand', sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center; /* Gorizontal markaz */
    align-items: center; /* Vertikal markaz */
}

/* Orqa fonni qoraytirish */
body::before {
    content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 5, 17, 0.85); 
    z-index: -1;
}

/* 2. AUTH WRAPPER (Konteyner) */
.auth-wrapper {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 3. GLASS CARD (Login oynasi) - FIXING STRETCH ISSUE */
.glass-card {
    width: 100%;
    max-width: 400px; /* <--- ENG MUHIM: Chegara qo'yildi */
    padding: 40px 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 0 auto; /* O'rtada turishini ta'minlaydi */
}

/* Karta tepasidagi neon chiziq */
.glass-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* 4. LOGO VA MATNLAR */
.brand-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 5px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.brand-title i { color: var(--primary-color); margin-right: 8px; }

.subtitle { color: var(--muted-color); margin-bottom: 30px; font-size: 0.9rem; }

/* 5. INPUTLAR (Bootstrapni override qilamiz) */
.input-group {
    margin-bottom: 20px;
}

.form-control, .input-group-text {
    background-color: rgba(0, 0, 0, 0.3) !important; /* To'q fon */
    border: 1px solid var(--glass-border) !important;
    color: #fff !important;
    height: 50px;
    font-size: 1rem;
}

.input-group-text {
    border-right: none !important;
    color: var(--muted-color);
    width: 50px;
    justify-content: center;
}

.form-control {
    border-left: none !important;
    padding-left: 10px;
}

.form-control::placeholder { color: #64748b; font-size: 0.9rem; }

.form-control:focus {
    box-shadow: none !important;
    border-color: var(--primary-color) !important;
}
.form-control:focus + .input-group-text, 
.input-group:focus-within .input-group-text {
    border-color: var(--primary-color) !important;
    color: var(--primary-color);
}

/* 6. TUGMA */
.btn-submit {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: #fff;
    font-weight: 700;
    padding: 14px;
    width: 100%;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(5, 117, 230, 0.3);
    cursor: pointer;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 242, 96, 0.4);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

/* 7. LINKLAR */
.bottom-links { margin-top: 25px; color: var(--muted-color); font-size: 0.9rem; }
.bottom-links a { 
    color: var(--primary-color); text-decoration: none; font-weight: 600; margin-left: 5px; 
}
.bottom-links a:hover { text-decoration: underline; color: #fff; }

.back-link {
    display: inline-block; margin-top: 20px; 
    color: #64748b; font-size: 0.85rem; text-decoration: none; transition: 0.3s;
}
.back-link:hover { color: #fff; transform: translateX(-3px); }

/* 8. ALERTLAR */
.alert {
    background: rgba(255, 255, 255, 0.05);
    border: none; color: #fff; font-size: 0.9rem; 
    border-radius: 10px; text-align: left;
    margin-bottom: 20px;
}
.alert-danger { border-left: 4px solid #ff4757; }
.alert-success { border-left: 4px solid #00f260; }

/* 9. MOBILE MOSLASHUV */
@media (max-width: 576px) {
    .glass-card {
        padding: 30px 20px; 
        max-width: 100%; /* Telefonda to'liq sig'sin */
    }
}

/* Animatsiya */
.fade-in { animation: fadeIn 0.6s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }