body {
    background-image: url('/static/media/img/login_background.webp');
    background-size: cover;
    background-position: center;
    font-family: sans-serif;
    display: flex;
    flex-direction: column; /* Arrange items vertically */
    justify-content: center; /* Center the login container vertically */
    align-items: center; /* Center the login container horizontally */
    min-height: 100vh;
    margin: 0;
}

header {
    width: 100%; /* Make the header span the entire width */
    padding: 10px 0; /* Adjust vertical padding as needed */
    position: fixed; /* Stick the header to the top */
    top: 0; /* Align the header to the top of the viewport */
    left: 0; /* Align the header to the left of the viewport */
    z-index: 1000; /* Ensure the header stays on top of other content */
}

nav {
    display: flex;
    justify-content: space-between; /* Distributes space between logo and link */
    align-items: center; /* Vertically aligns items */
    padding: 0 20px; /* Adjust horizontal padding as needed */
    max-width: 1200px; /* Optional: Limit the maximum width of the nav content */
    margin: 0 auto; /* Center the nav content horizontally if max-width is set */
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 30px;
    margin-right: 10px;
}

.logo h1,
.logo .logo-nombre {
    margin: 0;
    font-size: 1.5em;
    color: white;
}

nav a {
    text-decoration: none;
    color: white;
    font-size: large;
    font-weight: 800;
    padding: 8px 15px;
    border-radius: 5px;
}

nav a:hover {
    background-color: #ccc;
}

.login-container {
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 350px; /* Width of the container */
    margin-top: 0%; /* Adjust margin to prevent overlap with fixed header */
}

h1 {
    color: #333;
    margin-bottom: 20px;
}

.flashed-messages {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
}

.alert {
    padding: 8px 15px;
    margin-bottom: 8px;
    border-radius: 5px;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: calc(100% - 22px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
}

button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 8px 28px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

.btn-google {
    background-color: white;
    color: #555;
    font-size: 16px;
    border-radius: 5px;
    padding: 8px 10px;
    text-decoration: none;
    border: 1px solid #ccc;
}

.btn-google:hover {
    font-weight: bold;
    text-decoration: none;
}

.btn-google img {
    margin-left: -6px;
    margin-bottom: 1%;
    vertical-align: middle;
}

p {
    margin-top: 15px;
    color: #777;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}