* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

header.topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  flex-wrap: wrap;
  border-bottom: 1px solid #ddd;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
}

.logo img {
  height: 100px;
}

.menu {
  display: flex;
  gap: 15px;
}

.menu a {
  text-decoration: none;
  color: black;
  font-size: 0.9rem;
}

.main {
  text-align: center;
  padding: 40px 20px;
  flex: 1;
}

.main h1 {
  color: #00560E;
  margin-bottom: 10px;
}

.main p {
  margin-bottom: 30px;
}

form {
  display: grid;
  gap: 10px;
  background-color: #05A16A;
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  margin: 0 auto;
  align-items: center;
}

form label {
  display: flex;
  flex-direction: column;
  text-align: left;
  font-weight: bold;
  color: white;
}

form input {
  padding: 8px;
  border: none;
  border-radius: 4px;
}

form button {
  background-color: white;
  color: #05A16A;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  padding: 10px 20px;
}

form button:hover {
  background-color: #f0f0f0;
}

.footer {
  background-color: #05A16A;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 549px) {
  form {
    grid-template-columns: 1fr;
  }
  .menu {
    flex-direction: column;
    align-items: flex-end;
  }
  form button {
    width: 100%;
  }
}

@media (min-width: 550px) and (max-width: 1100px) {
  form {
    grid-template-columns: 1fr 1fr;
  }
  form button {
    grid-column: 2 / 3;
    justify-self: end;
  }
}

@media (min-width: 1101px) {
  form {
    grid-template-columns: 1fr 1fr auto;
  }
}
