* {
  box-sizing: border-box;
}

html,
body {
  display: flex;
  justify-content: center; /* alinha horizontalmente */
  align-items: center; /* alinha verticalmente */
  height: 100vh; /* ocupa a altura da janela */
  margin: 0; /* remove margem padrão */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #333;
}

/* Login styles - isolated and centered */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 70%;
  border-radius: 12px;
  background: white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  padding: 10px;
}

.login-card {
  text-align: center;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.login-card img {
  width: 40%;
  height: auto;
  animation: pulse 1.5s ease-in-out infinite;
}

.login-form {
  background: #fff;
  padding: 40px;
  width: 100%;
  max-width: 420px;
}

#loginForm input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 20px;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

#loginForm input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#loginForm button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

#loginForm button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

#errorMsg {
  color: #e74c3c;
  margin-top: 10px;
  font-size: 14px;
  display: none;
}

@media (max-width: 768px) {
  .login-container {
    width: 90%;
    flex-direction: column;
  }

  .login-card {
    margin-bottom: 20px;
  }
}
