<?php $__env->startSection('content'); ?>
<?php $title = 'Sign in'; ?>
<h1>Sign in</h1>
<p class="lead">Access your organisation, events, and billing in My MeXCo.</p>

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

<form method="POST" action="<?php echo e(route('mexco.login.submit')); ?>">
    <?php echo csrf_field(); ?>
    <div class="field">
        <label class="form-label" for="email">Email</label>
        <input class="form-input" type="email" name="email" id="email" value="<?php echo e(old('email')); ?>" required autofocus autocomplete="email" placeholder="you@organisation.com">
        <?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="form-error"><?php echo e($message); ?></div><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
    </div>
    <div class="field">
        <label class="form-label" for="password">Password</label>
        <input class="form-input" type="password" name="password" id="password" required autocomplete="current-password" placeholder="Your password">
    </div>
    <button type="submit" class="btn-purple auth-submit">Sign in</button>
</form>

<p class="foot">
    New to MeXCo? <a href="<?php echo e(route('mexco.register')); ?>">Create account</a>
</p>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('after_card'); ?>
    <a href="<?php echo e(route('mexco.home')); ?>" class="auth-home">← Back to website</a>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('portal.auth.layout', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\laragon\www\myapp\resources\views/portal/auth/login.blade.php ENDPATH**/ ?>