

<?php $__env->startSection('title', 'Sign In - The Mini Port'); ?>

<?php $__env->startSection('content'); ?>
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">

<style>
    :root {
        --base-font: 'Inter', sans-serif;
        --display-font: 'Outfit', sans-serif;
        --login-primary: #4f46e5;
        --login-secondary: #7c3aed;
        --login-accent: #f97316;
        --surface-glass: rgba(255, 255, 255, 0.85);
    }

    .login-page {
        font-family: var(--base-font);
        background: #f8fafc;
        min-height: calc(100vh - 80px); /* Adjusting for header height if exists */
        display: flex;
        align-items: stretch;
        overflow: hidden;
    }

    /* Left Branding Side */
    .login-brand-side {
        background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4f46e5 100%);
        color: white;
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 4rem;
    }

    .brand-visual-element {
        position: absolute;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    }

    .visual-1 { width: 600px; height: 600px; top: -200px; left: -200px; }
    .visual-2 { width: 400px; height: 400px; bottom: -100px; right: -100px; }

    .brand-content { position: relative; z-index: 10; max-width: 480px; }
    .brand-logo-modern {
        width: 80px;
        height: 80px;
        background: white;
        border-radius: 20px;
        padding: 12px;
        margin-bottom: 2.5rem;
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    }

    /* Right Form Side */
    .login-form-side {
        background: white;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2.5rem;
        position: relative;
    }

    .form-container {
        width: 100%;
        max-width: 420px;
        animation: fadeInSlide 0.6s ease-out;
    }

    @keyframes fadeInSlide {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .login-header h2 {
        font-family: var(--display-font);
        font-weight: 800;
        color: #111827;
        letter-spacing: -0.02em;
    }

    /* Premium Floating Labels */
    .premium-floating {
        position: relative;
        margin-bottom: 1.5rem;
    }

    .premium-floating .form-control {
        border: 2px solid #f1f5f9;
        border-radius: 12px;
        padding: 1.6rem 1rem 0.6rem;
        font-weight: 600;
        color: #1e293b;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        height: auto;
        background: #f8fafc;
    }

    .premium-floating label {
        position: absolute;
        top: 0.5rem;
        left: 1rem;
        font-size: 0.75rem;
        font-weight: 800;
        color: #94a3b8;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        pointer-events: none;
        transition: all 0.3s;
    }

    .premium-floating .form-control:focus {
        border-color: var(--login-primary);
        background: white;
        box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    }

    .premium-floating .form-control:focus + label {
        color: var(--login-primary);
    }

    .input-icon-wrapper {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: #cbd5e1;
        font-size: 1.1rem;
    }

    /* Password Toggle Custom */
    .btn-password-toggle {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: #94a3b8;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 5;
    }

    /* Action Buttons */
    .btn-login-primary {
        background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
        border: none;
        color: white;
        padding: 0.9rem;
        border-radius: 12px;
        font-weight: 800;
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
        transition: all 0.3s;
    }

    .btn-login-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.4);
    }

    /* Social Buttons Premium */
    .social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
    
    .social-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        padding: 0.75rem;
        border-radius: 10px;
        border: 1px solid #e2e8f0;
        font-weight: 600;
        font-size: 0.9rem;
        color: #475569;
        text-decoration: none;
        transition: all 0.2s;
        background: white;
    }

    .social-btn:hover {
        background: #f8fafc;
        border-color: #cbd5e1;
        color: #1e293b;
    }

    .social-btn img { height: 18px; }

    /* Divider */
    .modern-divider {
        display: flex;
        align-items: center;
        text-align: center;
        margin: 2rem 0;
        color: #94a3b8;
        font-size: 0.85rem;
        font-weight: 600;
    }

    .modern-divider::before, .modern-divider::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid #e2e8f0;
    }

    .modern-divider:not(:empty)::before { margin-right: 1rem; }
    .modern-divider:not(:empty)::after { margin-left: 1rem; }

    /* Footer Links */
    .register-footer {
        margin-top: 2.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid #f1f5f9;
        text-align: center;
    }

    .register-link {
        color: var(--login-primary);
        font-weight: 700;
        text-decoration: none;
        transition: color 0.2s;
    }

    .register-link:hover { color: var(--login-secondary); }

    /* Mobile Logic */
    @media (max-width: 991px) {
        .login-brand-side { display: none; }
        .login-page { min-height: 100vh; background: white; }
        .login-form-side { padding: 1.5rem; width: 100%; align-items: flex-start; padding-top: 2rem; }
        .form-container { max-width: 100%; }
        .login-header { margin-bottom: 2rem !important; }
        .premium-floating { margin-bottom: 1.25rem; }
        .register-footer { margin-top: 2rem; padding-top: 1rem; }
    }
</style>

