body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background-color: #f9f9f9;
    position: relative; /* Ensure stacking context */
    z-index: 0;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    /* background-image: url("{{ url_for('static', filename='images/reads_background_5.png') }}"); */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;

    opacity: 1; 
    pointer-events: none;
}

main {
    flex: 1;
}

.container {
    margin-top: 50px;
}

.form-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Flash Messages Styling */
.flash-messages-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    width: 50%;
    max-width: 600px;
}
.fade-out {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

/* Basic styling for the error banner */
#instance-error-banner {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #D22B2B; /* A noticeable red */
    color: white;
    text-align: center;
    padding: 15px;
    font-family: sans-serif;
    font-size: 16px;
    z-index: 9999;
    border-bottom: 2px solid #a01c1c;
}