/* main-universal.css: layout css */
body, html {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-start;
}

.login-container {
    text-align: center;
    padding: 20px;
    border-radius: 5px;
}

.input-container {
    margin-bottom: 15px;
}

input[type="text"], input[type="password"], input[type="number"], input[type="email"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
}

button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

button:hover {
    opacity: 0.8;
}
.flash-messages {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 80%;
    max-width: 600px;
    padding: 10px;
    box-sizing: border-box;
}

.flash-message {
    margin-bottom: 10px;
    padding: 10px;
    padding-right: 30px; /* Ensure there's padding to not overlap the close button */
    border-radius: 5px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flash-close {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%); /* Centers the button vertically */
    padding: 0 5px; /* Adjusted padding */
    font-size: 16px;
    height: 20px; /* Adjust height as needed */
    width: 20px; /* Adjust width as needed */
    line-height: 20px; /* Adjust for vertical centering */
    text-align: center;
    background-color: transparent; /* Ensures compatibility with dark mode */
    color: inherit; /* Inherits color from the parent, adjust if needed */
    border: none;
    cursor: pointer;
}

.link {
    text-decoration: none;
}