<div class="login-page">
    <!-- Left Interaction Side -->
    <div class="login-brand-side col-lg-6">
        <div class="brand-visual-element visual-1"></div>
        <div class="brand-visual-element visual-2"></div>
        
        <div class="brand-content">
            <div class="brand-logo-modern">
                <img src="<?php echo e(asset('images/miniport_logo.jpg')); ?>" alt="MiniPort" class="w-100 h-100 object-fit-contain rounded">
            </div>
            <h1 class="display-font fs-1 fw-800 mb-3" style="line-height: 1.1;">Direct Sourcing<br>Made Simple.</h1>
            <p class="fs-5 text-indigo-100 mb-5 lh-base">Access India's premier B2B marketplace. Connect with verified manufacturers and grow your business today.</p>
            
            <div class="d-flex align-items-center gap-4 text-indigo-200">
                <div class="d-flex align-items-center gap-2">
                    <i class="bi bi-shield-check fs-4"></i>
                    <span class="small fw-600">Verified Sellers</span>
                </div>
                <div class="d-flex align-items-center gap-2">
                    <i class="bi bi-lightning-charge fs-4"></i>
                    <span class="small fw-600">Fast Inquiries</span>
                </div>
            </div>
        </div>
    </div>

    <!-- Right Form Side -->
    <div class="login-form-side col-lg-6">
        <div class="form-container">
            <div class="login-header mb-5">
                <h2 class="fs-1 mb-2">Welcome back</h2>
                <p class="text-slate-500 fw-500">Please enter your details to sign in.</p>
            </div>

            <form method="POST" action="<?php echo e(route('login')); ?>">
                <?php echo csrf_field(); ?>

                <?php if(request()->has('redirect')): ?>
                    <input type="hidden" name="redirect" value="<?php echo e(request()->get('redirect')); ?>">
                <?php endif; ?>

                <!-- Email Field -->
                <div class="premium-floating">
                    <label>Email Address</label>
                    <input type="email" name="email" class="form-control <?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" value="<?php echo e(old('email')); ?>" required autofocus placeholder=" ">
                    <div class="input-icon-wrapper">
                        <i class="bi bi-envelope-at"></i>
                    </div>
                    <?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <div class="invalid-feedback fw-600"><?php echo e($message); ?></div>
                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                </div>

                <!-- Password Field -->
                <div class="premium-floating">
                    <label>Password</label>
                    <input type="password" id="password_input" name="password" class="form-control <?php $__errorArgs = ['password'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" required placeholder=" ">
                    <button type="button" class="btn-password-toggle" onclick="togglePasswordLogin()">
                        <i class="bi bi-eye-slash" id="toggle_icon_login"></i>
                    </button>
                    <?php $__errorArgs = ['password'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <div class="invalid-feedback fw-600"><?php echo e($message); ?></div>
                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                </div>

                <!-- Remember & Forgot -->
                <div class="d-flex justify-content-between align-items-center mb-4">
                    <div class="form-check custom-check">
                        <input class="form-check-input" type="checkbox" name="remember" id="remember_me">
                        <label class="form-check-label text-slate-600 fw-600 small" for="remember_me">
                            Keep me logged in
                        </label>
                    </div>
                    <?php if(Route::has('password.request')): ?>
                        <a href="<?php echo e(route('password.request')); ?>" class="text-indigo-600 fw-700 small no-underline">Forgot Password?</a>
                    <?php endif; ?>
                </div>

                <!-- Submit -->
                <button type="submit" class="btn btn-login-primary w-100 mb-4">
                    Sign In to Account <i class="bi bi-arrow-right"></i>
                </button>

                <!-- Social Divider -->
                <div class="modern-divider">OR CONTINUE WITH</div>

                <!-- Social Grid -->
                <div class="social-grid">
                    <?php if(\App\Models\Setting::getValue('social_login_google_enabled', '1')): ?>
                        <a href="<?php echo e(route('auth.google')); ?>" class="social-btn">
                            <img src="https://www.gstatic.com/images/branding/product/1x/gsa_512dp.png" alt="Google">
                            Google
                        </a>
                    <?php endif; ?>
                    <?php if(\App\Models\Setting::getValue('social_login_facebook_enabled', '1')): ?>
                        <a href="<?php echo e(route('auth.facebook')); ?>" class="social-btn" style="background: #1877f2; border-color: #1877f2; color: white;">
                            <i class="bi bi-facebook fs-5"></i>
                            Facebook
                        </a>
                    <?php endif; ?>
                </div>
            </form>

            <div class="register-footer">
                <p class="text-slate-500 fw-500 mb-3 small">New to MiniPort?</p>
                <div class="d-flex flex-column gap-2">
                    <a href="<?php echo e(route('register.seller')); ?>" class="btn btn-primary w-100 py-3 rounded-pill fw-800 shadow-sm">Register as Seller</a>
                    <a href="<?php echo e(route('register.buyer')); ?>" class="btn btn-outline-slate w-100 py-3 rounded-pill fw-700">Join as Business Buyer</a>
                </div>
            </div>
        </div>
    </div>
</div>

<script>
    function togglePasswordLogin() {
        const input = document.getElementById('password_input');
        const icon = document.getElementById('toggle_icon_login');
        
        if (input.type === 'password') {
            input.type = 'text';
            icon.classList.replace('bi-eye-slash', 'bi-eye');
        } else {
            input.type = 'password';
            icon.classList.replace('bi-eye', 'bi-eye-slash');
        }
    }
</script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/u281583269/domains/theminiport.com/public_html/resources/views/auth/login.blade.php ENDPATH**/ ?>