/* --- styleLogin.css --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Fon rasmi */
    background: linear-gradient(rgba(4, 9, 30, 0.8), rgba(4, 9, 30, 0.8)), url('images/sayt/bg.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Karta Dizayni */
.login-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px); /* Shishasimon effekt */
    width: 400px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: #fff;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Logo */
.login-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid #00a8ff;
    margin-bottom: 15px;
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.5);
    object-fit: cover;
}

.login-card h2 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 5px;
}

.login-card p {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 30px;
}

/* Inputlar */
.input-group {
    position: relative;
    margin-bottom: 20px;
    text-align: left;
}

.input-group i.icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #fff;
    font-size: 18px;
}

.input-group input {
    width: 100%;
    padding: 12px 40px 12px 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: #fff;
    outline: none;
    font-size: 15px;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: #00a8ff;
    box-shadow: 0 0 10px rgba(0, 168, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
}

.input-group input::placeholder {
    color: #ddd;
}

/* Ko'zcha (Password Toggle) */
.toggle-pass {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #ccc;
    font-size: 16px;
    transition: 0.3s;
}

.toggle-pass:hover {
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

/* Kirish Tugmasi */
.login-btn {
    width: 100%;
    padding: 12px;
    background: #00a8ff;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.4);
}

.login-btn:hover {
    background: #008ecc;
    transform: scale(1.02);
}

/* Xatolik matni */
#xato {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
    padding: 10px;
    border-radius: 10px;
    margin-top: 15px;
    display: none;
    font-size: 14px;
    border: 1px solid #ff4757;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Saytga qaytish */
.back-home {
    display: block;
    margin-top: 20px;
    color: #aaa;
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s;
}

.back-home:hover {
    color: #00a8ff;
}

/* MODAL (Parol Yangilash) */
#passwordModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    width: 350px;
    text-align: center;
    color: #333;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-content h3 { margin-bottom: 10px; color: #2f3542; }
.modal-content p { font-size: 13px; color: #666; margin-bottom: 20px; }

.modal-input-wrapper { position: relative; margin-bottom: 15px; }
.modal-input-wrapper input {
    width: 100%;
    padding: 12px;
    padding-right: 35px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
}
.modal-input-wrapper input:focus { border-color: #00a8ff; }
.modal-input-wrapper i {
    position: absolute;
    right: 10px;
    top: 14px;
    color: #888;
    cursor: pointer;
}

.save-btn {
    width: 100%;
    padding: 12px;
    background: #2ed573;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
}
.save-btn:hover { background: #26af61; }

/* Mobil uchun */
@media (max-width: 450px) {
    .login-card { width: 90%; padding: 30px 20px; }
}