<!DOCTYPE html>
<html lang="<?php echo e(str_replace('_', '-', app()->getLocale())); ?>">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
    <title>Admin Login - Lindsay's Leather</title>
    
    <!-- Fonts -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Lato:wght@400;600;700&family=Montserrat:wght@400;500;600&display=swap" rel="stylesheet">
    
    <!-- Scripts -->
    <?php echo app('Illuminate\Foundation\Vite')(['resources/css/app.css', 'resources/js/app.js']); ?>
    
    <style>
        * {
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Montserrat', sans-serif;
            margin: 0;
            padding: 0;
            background: #f8fafc;
            min-height: 100vh;
            display: flex;
        }
        
        /* Two Column Layout */
        .login-container {
            display: flex;
            min-height: 100vh;
            width: 100%;
        }
        
        /* Left Side - Image/Artwork */
        .login-image {
            flex: 1;
            background: linear-gradient(135deg, #371C16 0%, #B5702F 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }
        
        .login-image::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                linear-gradient(135deg, rgba(55, 28, 22, 0.7) 0%, rgba(181, 112, 47, 0.5) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><defs><filter id="noise"><feTurbulence baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/><feColorMatrix values="0 0 0 0 0, 0 0 0 0 0, 0 0 0 0 0, 0 0 0 0.4 0"/></filter><pattern id="leather-grain" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><rect width="100" height="100" fill="%23B5702F" filter="url(%23noise)"/><circle cx="25" cy="25" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="2" fill="rgba(255,255,255,0.08)"/><circle cx="50" cy="20" r="1.5" fill="rgba(255,255,255,0.06)"/><circle cx="20" cy="80" r="2.5" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="30" r="1" fill="rgba(255,255,255,0.04)"/></pattern></defs><rect width="400" height="400" fill="url(%23leather-grain)"/></svg>'),
                linear-gradient(45deg, #2D1B1B 0%, #1A0F0F 50%, #B5702F 100%);
            background-size: cover, 100px 100px, cover;
            background-position: center, 0 0, center;
        }
        
        .login-image::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(ellipse at 20% 80%, rgba(181, 112, 47, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(55, 28, 22, 0.2) 0%, transparent 60%),
                radial-gradient(ellipse at 50% 50%, rgba(181, 112, 47, 0.08) 0%, transparent 70%);
            pointer-events: none;
        }
        
        .image-content {
            position: relative;
            z-index: 2;
            text-align: center;
            color: white;
            padding: 2rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
        }
        
        .logo-overlay {
            width: 120px;
            height: 120px;
            margin-bottom: 2rem;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
            border: 2px solid rgba(255, 255, 255, 0.2);
        }
        
        .logo-overlay img {
            width: 80px;
            height: 80px;
            object-fit: contain;
        }
        
        .image-content h1 {
            font-family: 'Lato', sans-serif;
            font-size: 3rem;
            font-weight: 700;
            margin: 0 0 1rem 0;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        }
        
        .image-content p {
            font-size: 1.25rem;
            opacity: 0.9;
            margin: 0;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        }
        
        /* Right Side - Login Form */
        .login-form-section {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem;
            background: white;
        }
        
        .login-form-container {
            width: 100%;
            max-width: 400px;
        }
        
        .form-header {
            text-align: center;
            margin-bottom: 2rem;
        }
        
        .form-logo {
            width: 80px;
            height: 80px;
            margin: 0 auto 1rem;
            background: linear-gradient(135deg, #371C16 0%, #B5702F 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
        
        .form-logo img {
            width: 50px;
            height: 50px;
            filter: brightness(0) invert(1);
        }
        
        .form-title {
            font-family: 'Lato', sans-serif;
            font-size: 2rem;
            font-weight: 700;
            color: #1f2937;
            margin: 0 0 0.5rem 0;
        }
        
        .form-subtitle {
            color: #6b7280;
            font-size: 1rem;
            margin: 0;
        }
        
        /* Form Styles */
        .login-form {
            background: white;
            border-radius: 1rem;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            border: 1px solid #e5e7eb;
            padding: 2rem;
        }
        
        .form-group {
            margin-bottom: 1.5rem;
        }
        
        .form-label {
            display: block;
            font-size: 0.875rem;
            font-weight: 600;
            color: #374151;
            margin-bottom: 0.5rem;
        }
        
        .form-input {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 2px solid #e5e7eb;
            border-radius: 0.5rem;
            font-size: 1rem;
            transition: all 0.3s ease;
            background: white;
        }
        
        .form-input:focus {
            outline: none;
            border-color: #B5702F;
            box-shadow: 0 0 0 3px rgba(181, 112, 47, 0.1);
        }
        
        .form-input::placeholder {
            color: #9ca3af;
        }
        
        /* Password Field with Toggle */
        .password-field {
            position: relative;
        }
        
        .password-toggle {
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            color: #6b7280;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: color 0.3s ease;
        }
        
        .password-toggle:hover {
            color: #B5702F;
        }
        
        .password-toggle svg {
            width: 20px;
            height: 20px;
        }
        
        /* Loading Animation */
        .animate-spin {
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        
        .remember-me {
            display: flex;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .remember-me input[type="checkbox"] {
            width: 16px;
            height: 16px;
            margin-right: 0.5rem;
            accent-color: #B5702F;
        }
        
        .remember-me label {
            font-size: 0.875rem;
            color: #6b7280;
            cursor: pointer;
        }
        
        .login-btn {
            width: 100%;
            background: linear-gradient(135deg, #371C16 0%, #B5702F 100%);
            color: white;
            border: none;
            padding: 0.875rem 1.5rem;
            border-radius: 0.5rem;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }
        
        .login-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
        
        .login-btn:active {
            transform: translateY(0);
        }
        
        .back-link {
            text-align: center;
            margin-top: 1.5rem;
        }
        
        .back-link a {
            color: #B5702F;
            text-decoration: none;
            font-size: 0.875rem;
            font-weight: 500;
            transition: color 0.3s ease;
        }
        
        .back-link a:hover {
            color: #371C16;
        }
        
        /* Error Messages */
        .error-message {
            background: #fef2f2;
            border: 1px solid #fecaca;
            color: #dc2626;
            padding: 1rem;
            border-radius: 0.5rem;
            margin-bottom: 1.5rem;
            font-size: 0.875rem;
        }
        
        .error-message ul {
            margin: 0.5rem 0 0 0;
            padding-left: 1.5rem;
        }
        
        .error-message li {
            margin-bottom: 0.25rem;
        }
        
        /* Mobile Responsive */
        @media (max-width: 768px) {
            .login-container {
                flex-direction: column;
            }
            
            .login-image {
                min-height: 40vh;
                flex: none;
            }
            
            .logo-overlay {
                width: 100px;
                height: 100px;
                margin-bottom: 1.5rem;
            }
            
            .logo-overlay img {
                width: 60px;
                height: 60px;
            }
            
            .image-content h1 {
                font-size: 2rem;
            }
            
            .image-content p {
                font-size: 1rem;
            }
            
            .login-form-section {
                flex: 1;
                padding: 1rem;
            }
            
            .login-form {
                padding: 1.5rem;
            }
        }
        
        @media (max-width: 480px) {
            .login-image {
                min-height: 30vh;
            }
            
            .image-content {
                padding: 1rem;
            }
            
            .logo-overlay {
                width: 80px;
                height: 80px;
                margin-bottom: 1rem;
            }
            
            .logo-overlay img {
                width: 50px;
                height: 50px;
            }
            
            .image-content h1 {
                font-size: 1.5rem;
            }
            
            .form-title {
                font-size: 1.5rem;
            }
        }
    </style>
</head>
<body>
    <div class="login-container">
        <!-- Left Side - Image/Artwork -->
        <div class="login-image">
            <div class="image-content">
                <div class="logo-overlay">
                    <img src="<?php echo e(asset('images/logo.png')); ?>" alt="Lindsay's Leather">
                </div>
                <h1>Lindsay's Leather</h1>
                <p>Admin Dashboard</p>
            </div>
        </div>
        
        <!-- Right Side - Login Form -->
        <div class="login-form-section">
            <div class="login-form-container">
                <div class="form-header">
                    <div class="form-logo">
                        <img src="<?php echo e(asset('images/logo.png')); ?>" alt="Lindsay's Leather">
                    </div>
                    <h2 class="form-title">Welcome Back</h2>
                    <p class="form-subtitle">Sign in to your admin account</p>
                </div>
                
                <form class="login-form" method="POST" action="<?php echo e(route('admin.login.submit')); ?>">
                    <?php echo csrf_field(); ?>
                    
                    <?php if($errors->any() || session('error')): ?>
                        <div class="error-message">
                            <strong>Login Failed</strong>
                            <?php if(session('error')): ?>
                                <p><?php echo e(session('error')); ?></p>
                            <?php endif; ?>
                            <?php if($errors->any()): ?>
                                <ul>
                                    <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <li><?php echo e($error); ?></li>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </ul>
                            <?php endif; ?>
                        </div>
                    <?php endif; ?>
                    
                    <div class="form-group">
                        <label for="email" class="form-label">Email Address</label>
                        <input id="email" 
                               name="email" 
                               type="email" 
                               autocomplete="email" 
                               required 
                               class="form-input" 
                               placeholder="Enter your email"
                               value="<?php echo e(old('email')); ?>">
                    </div>
                    
                    <div class="form-group">
                        <label for="password" class="form-label">Password</label>
                        <div class="password-field">
                            <input id="password" 
                                   name="password" 
                                   type="password" 
                                   autocomplete="current-password" 
                                   required 
                                   class="form-input" 
                                   placeholder="Enter your password">
                            <button type="button" class="password-toggle" onclick="togglePassword()">
                                <svg id="eye-icon" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path>
                                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"></path>
                                </svg>
                            </button>
                        </div>
                    </div>
                    
                    <div class="remember-me">
                        <input type="checkbox" id="remember" name="remember">
                        <label for="remember">Remember me</label>
                    </div>
                    
                    <button type="submit" class="login-btn">
                        <svg width="20" height="20" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 16l-4-4m0 0l4-4m-4 4h14m-5 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h7a3 3 0 013 3v1"></path>
                        </svg>
                        Sign In
                    </button>
                    
                    <div class="back-link">
                        <a href="<?php echo e(route('student.index')); ?>">← Back to Student Portal</a>
                    </div>
                </form>
            </div>
        </div>
    </div>

    <script>
        // Password Toggle Functionality
        function togglePassword() {
            const passwordInput = document.getElementById('password');
            const eyeIcon = document.getElementById('eye-icon');
            
            if (passwordInput.type === 'password') {
                passwordInput.type = 'text';
                eyeIcon.innerHTML = `
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.878 9.878L3 3m6.878 6.878L21 21"></path>
                `;
            } else {
                passwordInput.type = 'password';
                eyeIcon.innerHTML = `
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path>
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"></path>
                `;
            }
        }

        // Form Enhancement
        document.addEventListener('DOMContentLoaded', function() {
            // Add loading state to login button
            const loginForm = document.querySelector('.login-form');
            const loginBtn = document.querySelector('.login-btn');
            
            loginForm.addEventListener('submit', function() {
                loginBtn.innerHTML = `
                    <svg width="20" height="20" fill="none" stroke="currentColor" viewBox="0 0 24 24" class="animate-spin">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"></path>
                    </svg>
                    Signing In...
                `;
                loginBtn.disabled = true;
            });

            // Auto-focus on email field
            const emailInput = document.getElementById('email');
            if (emailInput && !emailInput.value) {
                emailInput.focus();
            }
        });
    </script>
</body>
</html><?php /**PATH /home/tqxferau/lindsay-boswell.com/resources/views/auth/admin-login.blade.php ENDPATH**/ ?>