.Abackground {
    display: block;
    position: fixed;
    overflow-y: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    background: rgb(92 92 92);
}
/* Basic reset and body styling */
.Abody {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f4f4f9;
}

/* --- Modal/Popup Styles --- */

/* The Modal (Full screen overlay) */
.Amodal {
    display: flex; /* Makes it easy to center content */
    position: fixed; /* Stay in place */
    z-index: 50; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
}

/* Modal Content/Box */
.Amodal-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px; /* Limit width on larger screens */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-align: center;
    
    position: absolute;
    top: 2rem;
    left: 50vw;
    transform: translateX(-50%);
    min-width: calc(640px - (15px * 2));
    min-height: auto;
    box-shadow: 0 19px 38px rgb(0 0 0 / 12%), 0 15px 12px rgb(0 0 0 / 22%);
}

/* Input and Button Styling */
#Apassword-input {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.Amodal-content button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

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

/* Error message styling */
.Aerror-text {
    color: #dc3545;
    margin-top: 10px;
    font-weight: bold;
    display: none; /* Hidden by default */
}

/* Main Content Styling (for when logged in) */
#Amain-content {
    text-align: center;
    padding: 20px;
}