/* Container for the login layout */ .login-container { display: grid; grid-template-columns: 1fr 3fr; /* 1fr for sidebar, 3fr for main content */ grid-auto-flow: column; overflow-x: hidden; height: 100%; /* Ensure it takes full height */ } /* Button for login action */ .login-button { position: absolute; top: 5px; right: 10px; z-index: 9999; /* Highest z-index for the login button */ margin: 1px; } .login-button button { padding: 10px 20px; background-color: var(--input-button-color); color: var(--text-color); border: none; border-radius: 5px; cursor: pointer; transition: background-color 0.3s; } .login-button button:hover { background-color: var(--input-button-hover-color); } /* Overlay for popup - full screen and centered */ .popup-overlay { position: fixed; /* Fixed to cover the entire viewport */ top: 0; /* Ensure it starts from the top */ left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); display: flex; justify-content: center; align-items: center; z-index: 10000; /* Higher than the header to cover the screen */ } /* Popup content box */ .popup-content { background: var(--popup-background-color); /* Use variable for background color */ color: var(--popup-text-color); /* Use variable for text color */ padding: 30px; border-radius: 10px; width: 300px; text-align: center; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); position: relative; /* For positioning the close button */ } /* Input styles */ .popup-content input { width: 100%; padding: 10px; margin: 10px 0; border: 1px solid var(--input-border-color); border-radius: 5px; font-size: 16px; transition: border-color 0.3s; } .popup-content input:focus { border-color: var(--input-button-color); outline: none; /* Remove default outline */ } /* Close button styles */ .close-popup { background: var(--close-button-color); /* Use variable for close button color */ color: white; /* Use white for text color */ border: none; border-radius: 5px; padding: 5px 10px; cursor: pointer; position: absolute; /* Position the button absolutely */ top: 10px; /* Distance from the top */ right: 10px; /* Distance from the right */ transition: background 0.3s; } .close-popup:hover { background: darkred; /* Optional hover effect */ } /* Log In button styles */ .log-into-account { background: green; /* Use variable for login button color */ color: white; border: none; border-radius: 5px; padding: 5px 10px; cursor: pointer; margin-top: 20px; } /* Footer section for popups */ .popup-footer { margin-top: 15px; } .popup-footer button { margin-right: 10px; padding: 8px 15px; background-color: var(--input-button-color); color: var(--text-color); border: none; border-radius: 5px; transition: background-color 0.3s; } .popup-footer button:hover { background-color: var(--input-button-hover-color); } .popup-footer a { color: var(--user-message-color); text-decoration: none; } .popup-footer a:hover { text-decoration: underline; } /* Paragraph styles within popup */ .popup-content p { color: var(--popup-text-color); /* Use variable for paragraph text color */ margin: 10px; }