chief alkaloid of opium (used as a narcotic pain-killer), 1828, from French morphine or German Morphin (1816), name coined by German apothecary Friedrich Sertürner (1783-1840) in reference to Latin Morpheus (q.v.), Ovid's name for the god of dreams, from Greek morphē "form, shape, beauty, outward appearance," which is of unknown origin. So called because of the drug's sleep-inducing properties.
late 14c., "mental derangement characterized by excitement and delusion," from Late Latin mania "insanity, madness," from Greek mania "madness, frenzy; enthusiasm, inspired frenzy; mad passion, fury," related to mainesthai "to rage, go mad," mantis "seer," menos "passion, spirit," all of uncertain origin, perhaps from PIE *mnyo-, suffixed form of root *men- (1) "to think," with derivatives referring to qualities and states of mind or thought.
Mania is manifested by psychic elevation, increased motor activity, rapid speech and the quick flight of ideas. [Scientific American, September 1973]
Sense of "fad, craze, enthusiasm resembling mania, eager or uncontrollable desire" is by 1680s, from French manie in this sense. Sometimes nativized in Middle English as manye. Used since 1500s as the second element in compounds expressing particular types of madness (such as nymphomania, 1775; kleptomania, 1830; megalomania, 1890), originally in Medical Latin, in imitation of Greek, which had a few such compounds, mostly post-classical: gynaikomania (women), hippomania (horses), etc.