<?php
    $primary = $tenant->primary_color ?: '#155e75';
    $showUrl = route('public.tenant.show', ['tenant' => $tenant->slug]);
    $registerUrl = route('public.tenant.register', ['tenant' => $tenant->slug]);
    $authenticateUrl = route('public.tenant.authenticate', ['tenant' => $tenant->slug]);
?>
<!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">
    <title>Member Login - <?php echo e($tenant->name); ?></title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css" rel="stylesheet">
    <link href="<?php echo e(asset('css/app.css')); ?>" rel="stylesheet">
    <style>:root{--tenant-primary: <?php echo e($primary); ?>;}</style>
</head>
<body class="tenant-public">
    <main class="tenant-login-shell">
        <form method="POST" action="<?php echo e($authenticateUrl); ?>" class="tenant-public-card">
            <?php echo csrf_field(); ?>
            <a href="<?php echo e($showUrl); ?>" class="tenant-public-brand mb-4">
                <?php if($tenant->displayLogoUrl()): ?>
                    <img src="<?php echo e($tenant->displayLogoUrl()); ?>" alt="<?php echo e($tenant->name); ?>">
                <?php else: ?>
                    <span><?php echo e(strtoupper(substr($tenant->name, 0, 2))); ?></span>
                <?php endif; ?>
                <strong><?php echo e($tenant->name); ?></strong>
            </a>
            <h1 class="h3">Member login</h1>
            <p class="text-muted">Access savings, loans, schedules, and repayments.</p>
            <?php if($errors->any()): ?>
                <div class="alert alert-danger"><?php echo e($errors->first()); ?></div>
            <?php endif; ?>
            <div class="mb-3"><label class="form-label">Email</label><input name="email" type="email" value="<?php echo e(old('email')); ?>" class="form-control" required autofocus></div>
            <div class="mb-3"><label class="form-label">Password</label><input name="password" type="password" class="form-control" required></div>
            <label class="form-check mb-4"><input class="form-check-input" type="checkbox" name="remember"> <span class="form-check-label">Remember me</span></label>
            <button class="btn btn-primary w-100">Login</button>
            <hr>
            <a class="btn btn-outline-secondary w-100" href="<?php echo e($registerUrl); ?>">Open a member account</a>
        </form>
    </main>
</body>
</html>
<?php /**PATH C:\Users\Polite hp\Documents\Codex\2026-05-08\build-a-complete-production-ready-saas\microfinance-saas\resources\views\public\tenant-login.blade.php ENDPATH**/ ?>