<!DOCTYPE html>
<html lang="he" dir="rtl">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ShareIt - התחברות</title>
    <link rel="stylesheet" href="../assets/css/style.css">
    <link rel="stylesheet" href="../assets/css/login.css">
</head>
<body>
    <div class="auth-container">
        <img src="../assets/img/logo.jpeg" alt="ShareIt Logo" class="auth-logo">
        <h1>ברוכים השבים ל-ShareIt</h1>

        <form action="../api/auth_login.php" method="POST" id="loginForm" novalidate>

            <div class="form-group">
                <label for="email">אימייל:</label>
                <input type="email" name="email" id="email" placeholder="הזינו כתובת אימייל">
                <span class="error-msg" id="email-error"></span>
            </div>

            <div class="form-group">
                <label for="password">סיסמה:</label>
                <input type="password" name="password" id="password" placeholder="הזינו סיסמה">
                <span class="error-msg" id="password-error"></span>
            </div>

            <button type="submit">כניסה</button>
        </form>

        <p>עוד לא הצטרפתם? <a href="register.php">הירשמו עכשיו</a></p>
    </div>

    <script src="../assets/js/login.js"></script>
</body>
</html>
