<!DOCTYPE html>
<html lang="tr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Kazan Kazan Giriş</title>
    <link rel="stylesheet" href="styles.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
</head>
<body>
    <div class="login-container">
        <div class="login-box">
            <img src="images/logo.png" alt="Kazan Kazan" class="logo">
            <h2>Hoş geldiniz!</h2>
            <p>Oturum açmak için bilgilerinizi girin</p>
            <form action="login.php" method="post">
    <div class="input-group">
        <input type="text" name="username" placeholder="Kullanıcı Adı" required>
    </div>
    <div class="input-group">
        <input type="password" name="password" id="password" placeholder="Şifre" required>
        <i class="fas fa-eye-slash toggle-password" onclick="togglePassword()"></i>
    </div>
    <div class="remember-forgot">
        <div class="remember-me">
            <input type="checkbox" id="remember" name="remember">
            <label for="remember">Beni hatırla</label>
        </div>
        <a href="#" class="forgot-password">Şifrenizi mi unuttunuz?</a>
    </div>
    <button type="submit" class="login-btn">Giriş</button>
    <div class="register-link">
        <span>Hesabınız yok mu?</span> <a href="kayit.php">Kayıt Ol</a>
    </div>
</form>
        </div>
    </div>
    <script>
        function togglePassword() {
            var passwordField = document.getElementById("password");
            var toggleIcon = document.querySelector(".toggle-password");
            if (passwordField.type === "password") {
                passwordField.type = "text";
                toggleIcon.classList.remove("fa-eye-slash");
                toggleIcon.classList.add("fa-eye");
            } else {
                passwordField.type = "password";
                toggleIcon.classList.remove("fa-eye");
                toggleIcon.classList.add("fa-eye-slash");
            }
        }
    </script>
</body>
</html>