extinction devastated terrestrial life. Biodiversity rebounded as the surviving species repopulated empty terrain, but these were short-lived. Diverse communities with complex food-web structures took 30 million years to reestablish. Archosauromorph reptiles, which had already appeared and diversified to an extent in the Permian Period, exploding in diversity as an adaptive radiation in response to the Permian-Triassic mass extinction. By the Early Triassic, several major archosauromorph groups had appeared. Long-necked, lizard-like early archosauromorphs were known as protorosaurs, which is likely a paraphyletic group rather than a true clade. Tanystropheids were a family of protorosaurs which elevated their neck size to extremes, with the largest genus Tanystropheus having a neck longer than its body. The protorosaur family Sharovipterygidae used their elongated hindlimbs for gliding. Other archosauromorphs, such as rhynchosaurs and allokotosaurs, were mostly stocky-bodied herbivores with specialized jaw structures. Rhynchosaurs, barrel-gutted herbivores, thrived for only a short period of time, becoming extinct about 220 million years ago. They were exceptionally abundant in the middle of the Triassic, as the primary large herbivores in many Carnian-age ecosystems. They sheared plants with premaxillary beaks and plates along the upper jaw with multiple rows of teeth. Allokotosaurs were iguana-like reptiles, including Trilophosaurus (a common Late Triassic reptile with three-crowned teeth), Teraterpeton (which had a long beak-like snout), and Shringasaurus (a horned herbivore which reached a body length of . One group of archosauromorphs, the archosauriforms, were distinguished by their active predatory lifestyle, with serrated teeth and upright limb postures. Archosauriforms were diverse in the Triassic, including various terrestrial and semiaquatic predators of all shapes and sizes. The large-headed and robust erythrosuchids were among the dominant carnivores in the early Triassic. Phytosaurs were a particularly common group which prospered during the Late Triassic. These long-snouted and semiaquatic predators resemble living crocodiles and probably had a similar lifestyle, hunting for fish and small reptiles around the water's edge. However, this resemblance is only superficial and is a prime-case of convergent evolution. True archosaurs appeared in the early Triassic, splitting into two branches: Avemetatarsalia (the ancestors to birds) and Pseudosuchia (the ancestors to crocodilians). Avemetatarsalians were a minor component of their ecosystems, but eventually produced the earliest pterosaurs and dinosaurs in the Late Triassic. Early long-tailed pterosaurs appeared in the Norian and quickly spread worldwide. Triassic dinosaurs evolved in the Carnian and include early sauropodomorphs and theropods. Most Triassic dinosaurs were small predators and only a few were