The authentication flow is spread across two static HTML pages.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Vipul-Gejage/Disney-Hotstar-Clone/llms.txt
Use this file to discover all available pages before exploring further.
login.html presents a mobile number input form, and on submission the browser navigates to otp.html where the user enters a one-time password. Submitting the OTP form navigates back to hotstar.html. Both pages share the same stylesheet (login.css) and use onclick="location.href=..." for page transitions — there is no real server-side authentication in this project.
Login Page (login.html)
login.html renders a centered white card (.container) on the same dark #0c111b background used across the project. The card holds a single form with a telephone input and a Generate OTP button.
- The
<input type="tel">field collects the mobile number and is markedrequired - The form
actionattribute is set togenerate-otp.php, but this PHP endpoint is not implemented - The Generate OTP button uses
onclick="location.href='./otp.html'; return false;"to navigate to the OTP page directly in the browser without actually submitting the form to a server
Login Form HTML
OTP Page (otp.html)
otp.html is styled identically to login.html — it links to the same login.css and uses the same .container card layout. The form title changes to Enter OTP and the input label reads OTP:. The input field reuses type="tel" and the id="mobile" attribute. Clicking Submit OTP navigates back to hotstar.html via onclick="location.href='./hotstar.html'; return false;".
OTP Form HTML
CSS (login.css)
Both pages use the same stylesheet. The body is a full-viewport flex container that centers .container both horizontally and vertically. The background color matches the rest of the project (#0c111b). The .container itself is a white card with rounded corners, a subtle box shadow, and a fixed width of 300px:
Navigation Flow Summary
Extending with a Real Backend
To connect the login flow to a real server:-
Implement
generate-otp.php(or an equivalent endpoint in any backend language) to receive themobilePOST parameter, generate a random OTP, store it server-side (e.g., in a session or database), and send it via SMS using a provider like Twilio or MSG91. -
Update
login.html— remove theonclickoverride from the button so the form submits normally togenerate-otp.php. The server response can then redirect tootp.html. -
Create a
verify-otp.phpendpoint and set it as theactionon the OTP form inotp.html. On successful verification, redirect tohotstar.htmland issue a session cookie. -
Guard
hotstar.html— move it behind a session check (server-rendered or via a JavaScript fetch to a/auth/statusendpoint) so unauthenticated users are redirected back tologin.html.