/* Login Modal Styles */
.login-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 9999; /* Sit on top of everything */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
}

.login-modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 30px;
    border: 1px solid #888;
    width: 90%; /* Responsive width */
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-modal-content h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.login-modal-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.login-modal-content input {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    display: block;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: inherit;
}

.login-modal-content input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.login-modal-content button {
    width: 100%;
    background-color: #007bff;
    color: white;
    padding: 12px;
    margin-top: 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.login-modal-content button:hover {
    background-color: #0056b3;
}

.login-modal-content button:active {
    background-color: #004085;
}

#login-error {
    color: #dc3545;
    margin-top: 15px;
    font-size: 14px;
    min-height: 20px;
}

/* Prevent scrolling when modal is visible */
body.modal-open {
    overflow: hidden;
}
