MIF_E31230887/resources/views/Auth/login-user.blade.php

68 lines
3.5 KiB
PHP

@extends('layouts.guest')
@section('title', 'Login Pengunjung')
@section('content')
<div class="min-h-[70vh] flex items-center justify-center py-16">
<div class="w-full max-w-md px-4">
<div class="text-center mb-8">
<div class="w-14 h-14 bg-gradient-to-br from-primary-500 to-primary-700 rounded-2xl flex items-center justify-center mx-auto shadow-xl shadow-primary-200 mb-4">
<i class="fas fa-user text-white text-xl"></i>
</div>
<h2 class="text-2xl font-bold text-gray-900">Login Pengunjung</h2>
<p class="text-gray-400 text-sm mt-2">Masuk dengan akun anggota Anda</p>
</div>
<div class="bg-white rounded-3xl p-8 border border-gray-100 shadow-xl">
@if ($errors->any())
<div class="mb-6 bg-red-50 border border-red-100 text-red-600 text-xs p-4 rounded-xl">
<ul class="list-disc pl-4 space-y-1">
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
<form action="{{ route('login.user.process') }}" method="POST" class="space-y-5">
@csrf
<div>
<label class="block text-gray-600 text-xs font-semibold mb-2 uppercase tracking-wider">Email</label>
<div class="relative">
<div class="absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none">
<i class="fas fa-envelope text-gray-300 text-sm"></i>
</div>
<input type="email" name="email" value="{{ old('email') }}"
class="w-full pl-11 pr-4 py-3.5 rounded-xl border border-gray-200 text-sm focus:ring-2 focus:ring-primary-500 focus:border-primary-500 transition"
placeholder="email@example.com" required>
</div>
</div>
<div>
<label class="block text-gray-600 text-xs font-semibold mb-2 uppercase tracking-wider">Password</label>
<div class="relative">
<div class="absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none">
<i class="fas fa-lock text-gray-300 text-sm"></i>
</div>
<input type="password" name="password"
class="w-full pl-11 pr-4 py-3.5 rounded-xl border border-gray-200 text-sm focus:ring-2 focus:ring-primary-500 focus:border-primary-500 transition"
placeholder="••••••••" required>
</div>
</div>
<button type="submit"
class="w-full py-3.5 bg-gradient-to-r from-primary-500 to-primary-600 hover:from-primary-600 hover:to-primary-700 text-white font-bold rounded-xl transition-all shadow-lg shadow-primary-200 active:scale-[0.98] text-sm">
<i class="fas fa-sign-in-alt mr-2"></i> Login
</button>
</form>
<div class="text-center mt-6 text-sm">
<span class="text-gray-400">Belum punya akun?</span>
<a href="{{ route('register') }}" class="text-primary-600 font-semibold hover:text-primary-700 ml-1">Daftar Sekarang</a>
</div>
</div>
</div>
</div>
@endsection