<!-- Author  Raivis Rampāns
Created 12.03.2025
Editor Raivis
Modified 02.04.2025 -->

<head>
    <link rel="shortcut icon" href="../images/favicon.ico" type="image/x-icon"> <!-- Pievieno cilnei ikonu -->
</head>

<header>
    <?php include 'header.php'; ?> <!-- Pievieno header -->
</header>

<body>
    <div class="container mt-5">
        <div class="row align-items-center">
            <!-- Bilde -->
            <div class="col-lg-6 text-center animate__animated animate__fadeInUp">
                <img src="../images/Login Notepad.png" class="img-fluid" alt="Login Notepad">
            </div>

            <!-- Login forma -->
            <div class="col-lg-6 animate__animated animate__fadeInUp">
                <div class="p-4 shadow rounded">
                    <h2 class="fw-bold text-center">Login to Your Account</h2>

                    <form action="ctrluserctrl.php" method="POST"> <!-- MAINĪTS action -->
                        <div class="mb-3">
                            <label for="email" class="form-label">Email</label>
                            <input type="email" class="form-control" id="email" name="email" required>
                        </div>
                        <div class="mb-3">
                            <label for="password" class="form-label">Password</label>
                            <input type="password" class="form-control" id="password" name="password" required>
                        </div>
                        <button type="submit" name="login" class="btn btn-outline-dark w-100">Login</button>
                    </form>
                    <p class="text-center mt-3">Don't have an account? <a href="register.php">Register here</a></p>
                </div>
            </div>
        </div>
    </div>

    <!-- Include Animate.css -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css">
</body>

<footer>
    <?php include 'footer.php'; ?> <!-- Pievieno footer -->
</footer>