<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Sign in · <?php echo e(config('mexco.apps.super.name')); ?></title>
    <?php echo $__env->make('partials.mexco-favicon', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css" rel="stylesheet">
    <?php echo $__env->make('partials.mexco-admin-theme', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
    <style>
        body {
            font-family: Inter, system-ui, sans-serif;
            min-height: 100vh; display: grid; place-items: center;
            background: linear-gradient(160deg, var(--mexco-primary), var(--mexco-primary-dark) 70%);
            padding: 1.5rem;
        }
        .login-card { max-width: 420px; width: 100%; border-radius: 1.25rem; border: 0; }
        .login-logo { display: block; width: min(180px, 70%); height: auto; margin: 0 auto 1.25rem; }
        .login-kicker {
            text-align: center; font-size: .7rem; font-weight: 700; letter-spacing: .08em;
            text-transform: uppercase; color: var(--mexco-primary); margin-bottom: .35rem;
        }
        .form-control:focus {
            border-color: var(--mexco-primary); box-shadow: 0 0 0 .22rem rgba(124,58,237,.15);
        }
        .btn-primary {
            --bs-btn-bg: var(--mexco-primary); --bs-btn-border-color: var(--mexco-primary);
            --bs-btn-hover-bg: var(--mexco-primary-dark); --bs-btn-hover-border-color: var(--mexco-primary-dark);
        }
        .login-note {
            margin-top: 1rem; padding: .85rem .95rem; border-radius: 10px;
            background: var(--primary-soft); border: 1px solid #DDD6FE;
            font-size: .8rem; color: var(--mexco-primary-dark); line-height: 1.45;
        }
        .mono { font-family: ui-monospace, monospace; }
    </style>
</head>
<body>
<div class="card login-card shadow-lg p-4 p-md-5">
    <?php echo $__env->make('partials.mexco-brand', ['app' => 'super', 'class' => 'login-logo'], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
    <div class="login-kicker"><?php echo e(config('mexco.platform')); ?></div>
    <h1 class="text-center fw-bold mb-1" style="font-size:1.5rem"><?php echo e(config('mexco.apps.super.name')); ?></h1>
    <p class="text-center text-secondary mb-4" style="font-size:.9rem">Sign in to manage events and grant organiser capabilities.</p>

    <?php if(session('error')): ?>
        <div class="alert alert-danger py-2"><?php echo e(session('error')); ?></div>
    <?php endif; ?>
    <?php if(session('success')): ?>
        <div class="alert alert-success py-2"><?php echo e(session('success')); ?></div>
    <?php endif; ?>

    <form method="POST" action="<?php echo e(route('mexco.super.login.submit')); ?>">
        <?php echo csrf_field(); ?>
        <div class="mb-3">
            <label class="form-label fw-semibold" for="email">Email</label>
            <input type="email" name="email" id="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>
            <?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"><?php echo e($message); ?></div><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
        </div>
        <div class="mb-4">
            <label class="form-label fw-semibold" for="password">Password</label>
            <input type="password" name="password" id="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>
            <?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"><?php echo e($message); ?></div><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
        </div>
        <button type="submit" class="btn btn-primary btn-lg w-100 fw-bold">Sign in</button>
    </form>

    <div class="login-note">
        Demo: <span class="mono">admin@meetup.com</span> · password <span class="mono">superadmin</span>
    </div>
    <p class="text-center mt-3 mb-0">
        <a href="<?php echo e(route('mexco.admin.login')); ?>" class="text-secondary" style="font-size:.82rem">
            <?php echo e(config('mexco.apps.organizer.name')); ?> sign in →
        </a>
    </p>
</div>
</body>
</html>
<?php /**PATH C:\laragon\www\myapp\resources\views/super-admin/login.blade.php ENDPATH**/ ?>