/* ----- RESET ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px; /* Thoda padding kam kiya mobile ke liye */

    /* IMPORTANT: ../ ka matlab hai 'css' folder se bahar niklo */
    background-image: url('../images/bg3.jpg'); 
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* App jaisa feel dene ke liye background fixed rakho */
}

/* ----- GLASS CARD ----- */
.login-card {
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(25px);            
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5); 
    
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    color: white;
}

/* ----- LOGO ----- */
.logo-container {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    overflow: hidden;
}

.logo-container img {
    max-width: 70%;
    height: auto;
}

/* ----- TEXT ----- */
h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

p.subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

/* ----- ERROR BOX ----- */
.error-box {
    background: rgba(255, 77, 77, 0.15); /* Reddish glass */
    border: 1px solid rgba(255, 77, 77, 0.4);
    color: #ffcccc;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ----- INPUTS ----- */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* ----- BUTTON ----- */
.login-btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.footer {
    margin-top: 25px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

/* =========================================
   RESPONSIVE DESIGN (FOR MOBILE APP FEEL)
   ========================================= */
@media (max-width: 480px) {
    body {
        padding: 15px;
        align-items: center; 
    }
    
    .login-card {
        padding: 30px 20px;
        border-radius: 15px;
        /* Mobile pe card screen tak stretch hota hai thoda, looks better */
    }

    .logo-container {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }

    h2 {
        font-size: 22px;
    }

    .input-group input {
        padding: 10px 12px;
        font-size: 15px; /* Thoda bada font phone pe type karne me asaan rehta hai */
    }

    .login-btn {
        padding: 14px; /* Mobile par touch area bada hona chahiye */
        font-size: 15px;
    }
}