/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    /* User selection band */
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

html {
    height: 100%;
    width: 100%;
}

body {
    /* Background Blue Gradient */
    background: linear-gradient(135deg, #000428, #004e92);
    
    /* --- CENTER FIX (Ye zaroori he) --- */
    min-height: 100vh; /* Screen ki puri height lega */
    width: 100%;
    display: flex;     /* Flexbox on */
    flex-direction: column;
    justify-content: center; /* Upar Niche se Center */
    align-items: center;     /* Dayen Bayen se Center */
    
    /* Extra spacing mobile k liye */
    margin: 0;
    overflow: hidden; /* Scroll band */
}

/* --- SPLASH SCREEN STYLES --- */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000428, #004e92);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.splash-logo img {
    width: 140px;
    height: auto;
    object-fit: contain;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* --- LOGIN CARD STYLES --- */
.login-container {
    background: #fff;
    width: 85%;
    max-width: 380px;
    padding: 35px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    text-align: center;
    
    /* Zabardasti Center karne k liye */
    margin: auto; 
    position: relative;
}

.login-logo img {
    width: 90px;
    margin-bottom: 15px;
}

.login-header h2 {
    color: #004e92;
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 22px;
}

/* Input Fields with Icons */
.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group i {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #004e92;
    font-size: 16px;
}

.input-group input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
    background: #f9f9f9;
}

.input-group input:focus {
    border-color: #004e92;
    background: #fff;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(to right, #004e92, #00c6ff);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0, 78, 146, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    width: 100%;
    padding: 12px;
    border: 2px solid #004e92;
    border-radius: 10px;
    background: transparent;
    color: #004e92;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.forgot-link {
    display: block;
    margin-top: 15px;
    color: #777;
    text-decoration: none;
    font-size: 13px;
} 
/* --- EXISTING CODE KE NEECHAY YE ADD KAREIN --- */

/* 1. Input Focus Animation (Jab user likhne k liye click kare) */
.input-group input {
    /* Purani properties same rahengi, bas ye transition add hui he */
    transition: all 0.3s ease-in-out;
}

.input-group input:focus {
    border-color: #00c6ff; /* Border Blue ho jaye */
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.3); /* Halka sa glow aye */
    transform: scale(1.02); /* Thora sa bara ho jaye */
    background: #fff;
}

/* 2. Button Click Animation (Dabne ka effect) */
.btn-primary, .btn-secondary {
    transition: transform 0.1s; /* Tezi se wapis aye */
}

.btn-primary:active, .btn-secondary:active {
    transform: scale(0.95); /* Click krne par thora chota ho (Press feel) */
    opacity: 0.8;
}

/* 3. Checkbox Design (Terms wala box) */
.terms-container {
    display: flex;
    align-items: center;
    font-size: 12px;
    margin-bottom: 15px;
    color: #555;
    text-align: left;
    padding-left: 5px;
}

.terms-container input {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: #004e92; /* Checkbox ka color Blue */
}

.terms-link {
    color: #004e92;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
}

/* 4. Terms Popup Modal (Jo click krne par khulega) */
#terms-modal {
    display: none; /* Pehle chhupa rahega */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); /* Peeche Andhera */
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 20px;
    width: 85%;
    max-width: 350px;
    border-radius: 15px;
    text-align: left;
    animation: slideUp 0.3s ease;
}

.modal-content h3 { color: #004e92; margin-bottom: 10px; }
.modal-content p { font-size: 13px; color: #333; line-height: 1.5; margin-bottom: 10px; }
.close-btn {
    background: red; color: white; border: none; padding: 8px 15px;
    border-radius: 5px; float: right; cursor: pointer;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}