

<?php $__env->startSection('title', $activeAuthMode === 'register' ? 'Register Peserta Magang' : ($activeAuthMode === 'forgot' ? 'Lupa Password Peserta' : $title)); ?>

<?php $__env->startSection('styles'); ?>
<!-- Tailwind CSS & Config for Login Redesign -->
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap" rel="stylesheet"/>
<script>
    tailwind.config = {
        darkMode: "class",
        theme: {
            extend: {
                "colors": {
                    "outline": "#737780",
                    "on-surface-variant": "#43474f",
                    "surface-container": "#e5eeff",
                    "outline-variant": "#c3c6d1",
                    "on-primary": "#ffffff",
                    "surface-container-low": "#eff4ff",
                    "on-surface": "#0b1c30",
                    "background": "#f8f9ff",
                    "primary-container": "#003366",
                    "on-primary-container": "#799dd6",
                    "surface-container-lowest": "#ffffff",
                    "secondary": "#115cb9",
                    "primary": "#001e40",
                    "error": "#ba1a1a",
                },
                "spacing": {
                    "stack-sm": "0.5rem",
                    "stack-md": "1rem",
                    "stack-lg": "2rem",
                    "margin-desktop": "2.5rem",
                    "margin-mobile": "1rem"
                },
                "fontFamily": {
                    "body-lg": ["Plus Jakarta Sans"],
                    "headline-lg": ["Plus Jakarta Sans"],
                    "caption": ["Plus Jakarta Sans"],
                    "display-lg": ["Plus Jakarta Sans"],
                    "headline-lg-mobile": ["Plus Jakarta Sans"],
                    "title-lg": ["Plus Jakarta Sans"],
                    "body-md": ["Plus Jakarta Sans"],
                    "label-md": ["Plus Jakarta Sans"],
                    "headline-md": ["Plus Jakarta Sans"]
                }
            }
        }
    }
</script>
<style>
    /* Prevent default admin layout conflicts */
    body { background-color: #f8f9ff !important; margin: 0; padding: 0; overflow-x: hidden; }
    #wrapper, .page-wrapper { margin: 0 !important; padding: 0 !important; width: 100% !important; min-height: 100vh !important; }
    .navbar, footer { display: none !important; }
    
    .ambient-shadow-level-1 {
        box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);
    }
    .input-focus-glow:focus {
        box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2);
    }
