/* styles.css (Responsive / Mobile-First) */
body {
  /* Specify the path to your background image */
  background-image: url('images/background.png');

  /* Ensure the image covers the entire viewport, maintaining its aspect ratio */
  background-size: cover;

  /* Center the background image */
  background-position: center center;

  /* Prevent the image from repeating if it's smaller than the viewport */
  background-repeat: no-repeat;

  /* Fix the background image relative to the viewport so it doesn't scroll with content */
  background-attachment: fixed;

  /* Provide a fallback solid background color in case the image fails to load */
  background-color: #f0f8ff; /* A very light blue/off-white, matching the image's light tones */

  /* Optional: Ensure body takes up at least the full height of the viewport */
  min-height: 100vh;
}

.container, form {
    margin: 20px auto;
    width: 90%; /* Fluid width */
    max-width: 400px; /* Max width for larger screens */
    padding: 20px;
    border: 1px solid #ccc;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 8px;
    box-sizing: border-box; /* Ensures padding doesn't break width */
}

h1, h2 {
    color: #333;
}

label {
    display: block;
    width: 100%;
    margin-bottom: 5px;
    text-align: left;
    font-weight: bold;
}

input[type="email"], input[type="password"] {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    box-sizing: border-box; /* Important for 100% width */
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.links a {
    text-decoration: none;
}

/* Specific button colors */
.login-button, button[name="login"] {
    background-color: #4CAF50; /* Green */
}
.register-button, button[name="register"] {
    background-color: #008CBA; /* Blue */
}
a[href="logout.php"] {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f44336; /* Red */
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

p {
    font-size: 0.9em;
    color: #555;
}
a {
    color: #008CBA;
}