* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  background-color: #f4f4f4;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cadastro-container {
  background-color: white;
  width: 90vw;
  max-width: 500px;
  height: calc(100vh - 128px); /* altura total - margem vertical */
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  padding: 12px;
  margin: 30px 0; /* 🔥 margem superior e inferior igual */
}

.cadastro-container .logo {
  display: block;
  margin: 0 auto 30px auto;
  max-width: 90%;
  height: auto;
}

.cadastro-container h2 {
  text-align: center;
  padding: 20px 10px 10px;
  margin: 0;
  font-size: 22px;
  color: #222;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.form-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px 20px;
}

.form-scroll form label {
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
}

.form-scroll form input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 14px;
}

.erro-input {
  font-size: 13px;
  color: red;
  margin-top: -10px;
  margin-bottom: 10px;
  display: block;
}

.form-footer {
  padding: 15px 12px 20px;
  border-top: 1px solid #eee;
  flex-shrink: 0;
}

.form-footer button {
  width: 100%;
  padding: 12px;
  background-color: #3b5bdb;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
}

.form-footer button:hover {
  background-color: #2c45a6;
}

.form-footer p {
  text-align: center;
  margin-top: 15px;
}

.form-footer a {
  color: #3b5bdb;
  text-decoration: none;
  font-weight: bold;
}

.form-footer a:hover {
  text-decoration: underline;
}

