<x-guest-layout title="Login">
    <style>
        input:-webkit-autofill ,input:-webkit-autofill:focus {
            -webkit-box-shadow: 0 0 0px 1000px transparent inset;
            -webkit-text-fill-color: inherit;
            transition: background-color 5000s ease-in-out 0s;
        }
        .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>

            <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" autocomplete="off"
                        class="w-full bg-transparent border-b-2 border-white text-black text-md p-3 active:border-none focus:outline-none active:outline-none focus:border-b-indigo-500 focus:transform focus:translate-y-1 focus:duration-300 focus:text-xl"
                        placeholder="Enter your username">
                </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" autocomplete="off"
                        class="w-full bg-transparent border-b-2 border-white text-black text-md p-3 focus:outline-none active:outline-none focus:border-b-indigo-500 focus:transform focus:translate-y-1 focus:duration-300 focus:text-xl">
                </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="flex flex-col items-center mb-6 mt-4">
                {{-- <a href="{{ url('auth/google') }}" class="social-button">
                    <i aria-hidden="true" class="fab fa-google social-icon"></i>
                    Sign in with Google
                </a>
                <a href="{{ url('auth/apple') }}" class="social-button">
                    <i aria-hidden="true" class="fab fa-apple social-icon"></i>
                    Sign in with Apple
                </a> --}}
                <a href="{{ url('auth/microsoft') }}" class="social-button">
                    <i aria-hidden="true" class="fab fa-microsoft social-icon"></i>
                    Sign in with Microsoft Teams
                </a>
            </div>

            {{-- <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>
