<x-guest-layout title="Login">
    <style>
        .background-image {
            background-image: url('images/login-background.jpg'); /* Replace with your image URL */
            background-size: cover;
            background-position: center;
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .background-blur {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        .glass-effect {
            background: rgba(255, 255, 255, 0.25);
            border-radius: 15px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            padding: 2rem;
            width: 100%;
            max-width: 400px;
            position: relative;
            z-index: 1;
        }

        .input-field {
            background: rgba(255, 255, 255, 0.9); /* Change this to the desired background color */
            border: none;
            padding: 1rem;
            border-radius: 5px;
            width: 100%;
            color: #333; /* Change this to the desired text color */
        }

        .input-field:focus {
            outline: none;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
        }

        .social-button {
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 5px;
            border: 1px solid rgba(255, 255, 255, 0.3);
            padding: 0.75rem;
            margin-bottom: 1rem;
            transition: background 0.3s;
            background: rgba(255, 255, 255, 0.1);
            width: 100%;
            color: white;
            font-weight: 500;
        }

        .social-button:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .social-icon {
            margin-right: 0.5rem;
        }
    </style>


    <div class="background-image">
        <div class="background-blur"></div>
        <div class="glass-effect">
            <h2 class="text-3xl font-bold mb-6 text-center text-white">Sign In</h2>
            <p class="text-center mb-6 text-white">Your Social Campaigns</p>

            <div class="flex flex-col items-center mb-6">
                {{-- <a href="{{ url('auth/google') }}" class="social-button">
                    <i class="fab fa-google social-icon"></i>
                    Sign in with Google
                </a>
                <a href="{{ url('auth/apple') }}" class="social-button">
                    <i class="fab fa-apple social-icon"></i>
                    Sign in with Apple
                </a> --}}
                <a href="{{ url('auth/microsoft') }}" class="social-button">
                    <i class="fab fa-microsoft social-icon"></i>
                    Sign in with Microsoft Teams
                </a>
            </div>

            <div class="text-center mb-6 text-white">Or with Username</div>

            <form method="POST" action="{{ route('login') }}" class="flex flex-col items-center">
                @csrf
                <div class="w-full mb-4">
                    <label for="username" class="block text-white mb-2">Username</label>
                    <input type="text" id="username" name="username" class="input-field"  >
                </div>
                <div class="w-full mb-6">
                    <label for="password" class="block text-white mb-2">Password</label>
                    <input type="password" id="password" name="password" class="input-field" >
                </div>
                <button type="submit" class="w-full bg-indigo-600 text-white py-2 rounded-lg hover:bg-indigo-700 transition duration-300">Sign In</button>
            </form>

            <div class="text-center mt-6 text-white">
                Not a Member yet? <a href="{{ route('register') }}" class="text-indigo-300 hover:text-indigo-500 transition duration-300">Sign Up</a>
            </div>
        </div>
    </div>

</x-guest-layout>