</style>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<div class="min-h-screen flex flex-col md:flex-row w-full m-0 p-0 absolute top-0 left-0 bg-background">
    <!-- Left Side: Branding / Imagery -->
    <div class="hidden md:flex flex-col md:w-5/12 lg:w-1/2 bg-primary-container relative overflow-hidden text-on-primary p-margin-desktop justify-between min-h-screen">
        <div class="absolute inset-0 z-0 mix-blend-overlay opacity-30 bg-cover bg-center" style="background-image: url('<?php echo e(asset('assets/tugu_pancakarsa.jpg')); ?>')"></div>
        
        <div class="relative z-10 flex items-center gap-3">
                <img src="<?php echo e(asset('assets/certificate/lambang_kabupaten_bogor.png')); ?>" alt="Logo Tegar Beriman" class="h-8 w-auto object-contain">
                <span class="text-[24px] font-bold tracking-tight">LENTERA</span>
            </div>
            
            <h1 class="text-[32px] md:text-[48px] font-bold mt-12 max-w-lg leading-tight">
                Mulai Perjalanan Karir Anda Bersama Kami.
            </h1>
            <p class="text-[18px] text-on-primary-container mt-stack-md max-w-md">
                Layanan Integrasi Izin Riset dan Magang Kabupaten Bogor membuka peluang bagi talenta terbaik untuk berkontribusi dan berkembang.
            </p>
        
        <div class="relative z-10 flex items-center gap-4 mt-auto pt-stack-lg border-t border-on-primary-container/30">
            <span class="material-symbols-outlined text-3xl">verified_user</span>
            <div>
                <p class="text-[14px] font-bold">Portal Resmi Pemerintah</p>
                <p class="text-[12px] text-on-primary-container">Kabupaten Bogor, Jawa Barat</p>
            </div>
        </div>
    </div>

    <!-- Right Side: Form Content -->
    <div class="w-full md:w-7/12 lg:w-1/2 flex flex-col items-center justify-center p-margin-mobile md:p-margin-desktop bg-background min-h-screen">
        <div class="w-full max-w-xl bg-surface-container-lowest rounded-xl ambient-shadow-level-1 border-t-4 border-primary-container p-6 md:p-stack-lg my-8">
            
            <div class="md:hidden flex items-center gap-2 mb-stack-md text-primary-container">
                <img src="<?php echo e(asset('assets/certificate/lambang_kabupaten_bogor.png')); ?>" alt="Logo Tegar Beriman" class="h-8 w-auto object-contain">
                <span class="text-[24px] font-bold">LENTERA</span>
            </div>

            <!-- Form Header -->
            <div class="mb-stack-lg">
                <h2 class="text-[24px] md:text-[32px] font-bold text-on-surface mb-2">
                    <?php echo e($activeAuthMode === 'register' ? 'Buat Akun' : ($activeAuthMode === 'forgot' ? 'Lupa Kata Sandi' : $title)); ?>

                </h2>
                <?php if($activeAuthMode !== 'login'): ?>
                    <p class="text-[16px] text-on-surface-variant">
                        <?php echo e($activeAuthMode === 'register' ? 'Daftar untuk mengakses layanan izin riset dan magang Pemerintah Kabupaten Bogor.' : 'Masukkan nama lengkap dan email yang dipakai saat registrasi.'); ?>

                    </p>
                <?php else: ?>
                    <p class="text-[16px] text-on-surface-variant">
                        Masuk untuk mengakses layanan LENTERA.
                    </p>
                <?php endif; ?>
            </div>

            <?php if($activeAuthMode === 'register'): ?>
                <!-- REGISTRATION FORM -->
                <form action="<?php echo e(route('register.store')); ?>" method="POST" class="flex flex-col gap-stack-md">
                    <?php echo csrf_field(); ?>
                    <!-- Grid Layout for 2 columns -->
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                        <div class="flex flex-col gap-2">
                            <label class="text-[14px] font-medium text-on-surface">Nama Lengkap</label>
                            <input name="nama" type="text" value="<?php echo e(old('nama')); ?>" required class="bg-surface-container-lowest border border-outline-variant rounded-lg px-4 py-3 text-[16px] text-on-surface focus:border-secondary focus:outline-none input-focus-glow transition-all">
                            <?php $__errorArgs = ['nama'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="text-error text-[12px] mt-1"><?php echo e($message); ?></div><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                        <div class="flex flex-col gap-2">
                            <label class="text-[14px] font-medium text-on-surface">Email</label>
                            <input name="email" type="email" value="<?php echo e(old('email')); ?>" required class="bg-surface-container-lowest border border-outline-variant rounded-lg px-4 py-3 text-[16px] text-on-surface focus:border-secondary focus:outline-none input-focus-glow transition-all">
                            <?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="text-error text-[12px] mt-1"><?php echo e($message); ?></div><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                        <div class="flex flex-col gap-2">
                            <label class="text-[14px] font-medium text-on-surface">NIK</label>
                            <input name="nik" type="text" value="<?php echo e(old('nik')); ?>" required class="bg-surface-container-lowest border border-outline-variant rounded-lg px-4 py-3 text-[16px] text-on-surface focus:border-secondary focus:outline-none input-focus-glow transition-all">
                            <?php $__errorArgs = ['nik'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="text-error text-[12px] mt-1"><?php echo e($message); ?></div><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                        <div class="flex flex-col gap-2">
                            <label class="text-[14px] font-medium text-on-surface">No WhatsApp</label>
                            <input name="no_hp" type="text" value="<?php echo e(old('no_hp')); ?>" required class="bg-surface-container-lowest border border-outline-variant rounded-lg px-4 py-3 text-[16px] text-on-surface focus:border-secondary focus:outline-none input-focus-glow transition-all">
                            <?php $__errorArgs = ['no_hp'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="text-error text-[12px] mt-1"><?php echo e($message); ?></div><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                        <div class="flex flex-col gap-2">
                            <label class="text-[14px] font-medium text-on-surface">Tempat Lahir</label>
                            <input name="tempat_lahir" type="text" value="<?php echo e(old('tempat_lahir')); ?>" required class="bg-surface-container-lowest border border-outline-variant rounded-lg px-4 py-3 text-[16px] text-on-surface focus:border-secondary focus:outline-none input-focus-glow transition-all">
                            <?php $__errorArgs = ['tempat_lahir'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="text-error text-[12px] mt-1"><?php echo e($message); ?></div><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                        <div class="flex flex-col gap-2">
                            <label class="text-[14px] font-medium text-on-surface">Tanggal Lahir</label>
                            <input name="tanggal_lahir" type="date" value="<?php echo e(old('tanggal_lahir')); ?>" required class="bg-surface-container-lowest border border-outline-variant rounded-lg px-4 py-3 text-[16px] text-on-surface focus:border-secondary focus:outline-none input-focus-glow transition-all">
                            <?php $__errorArgs = ['tanggal_lahir'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="text-error text-[12px] mt-1"><?php echo e($message); ?></div><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                        <div class="flex flex-col gap-2">
                            <label class="text-[14px] font-medium text-on-surface">Asal Kampus / Sekolah</label>
                            <input name="asal_instansi" type="text" value="<?php echo e(old('asal_instansi')); ?>" required class="bg-surface-container-lowest border border-outline-variant rounded-lg px-4 py-3 text-[16px] text-on-surface focus:border-secondary focus:outline-none input-focus-glow transition-all">
                            <?php $__errorArgs = ['asal_instansi'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="text-error text-[12px] mt-1"><?php echo e($message); ?></div><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                        <div class="flex flex-col gap-2">
                            <label class="text-[14px] font-medium text-on-surface">Program Studi / Jurusan</label>
                            <input name="program_studi" type="text" value="<?php echo e(old('program_studi')); ?>" required class="bg-surface-container-lowest border border-outline-variant rounded-lg px-4 py-3 text-[16px] text-on-surface focus:border-secondary focus:outline-none input-focus-glow transition-all">
                            <?php $__errorArgs = ['program_studi'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="text-error text-[12px] mt-1"><?php echo e($message); ?></div><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                        <div class="flex flex-col gap-2 md:col-span-2">
                            <label class="text-[14px] font-medium text-on-surface">Nomor Induk (NIM / NIS)</label>
                            <input name="nim" type="text" value="<?php echo e(old('nim')); ?>" required class="bg-surface-container-lowest border border-outline-variant rounded-lg px-4 py-3 text-[16px] text-on-surface focus:border-secondary focus:outline-none input-focus-glow transition-all">
                            <?php $__errorArgs = ['nim'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="text-error text-[12px] mt-1"><?php echo e($message); ?></div><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                        <div class="flex flex-col gap-2 md:col-span-2">
                            <label class="text-[14px] font-medium text-on-surface">Alamat Lengkap</label>
                            <textarea name="alamat" required rows="2" class="bg-surface-container-lowest border border-outline-variant rounded-lg px-4 py-3 text-[16px] text-on-surface focus:border-secondary focus:outline-none input-focus-glow transition-all"><?php echo e(old('alamat')); ?></textarea>
                            <?php $__errorArgs = ['alamat'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="text-error text-[12px] mt-1"><?php echo e($message); ?></div><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                        <div class="flex flex-col gap-2">
                            <label class="text-[14px] font-medium text-on-surface">Kata Sandi</label>
                            <input name="password" type="password" required class="bg-surface-container-lowest border border-outline-variant rounded-lg px-4 py-3 text-[16px] text-on-surface focus:border-secondary focus:outline-none input-focus-glow transition-all">
                            <?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="text-error text-[12px] mt-1"><?php echo e($message); ?></div><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                        <div class="flex flex-col gap-2">
                            <label class="text-[14px] font-medium text-on-surface">Konfirmasi Sandi</label>
                            <input name="password_confirmation" type="password" required class="bg-surface-container-lowest border border-outline-variant rounded-lg px-4 py-3 text-[16px] text-on-surface focus:border-secondary focus:outline-none input-focus-glow transition-all">
                        </div>
                    </div>

                    <!-- Actions -->
                    <button type="submit" class="w-full bg-primary-container text-on-primary text-[14px] font-semibold py-3 px-6 rounded-lg hover:bg-primary transition-colors flex justify-center items-center gap-2 mt-4">
                        Daftar Sekarang
                        <span class="material-symbols-outlined text-[18px]">arrow_forward</span>
                    </button>
                    <p class="text-center text-[16px] text-on-surface-variant mt-2">
                        Sudah punya akun? <a href="<?php echo e(route('login.form')); ?>" class="text-secondary font-medium hover:underline">Masuk di sini</a>
                    </p>
                </form>

            <?php elseif($activeAuthMode === 'forgot'): ?>
                <!-- FORGOT PASSWORD FORM -->
                <?php if(!empty($verifiedResetUser)): ?>
                    <div class="bg-surface-container-low text-primary p-4 rounded-lg text-[14px] mb-4 flex items-center gap-2">
                        <span class="material-symbols-outlined">check_circle</span>
                        <span>Data ditemukan untuk <strong><?php echo e($verifiedResetUser->nama); ?></strong>. Buat sandi baru.</span>
                    </div>
                    <form action="<?php echo e(route('password.update')); ?>" method="POST" class="flex flex-col gap-stack-md">
                        <?php echo csrf_field(); ?>
                        <div class="flex flex-col gap-2">
                            <label class="text-[14px] font-medium text-on-surface">Email Terdaftar</label>
                            <input type="email" value="<?php echo e($verifiedResetUser->email); ?>" disabled class="bg-gray-100 border border-outline-variant rounded-lg px-4 py-3 text-[16px] text-gray-500">
                        </div>
                        <div class="flex flex-col gap-2">
                            <label class="text-[14px] font-medium text-on-surface">Kata Sandi Baru</label>
                            <input name="password" type="password" required class="bg-surface-container-lowest border border-outline-variant rounded-lg px-4 py-3 text-[16px] text-on-surface focus:border-secondary focus:outline-none input-focus-glow transition-all">
                            <?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="text-error text-[12px] mt-1"><?php echo e($message); ?></div><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                        <div class="flex flex-col gap-2">
                            <label class="text-[14px] font-medium text-on-surface">Konfirmasi Sandi Baru</label>
                            <input name="password_confirmation" type="password" required class="bg-surface-container-lowest border border-outline-variant rounded-lg px-4 py-3 text-[16px] text-on-surface focus:border-secondary focus:outline-none input-focus-glow transition-all">
                        </div>
                        <div class="flex flex-col sm:flex-row gap-3 mt-4">
                            <button type="submit" class="w-full bg-primary-container text-on-primary text-[14px] font-semibold py-3 px-6 rounded-lg hover:bg-primary transition-colors flex justify-center items-center gap-2">
                                Simpan Sandi Baru
                            </button>
                            <a href="<?php echo e(route('password.request', ['reset' => 1])); ?>" class="w-full bg-white border border-outline text-on-surface text-[14px] font-semibold py-3 px-6 rounded-lg hover:bg-gray-50 transition-colors flex justify-center items-center gap-2">
                                Ganti Data
                            </a>
                        </div>
                    </form>
                <?php else: ?>
                    <form action="<?php echo e(route('password.verify')); ?>" method="POST" class="flex flex-col gap-stack-md">
                        <?php echo csrf_field(); ?>
                        <div class="flex flex-col gap-2">
                            <label class="text-[14px] font-medium text-on-surface">Nama Lengkap</label>
                            <input name="nama" type="text" value="<?php echo e(old('nama')); ?>" placeholder="Nama sesuai registrasi" required class="bg-surface-container-lowest border border-outline-variant rounded-lg px-4 py-3 text-[16px] text-on-surface focus:border-secondary focus:outline-none input-focus-glow transition-all">
                            <?php $__errorArgs = ['nama'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="text-error text-[12px] mt-1"><?php echo e($message); ?></div><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                        <div class="flex flex-col gap-2">
                            <label class="text-[14px] font-medium text-on-surface">Email Terdaftar</label>
                            <input name="email" type="email" value="<?php echo e(old('email')); ?>" required class="bg-surface-container-lowest border border-outline-variant rounded-lg px-4 py-3 text-[16px] text-on-surface focus:border-secondary focus:outline-none input-focus-glow transition-all">
                            <?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="text-error text-[12px] mt-1"><?php echo e($message); ?></div><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                        <div class="flex flex-col sm:flex-row gap-3 mt-4">
                            <button type="submit" class="w-full bg-primary-container text-on-primary text-[14px] font-semibold py-3 px-6 rounded-lg hover:bg-primary transition-colors flex justify-center items-center gap-2">
                                Cek Data
                            </button>
                            <a href="<?php echo e(route('login.form')); ?>" class="w-full bg-white border border-outline text-on-surface text-[14px] font-semibold py-3 px-6 rounded-lg hover:bg-gray-50 transition-colors flex justify-center items-center gap-2">
                                Kembali
                            </a>
                        </div>
                    </form>
                <?php endif; ?>

            <?php else: ?>
                <!-- LOGIN FORM -->
                <form action="<?php echo e($action); ?>" method="POST" class="flex flex-col gap-stack-md">
                    <?php echo csrf_field(); ?>
                    <?php if(in_array($loginRole, ['admin', 'superadmin'], true)): ?>
                        <input type="hidden" name="expected_role" value="<?php echo e($loginRole); ?>">
                    <?php endif; ?>
                    <?php
                        $isAdminLoginRole = in_array($loginRole, ['admin', 'superadmin'], true);
                        $loginLabel = $isAdminLoginRole
                            ? ($loginRole === 'superadmin' ? 'ID Super Admin / Email' : 'ID Admin / Email')
                            : 'Alamat Email';
                        $loginPlaceholder = $isAdminLoginRole
                            ? ($loginRole === 'superadmin' ? 'superadmin' : 'admin.aplikasi')
                            : 'contoh@email.com';
                    ?>
                    <div class="flex flex-col gap-2">
                        <label class="text-[14px] font-medium text-on-surface"><?php echo e($loginLabel); ?></label>
                        <input name="login" type="<?php echo e($isAdminLoginRole ? 'text' : 'email'); ?>" value="<?php echo e(old('login', old('username'))); ?>" placeholder="<?php echo e($loginPlaceholder); ?>" required class="bg-surface-container-lowest border border-outline-variant rounded-lg px-4 py-3 text-[16px] text-on-surface focus:border-secondary focus:outline-none input-focus-glow transition-all">
                        <?php $__errorArgs = ['login'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="text-error text-[12px] mt-1"><?php echo e($message); ?></div><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    
                    <div class="flex flex-col gap-2">
                        <div class="flex justify-between items-center">
                            <label class="text-[14px] font-medium text-on-surface">Kata Sandi</label>
                            <?php if(! in_array($loginRole, ['admin', 'superadmin'], true)): ?>
                                <a href="<?php echo e(route('password.request')); ?>" class="text-[12px] text-secondary font-medium hover:underline">Lupa sandi?</a>
                            <?php endif; ?>
                        </div>
                        <input name="password" type="password" required class="bg-surface-container-lowest border border-outline-variant rounded-lg px-4 py-3 text-[16px] text-on-surface focus:border-secondary focus:outline-none input-focus-glow transition-all">
                        <?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="text-error text-[12px] mt-1"><?php echo e($message); ?></div><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>

                    <button type="submit" class="w-full bg-primary-container text-on-primary text-[14px] font-semibold py-3 px-6 rounded-lg hover:bg-primary transition-colors flex justify-center items-center gap-2 mt-4">
                        Masuk Sistem
                        <span class="material-symbols-outlined text-[18px]">arrow_forward</span>
                    </button>
                    
                    <?php if(! in_array($loginRole, ['admin', 'superadmin'], true)): ?>
                        <p class="text-center text-[16px] text-on-surface-variant mt-2">
                            Belum punya akun? <a href="<?php echo e(route('login.form', ['mode' => 'register'])); ?>" class="text-secondary font-medium hover:underline">Daftar di sini</a>
                        </p>
                    <?php endif; ?>
                    <div class="mt-4 text-center">
                        <a href="<?php echo e(route('home')); ?>" class="inline-flex items-center gap-2 text-[14px] text-outline hover:text-on-surface transition-colors">
                            <span class="material-symbols-outlined text-[18px]">arrow_back</span>
                            Kembali ke Beranda
                        </a>
                    </div>
                </form>
            <?php endif; ?>

        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.admin', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\Users\arjun\Documents\Magang\Project Magang\simalam\resources\views/admin/login.blade.php ENDPATH**/ ?>