body { 
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f4f7f6;
    font-family: sans-serif;
    box-sizing: border-box;
}

.card { 
    background: white; 
    padding: 40px; 
    border-radius: 15px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
    width: 90%; /* Mobile par screen se chipka hua na rahe */
    max-width: 400px; 
    position: relative; 
    margin: 20px auto; /* Margin auto center karne mein madad karega */
}

.brand-header { text-align: center; margin-bottom: 25px; }
.brand-title { font-size: 28px; font-weight: bold; color: #2c3e50; text-decoration: none; display: block; }
.brand-title span { color: #27ae60; }
.brand-welcome { font-size: 16px; color: #555; margin-top: 5px; }

input { 
    width: 100% !important; 
    padding: 12px !important; 
    margin: 8px 0 !important; 
    border: 1px solid #ddd !important; 
    border-radius: 8px !important; 
    box-sizing: border-box !important; 
    font-size: 16px !important; 
}

.forgot-link-wrapper { display: flex !important; justify-content: flex-end !important; margin-bottom: 15px !important; }
.link-btn-small { background: transparent !important; border: none !important; color: #e74c3c !important; cursor: pointer; font-size: 13px; text-decoration: none; font-weight: 500; padding: 0 !important; }
.action-container { display: flex !important; flex-direction: column; align-items: center; gap: 15px !important; margin-top: 10px !important; }
.btn { background: #27ae60 !important; color: white !important; border: none !important; padding: 15px !important; width: 100%; border-radius: 8px !important; cursor: pointer; font-weight: bold; font-size: 16px; }
.btn:hover { background: #219150 !important; }
.btn:disabled { background: #bdc3c7 !important; cursor: not-allowed; }
.signup-row { font-size: 14px; color: #333; margin-top: 10px; }
.signup-row a { color: #2c3e50; font-weight: bold; text-decoration: none; }
.back-btn { display: block !important; width: 100% !important; margin-top: 10px !important; color: #3498db !important; background: transparent !important; border: none !important; cursor: pointer; }

.hidden { display: none !important; }

/* Standard Error Box */
.error { color: #e74c3c; font-size: 14px; text-align: center; margin-bottom: 15px !important; border: 1px solid #e74c3c; padding: 8px !important; border-radius: 5px; background: #fdf2f2; }

/* Pending Message Box */
.pending-box { color: #e67e22; font-size: 14px; text-align: left; margin-bottom: 15px !important; border: 1px solid #e67e22; padding: 12px !important; border-radius: 5px; background: #fff5eb; }
.pending-box b { display: block; font-size: 16px; margin-bottom: 5px; text-align: center; }

#loadingOverlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.8); display: flex; justify-content: center; align-items: center; border-radius: 15px; z-index: 10; }
.spinner { width: 40px; height: 40px; border: 4px solid #f3f3f3; border-top: 4px solid #27ae60; border-radius: 50%; animation: spin 1s linear infinite; }

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Timer specific layout additions */
.otp-timer-display { font-size: 22px; font-weight: bold; color: #e74c3c; text-align: center; margin: 10px 0 15px 0; font-family: monospace; }

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    body {
        align-items: flex-start; /* Mobile par top se thoda gap rahega */
        padding-top: 50px;
    }
    .card {
        padding: 25px 20px !important;
        border-radius: 10px !important;
    }
    .brand-title {
        font-size: 24px !important;
    }
}