CONDENSED CONSOLIDATED STATEMENTS OF STOCKHOLDERS' EQUITY (Unaudited) - USD ($) shares in Thousands, $ in Thousands | Total | Cumulative Adjustment | Common Stock | Additional Paid-In Capital | Additional Paid-In Capital Cumulative Adjustment | Treasury Stock | Accumulated Other Comprehensive Income (Loss) | Accumulated Deficit | Accumulated Deficit Cumulative Adjustment |
Beginning balance (in shares) at Jan. 31, 2021 | | | 192,807 | | | | | | |
Beginning balance at Jan. 31, 2021 | $ 325,737 | $ (73,905) | $ 19 | $ 1,702,254 | $ (86,144) | $ (1,048) | $ 4,964 | $ (1,380,452) | $ 12,239 |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | |
Settlement of convertible senior notes due in 2023 (in shares) | | | 586 | | | | | | |
Settlement of convertible senior notes due in 2023 | 724 | | $ 1 | 725 | | | | | |
Exercise of stock options (in shares) | | | 1,112 | | | | | | |
Exercise of stock options | 11,818 | | | 11,818 | | | | | |
Settlement of restricted stock units (in shares) | | | 1,820 | | | | | | |
Tax withholding on net share settlement of restricted stock units and employee stock purchase plan | (228,065) | | | (227,894) | | (171) | | | |
Employee stock purchase plan (in shares) | | | 132 | | | | | | |
Employee stock purchase plan | 23,167 | | | 23,167 | | | | | |
Charitable donation of common stock (in shares) | | | 10 | | | | | | |
Charitable donation of common stock | 3,000 | | | 3,000 | | | | | |
Employee stock-based compensation | 186,421 | | | 186,421 | | | | | |
Net loss | (33,855) | | | | | | | (33,855) | |
Other comprehensive loss, net | (1,718) | | | | | | (1,718) | | |
Ending balance (in shares) at Jul. 31, 2021 | | | 196,467 | | | | | | |
Ending balance at Jul. 31, 2021 | 211,876 | | $ 20 | 1,611,897 | | (1,219) | 3,246 | (1,402,068) | |
Beginning balance (in shares) at Apr. 30, 2021 | | | 194,734 | | | | | | |
Beginning balance at Apr. 30, 2021 | 243,237 | | $ 19 | 1,615,646 | | (1,219) | 5,358 | (1,376,567) | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | |
Settlement of convertible senior notes due in 2023 (in shares) | | | 234 | | | | | | |
Settlement of convertible senior notes due in 2023 | 278 | | $ 1 | 279 | | | | | |
Exercise of stock options (in shares) | | | 624 | | | | | | |
Exercise of stock options | 5,202 | | | 5,202 | | | | | |
Settlement of restricted stock units (in shares) | | | 865 | | | | | | |
Tax withholding on net share settlement of restricted stock units and employee stock purchase plan | (114,481) | | | (114,481) | | | | | |
Charitable donation of common stock (in shares) | | | 10 | | | | | | |
Charitable donation of common stock | 3,000 | | | 3,000 | | | | | |
Employee stock-based compensation | 102,809 | | | 102,809 | | | | | |
Net loss | (25,501) | | | | | | | (25,501) | |
Other comprehensive loss, net | (2,112) | | | | | | (2,112) | | |
Ending balance (in shares) at Jul. 31, 2021 | | | 196,467 | | | | | | |
Ending balance at Jul. 31, 2021 | 211,876 | | $ 20 | 1,611,897 | | (1,219) | 3,246 | (1,402,068) | |
Beginning balance (in shares) at Jan. 31, 2022 | | | 198,834 | | | | | | |
Beginning balance at Jan. 31, 2022 | $ 275,503 | | $ 20 | 1,720,013 | | (1,532) | (4,809) | (1,438,189) | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | |
Exercise of stock options (in shares) | 719 | | 719 | | | | | | |
Exercise of stock options | $ 10,626 | | | 10,626 | | | | | |
Settlement of restricted stock units (in shares) | | | 1,347 | | | | | | |
Tax withholding on net share settlement of restricted stock units and employee stock purchase plan | (47,473) | | | (47,357) | | (116) | | | |
Employee stock purchase plan (in shares) | | | 265 | | | | | | |
Employee stock purchase plan | $ 24,151 | | | 24,151 | | | | | |
Repurchases of common stock (in shares) | (400) | | (394) | | | | | | |
Repurchases of common stock | $ (25,007) | | | | | | | (25,007) | |
Employee stock-based compensation | 261,419 | | | 261,419 | | | | | |
Net loss | (72,451) | | | | | | | (72,451) | |
Other comprehensive loss, net | (19,637) | | | | | | (19,637) | | |
Ending balance (in shares) at Jul. 31, 2022 | | | 200,771 | | | | | | |
Ending balance at Jul. 31, 2022 | 407,131 | | $ 20 | 1,968,852 | | (1,648) | (24,446) | (1,535,647) | |
Beginning balance (in shares) at Apr. 30, 2022 | | | 199,920 | | | | | | |
Beginning balance at Apr. 30, 2022 | 348,949 | | $ 20 | 1,835,187 | | (1,648) | (19,048) | (1,465,562) | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | |
Exercise of stock options (in shares) | | | 540 | | | | | | |
Exercise of stock options | 8,689 | | | 8,689 | | | | | |
Settlement of restricted stock units (in shares) | | | 705 | | | | | | |
Tax withholding on net share settlement of restricted stock units and employee stock purchase plan | $ (21,953) | | | (21,953) | | | | | |
Repurchases of common stock (in shares) | (400) | | (394) | | | | | | |
Repurchases of common stock | $ (25,007) | | | | | | | (25,007) | |
Employee stock-based compensation | 146,929 | | | 146,929 | | | | | |
Net loss | (45,078) | | | | | | | (45,078) | |
Other comprehensive loss, net | (5,398) | | | | | | (5,398) | | |
Ending balance (in shares) at Jul. 31, 2022 | | | 200,771 | | | | | | |
Ending balance at Jul. 31, 2022 | $ 407,131 | | $ 20 | $ 1,968,852 | | $ (1,648) | $ (24,446) | $ (1,535,647) | |