Re: macbook air m2 chip MacOS 26.1 "... i put it on sleep mode to do something. when i came back and opened the screen there was a black line and my screen was darkening ... "
Your screenshot shows the black line, yet seems the password entry-field was available to log-in.
A screen often dims if we don't start using it ... depends upon the Mac's settings.
There's an older discussion thread with a similar incident (link below),
The reply offered expert tips from a well-respected community member
See: Thin black line across Macbook Pro Screen… - Apple Community
______________________________________________________________________________________________
Re: "the next thing i did was i powered it off, waited a few mins and turned it on then a grey screen appeared. after a while ... "
Apple support's online article: If your Mac starts up to a blank screen - Apple Support
Eg: says: "A blank screen (black, gray, or blue) should appear once or more as your Mac starts up.
If your Mac seems to be turning on but is stuck on a blank screen ... "
.... There are steps to follow in the above linked article, if it happens again.
______________________________________________________________________________________________
Re: "i shut it down again and turned it on but the screen was not on at all and the keyboards backlight was on and i heard the apple chime. it also charges and i don’t know what to do, ..."
Apple support's online articles suggest steps to follow:
If your Mac doesn't start up all the way - Apple Support
or
If your Mac doesn't turn on - Apple Support
______________________________________________________________________________________________
Re: ... it also charges and i don’t know what to do. currently, my macbook is turned off and is resting and for reference the heaviest thing i’ve put on top of it is my ipad and phone. i also only use this for leisure and for academics.
Tips from Apple Support" Ways to start up your Mac - Apple Support
or
Now that your discussin thread is underway,
There is more opportunity for others with greater expertise than either of us to offer suggestions.
________
If needed: Apple provides a MacBook Air support website online (info. / support / contact options etc.)
MacBook Air - Official Apple Support