/* Footer responsive styles */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    width: 100%;
    z-index: 1000;
    background: white;
    padding: 10px 0;
}

/* Ensure main content doesn't overlap with footer */
.login-pf .login-pf-page {
    padding-bottom: 200px; /* Space for footer */
}

/* Ensure form is always scrollable */
.login-pf {
    min-height: 100vh;
    overflow-y: auto;
}

/* Make the main container scrollable */
.login-pf .login-pf-page {
    min-height: 100vh;
    overflow-y: auto;
    padding-bottom: 200px;
}

/* Ensure card is always visible and scrollable */
.card-pf {
    position: relative;
    z-index: 10;
    background: white;
}

/* Footer content styles */
.footer .text_note {
    margin: 5px 0;
    font-size: 12px;
    color: #666;
}

.footer .lg_text {
    font-weight: bold;
    color: #333;
}

.footer .fix_height {
    max-height: 60px;
    width: auto;
}

/* Responsive adjustments */
@media (max-height: 645px) {
    .footer {
        position: relative;
        margin-top: 50px;
    }
    
    .login-pf .login-pf-page {
        padding-bottom: 50px;
        overflow-y: auto;
    }
    
    /* Ensure form is scrollable on low height */
    .card-pf {
        margin-bottom: 100px;
    }
}

@media (max-height: 500px) {
    .footer {
        margin-top: 30px;
    }
    
    .footer .text_note {
        font-size: 10px;
    }
    
    .footer .fix_height {
        max-height: 40px;
    }
    
    /* Force scroll on very low height */
    .login-pf .login-pf-page {
        overflow-y: auto;
        padding-bottom: 80px;
    }
    
    .card-pf {
        margin-bottom: 120px;
    }
}

@media (max-height: 400px) {
    .footer {
        margin-top: 20px;
    }
    
    .footer .text_note {
        font-size: 9px;
        margin: 3px 0;
    }
    
    .footer .fix_height {
        max-height: 30px;
    }
    
    /* Critical: Force scroll on extremely low height */
    .login-pf .login-pf-page {
        overflow-y: auto;
        padding-bottom: 60px;
        min-height: auto;
    }
    
    .card-pf {
        margin-bottom: 150px;
        padding: 5px 15px;
    }
    
    /* Reduce form spacing for very low height */
    .card-pf .form-group {
        margin-bottom: 10px;
    }
    
    .card-pf input {
        padding: 8px 12px;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .footer {
        position: relative;
        margin-top: 50px;
    }
    
    .login-pf .login-pf-page {
        padding-bottom: 50px;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .footer .text_note {
        font-size: 10px;
    }
    
    .footer .fix_height {
        max-height: 40px;
    }
    
    /* Ensure scroll works on small screens */
    .login-pf .login-pf-page {
        overflow-y: auto;
        padding-bottom: 100px;
    }
}

/* Critical: Force scroll on any low height screen */
@media (max-height: 300px) {
    .login-pf .login-pf-page {
        overflow-y: auto !important;
        padding-bottom: 40px;
        min-height: auto !important;
    }
    
    .card-pf {
        margin-bottom: 200px;
        padding: 3px 10px;
    }
    
    .card-pf .form-group {
        margin-bottom: 5px;
    }
    
    .card-pf input {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .footer {
        position: relative;
        margin-top: 10px;
    }
} 