/* Full width header and footer for login page - FIXED */
.login-header,
.login-footer {
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    position: fixed !important;
}

.login-header {
    top: 0;
}

.login-footer {
    bottom: 0;
}

/* Ensure no Bootstrap container constraints */
.login-header .container-fluid,
.login-footer .container-fluid {
    max-width: 100% !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

/* Login container */
.login-container {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 50%;
    max-width: 50%;
    color: #333333;
    margin: auto;
    margin-top: 100px; /* Increased to avoid header overlap */
    margin-bottom: 80px; /* Increased to avoid footer overlap */
}

/* Ensure form fields are interactive */
.form-control {
    pointer-events: auto !important;
    z-index: 1;
}

/* Login Button Styles */
.btn-login {
    display: inline-block;
    width: 100%;
    padding: 10px 20px;
    background-color: #333333;
    color: #fff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-login:hover {
    background-color: #ff4081;
    transform: translateY(-3px);
}

/* Messages */
.messages {
    padding: 0;
    list-style-type: none;
}

.messages li {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
}

/* Media Queries for Responsivity */
@media (max-width: 768px) {
    .login-container {
        width: 80%;
        max-width: 80%;
        margin-top: 120px; /* More space on mobile due to potential header wrapping */
    }
}

@media (max-width: 576px) {
    .login-container {
        width: 95%;
        max-width: 95%;
        padding: 15px;
        margin-top: 140px; /* Even more space on small screens */
    }

    h1 {
        font-size: 1.5rem;
    }

    .form-label, .form-control {
        font-size: 0.9rem;
    }
}