<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vendor Login - MyOpticals Store Portal</title>
    <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    <style>
        * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }
        body {
            background: #0B0F19; color: #fff; min-height: 100vh;
            display: flex; align-items: center; justify-content: center; padding: 2rem;
        }
        .login-card {
            background: #131B2E; border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 24px; padding: 3rem; width: 100%; max-width: 440px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
        }
        .logo { font-size: 1.8rem; font-weight: 800; text-align: center; margin-bottom: 2rem; }
        .logo span { color: #EC4899; }
        label { font-size: 0.85rem; font-weight: 600; color: #94A3B8; text-transform: uppercase; letter-spacing: 0.5px; }
        input {
            width: 100%; padding: 0.85rem 1.2rem; background: #1E293B; border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px; color: #fff; font-size: 1rem; margin-top: 6px; margin-bottom: 1.5rem; outline: none; transition: 0.2s;
        }
        input:focus { border-color: #EC4899; }
        .btn-login {
            width: 100%; padding: 0.9rem; background: linear-gradient(135deg, #EC4899, #DB2777); color: #fff; border: none;
            border-radius: 12px; font-weight: 700; font-size: 1.05rem; cursor: pointer; transition: 0.2s;
        }
        .btn-login:hover { opacity: 0.9; }
        .error-msg { background: rgba(239, 68, 68, 0.2); border: 1px solid #EF4444; color: #FCA5A5; padding: 0.8rem; border-radius: 10px; margin-bottom: 1.5rem; font-size: 0.9rem; }
    </style>
</head>
<body>

    <div class="login-card">
        <div class="logo">
            <i class="fa-solid fa-glasses" style="color: #EC4899;"></i>
            Vendor<span>Portal</span>
        </div>

        @if($errors->any())
            <div class="error-msg">
                <i class="fa-solid fa-triangle-exclamation"></i> {{ $errors->first() }}
            </div>
        @endif

        <form action="{{ route('vendor.login.post') }}" method="POST">
            @csrf
            <div>
                <label>Registered Email or Phone</label>
                <input type="text" name="email" value="vendor@visioncraft.com" required autocomplete="username">
            </div>

            <div>
                <label>Password</label>
                <input type="password" name="password" value="Vendor@123" required autocomplete="current-password">
            </div>

            <button type="submit" class="btn-login"><i class="fa-solid fa-store"></i> Login to Store Portal</button>
        </form>

        <div style="text-align: center; margin-top: 1.5rem; font-size: 0.85rem; color: #94A3B8;">
            Back to <a href="/" style="color: #EC4899; text-decoration: none;">Main Website</a>
        </div>
    </div>

</body>
</html>
