body {
  font-family: "Poppins", sans-serif;
  background: #ffffff;
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem; /* añade respiración en pantallas grandes */
}

.login-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
}

.login-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.logo {
  max-width: 4rem;
  height: auto;
  margin-bottom: 0.3rem;
  image-rendering: -webkit-optimize-contrast;
}


.portal-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: #7fab47;
  margin: 0;
}

.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.login-card {
  background: #fff;
  padding: 2.5rem;
  border-radius: 1.2rem;
  text-align: center;
  max-width: 460px;  /* antes estaba en 380px */
  width: 46rem;
  animation: fadeIn 0.8s ease-in-out;
}

.login-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.5rem;
}

.login-subtitle {
  font-size: 1rem;
  color: #555;
  margin-bottom: 2rem;
}

.login-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn {
  padding: 0.9rem 1.2rem;
  border-radius: 0.8rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: #1f4a96;
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: #0069d9;
  transform: translateY(-2px);
  color: #fff;
}

.btn-secondary {
  border: 2px solid #007bff;
  color: #007bff;
  background: #fff;
}

.btn-secondary:hover {
  background: #f5f9ff;
  transform: translateY(-2px);
}

.notification {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 0.6rem;
  font-size: 0.9rem;
  position: relative;
}

.notification.error {
  background: #ffe5e5;
  color: #d93025;
  border-left: 4px solid #d93025;
}

.notification .close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #d93025;
  position: absolute;
  top: 8px;
  right: 10px;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
