/* Robust solution for centering the Login Screen */
#login-screen {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(5px) !important;
    z-index: 1000 !important;
}

#login-form {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    background: white !important;
    padding: 30px !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3) !important;
    width: 100% !important;
    max-width: 400px !important;
    text-align: center !important;
}

/* Left-align labels and inputs within the login form */
#login-form label {
    align-self: flex-start !important;
    text-align: left !important;
    width: 100% !important;
    margin: 6px 0 4px 0 !important;
}

#login-form input[type="text"],
#login-form input[type="password"] {
    text-align: left !important;
    width: 100% !important;
}
/* Styling for Sign Up and Forgot Password buttons */
.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    width: 100%;
    max-width: 400px; /* Match login form max width */
    margin-left: auto;
    margin-right: auto; /* Center under the form */
    gap: 10px; /* Consistent spacing between buttons */
}

.white-button {
    background-color: white;
    color: black;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    flex: 0 0 calc(50% - 5px); /* Two buttons side-by-side under form width */
    margin: 0; /* spacing handled by gap */
    text-align: center;
}

.white-button:hover {
    background-color: #f0f0f0;
}

/* Ensure hidden state wins over overlay defaults */
#login-screen.hidden {
    display: none !important;
}