01 - Preheat oven to 350°F (175°C). Grease and line two 8-inch (20 cm) round cake pans with parchment paper.
02 - Whisk together flour, baking powder, baking soda, salt, cinnamon, nutmeg, cloves, and ginger in a medium bowl.
03 - Beat granulated sugar, brown sugar, eggs, vegetable oil, applesauce, and vanilla extract in a large bowl until smooth and evenly combined.
04 - Gradually add dry ingredients to the wet mixture, stirring gently until just combined to avoid overmixing.
05 - Carefully fold in grated carrots, nuts, and raisins if using, ensuring even distribution throughout the batter.
06 - Evenly divide the batter between prepared pans, smoothing the tops.
07 - Bake for 40 to 45 minutes, until a toothpick inserted in the center comes out clean.
08 - Allow cakes to cool in pans for 10 minutes before transferring to a wire rack to cool completely.
09 - Beat cream cheese and butter until creamy, then gradually add powdered sugar, orange zest, orange juice, vanilla extract, and salt. Continue beating until smooth and fluffy.
10 - Once cakes are fully cooled, spread a layer of frosting over one cake layer; top with the second layer and frost the top and sides evenly.
11 - Refrigerate the assembled cake for 30 minutes before slicing to set the frosting. Garnish with additional orange zest or chopped nuts if desired.