/* General styles for body and container */
body {
    font-family: var(--font-family, Arial, sans-serif);
    margin: 0;
    padding: 0;
    font-size: 16px;
    background-image: url('/images/background.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: -1;
}

/* Container styling */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%; /* Make container width dynamic */
    padding: 20px;
    box-sizing: border-box;
}

.form-container {
    background-color: #ffffff; /* Match market-trends container background color */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 90%; /* Make width dynamic */
    max-width: 400px; /* Set a maximum width for larger screens */
    text-align: center;
}

h2 {
    margin-bottom: 20px;
    color: var(--primary-color, #444444); /* Use gray colors through variables */
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
    color: var(--primary-color, #444444); /* Use gray colors through variables */
    text-align: left;
}

input {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

button {
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: var(--primary-color, #444444); /* Use gray colors through variables */
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background-color: var(--secondary-color, #777777); /* Use lighter gray for hover */
}

#loginMessage, #registerMessage {
    margin-top: 10px;
    font-size: 16px;
}

.logo {
    width: 100%; /* Make the logo fill the container width */
    height: auto; /* Maintain aspect ratio */
    margin-bottom: 20px;
}

/* Styles for the forgot password and register links */
#forgotPasswordLink, .form-container p a {
    display: block;
    margin: 10px 0;
    color: var(--primary-color, #444444); /* Use gray colors through variables */
    text-decoration: none;
}

#forgotPasswordLink:hover, .form-container p a:hover {
    color: var(--secondary-color, #777777); /* Use lighter gray for hover */
    text-decoration: underline;
}

.changePasswordPageButton {
    margin: 10px;
}

.content-wrapper {
    padding-left: 20px;
    padding-right: 20px;
    background-color: rgba(255, 255, 255, 0.9);
}

/* Add CSS variables as fallbacks */
:root {
    --primary-color: #444444; /* Dark gray */
    --secondary-color: #777777; /* Light gray */
    --font-family: Arial, sans-serif;
}
