/* Modal de Login - Ventana emergente */
.login-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 20px;
  padding: 50px 40px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 15px 50px rgba(0,0,0,0.4);
  position: relative;
  text-align: center;
  animation: fadeInUp 0.4s ease;
}

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

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 42px;
  color: #333;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #4a90e2;
}

.login-header h2 {
  font-size: 2.4rem;
  color: #383838;
  margin-bottom: 10px;
  font-weight: 700;
}

.login-header p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 40px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-group {
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #444;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74,144,226,0.15);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #555;
}

.forgot-password {
  color: #4a90e2;
  text-decoration: none;
  font-weight: 600;
}

.forgot-password:hover {
  text-decoration: underline;
}

.btn-login {
  background: #4a90e2;
  color: white;
  border: none;
  padding: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-login:hover {
  background: #3a7bc8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74,144,226,0.3);
}

.signup-text {
  margin-top: 30px;
  font-size: 1rem;
  color: #666;
}

.signup-text a {
  color: #4a90e2;
  font-weight: 600;
  text-decoration: none;
}

.signup-text a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .modal-content {
    padding: 40px 25px;
  }
  .login-header h2 {
    font-size: 2rem;
  }
  .btn-login {
    padding: 14px;
    font-size: 1rem;
  }
}