* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}
html, body {
  height: 100%;
}
body {
  background-color: #f5f5f5;
  color: #333;
  display: flex;
  flex-direction: column;
}
.container {
  width: 90%;
  max-width: 1000px;
  margin: 30px auto;
  flex: 1;
}
header {
  background-color: #2c3e50;
  color: white;
  padding: 20px;
  text-align: center;
}
nav {
  background-color: #34495e;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 10px;
}
nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}
nav a:hover {
  text-decoration: underline;
}
.search-bar {
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
}
.search-bar input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.search-bar button {
  padding: 10px 15px;
  border: none;
  background-color: #2c3e50;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}
.search-bar button:hover {
  background-color: #1a252f;
}
.card {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.card h2 {
  margin-bottom: 10px;
}
.card p {
  margin-bottom: 15px;
  line-height: 1.5;
}
.card button {
  background-color: #3498db;
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
}
.card button:hover {
  background-color: #2980b9;
}

/* FORM (login, registrazione) */
.form-container {
  max-width: 400px;
  margin: 50px auto;
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.form-container h2 {
  margin-bottom: 20px;
  text-align: center;
}
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
}
.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.form-container button {
  width: 100%;
  padding: 10px;
  background-color: #2c3e50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.form-container button:hover {
  background-color: #1a252f;
}
.form-links {
  margin-top: 15px;
  text-align: center;
}
.form-links a {
  color: #3498db;
  text-decoration: none;
  font-size: 14px;
}
.form-links a:hover {
  text-decoration: underline;
}
.form-group label {
    font-weight: bold;
    font-size: 14px;
    color: #2c3e50;
}
.form-container button {
    margin-top: 10px;
    font-weight: bold;
}

.error-message {
    font-weight: bold;
    font-size: 14px;
    color:  #AA4A44;
}