body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-box {
  background: #fff;
  padding: 30px 25px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  width: 320px;
  box-sizing: border-box;
}

.login-box h2 {
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
  font-size: 20px;
}

.login-box input[type="text"],
.login-box input[type="password"],
.login-box input[type="submit"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 14px;
}

.login-box input[type="submit"] {
  background: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.login-box input[type="submit"]:hover {
  background: #0056b3;
}

.login-box .error {
  color: red;
  font-size: 13px;
  margin-bottom: 10px;
  text-align: center;
}

.login-box .success {
  color: green;
  font-size: 13px;
  margin-bottom: 10px;
  text-align: center;
}

.login-box a {
  font-size: 13px;
  text-decoration: none;
  color: #007bff;
}

.login-box a:hover {
  text-decoration: underline;
}
.logo {
  text-align: center;
  margin-bottom: 20px;
  animation: fadeIn 0.6s ease-in-out;
}

.logo img {
  max-width: 100px;
  height: auto;
}

/* Animação suave ao entrar */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-box {
  animation: fadeIn 0.5s ease-in-out;
}