@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  background: #f5f5f5;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#logo-principal {
  cursor: pointer;
}

/* ===== LAYOUT ===== */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

/* ===== SEÇÕES ===== */
section {
  width: 100%;
  max-width: 420px;
  background: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Esconde cadastro inicialmente (opcional) */
#secao-cadastro {
  display: none;
}

/* ===== LOGO ===== */
#logo-principal {
  height: 100px;
  display: block;
  margin: 0 auto 30px auto;
}

/* ===== FORM ===== */
form fieldset {
  border: none;
}

legend {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #8b4513;
}

/* ===== CAMPOS ===== */
form div {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

label {
  font-size: 0.9rem;
  margin-bottom: 6px;
  font-weight: 600;
}

input {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
  transition: 0.2s ease;
}

input:focus {
  outline: none;
  border-color: #8b4513;
  box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.15);
}

/* ===== BOTÕES ===== */
button {
  padding: 13px;
  border-radius: 10px;
  border: none;
  background: #8b4513;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.25s ease;
}

button:hover {
  background: #6f3610;
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

/* ===== LINKS ===== */
nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
  align-items: center;
}

nav a {
  font-size: 0.9rem;
  text-decoration: none;
  color: #8b4513;
  transition: 0.2s;
  font-weight: 600;
}

nav a:hover {
  text-decoration: underline;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  background: #fff;
  border-top: 1px solid #eee;
}

footer a {
  margin: 0 10px;
  text-decoration: none;
  color: #8b4513;
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 480px) {
  section {
    padding: 30px 20px;
  }
}
