feat: add initial views and controllers for verification and management modules

This commit is contained in:
Ariyutta
2026-10-07 12:00:05 +07:00
parent 60ae46d69c
commit dc923fb063
50 changed files with 3152 additions and 1345 deletions
+104 -239
View File
@@ -5,283 +5,148 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login | {{ config('app.name') }}</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/simple-notify/dist/simple-notify.css" />
<!-- Font & Icons -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" rel="stylesheet">
<!-- CSS Notifikasi -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/simple-notify/dist/simple-notify.css" />
<!-- App Vite (Tailwind CSS v4 & High-Legibility Tokens) -->
@vite(['resources/css/app.css', 'resources/js/app.js'])
<style>
body {
background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1d4ed8 100%);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
font-family: "Inter", sans-serif;
padding: 20px;
@keyframes float-slow {
0%, 100% { transform: translateY(0px) rotate(0deg); }
50% { transform: translateY(-10px) rotate(1deg); }
}
.login-wrapper {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: 20px;
box-shadow: 0 20px 40px rgba(30, 58, 138, 0.3);
overflow: hidden;
width: 100%;
max-width: 1000px;
border: 1px solid rgba(59, 130, 246, 0.1);
display: flex;
min-height: 600px;
transition: transform 0.3s ease;
@keyframes pulse-glow {
0%, 100% { opacity: 0.35; transform: scale(1); }
50% { opacity: 0.65; transform: scale(1.1); }
}
.login-wrapper:hover {
transform: translateY(-5px);
box-shadow: 0 25px 50px rgba(30, 58, 138, 0.4);
@keyframes card-entrance {
0% { opacity: 0; transform: translateY(28px) scale(0.98); }
100% { opacity: 1; transform: translateY(0) scale(1); }
}
.image-section {
flex: 1;
background: linear-gradient(45deg, #1e3a8a 0%, #3b82f6 50%, #1d4ed8 100%);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 40px;
color: white;
position: relative;
overflow: hidden;
.animate-float-slow {
animation: float-slow 6s ease-in-out infinite;
}
.image-section::before {
content: '';
position: absolute;
inset: 0;
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%25" height="100%25" fill="url(%23grid)"/></svg>');
opacity: 0.3;
.animate-pulse-glow {
animation: pulse-glow 8s ease-in-out infinite;
}
.floating-elements::before,
.floating-elements::after {
content: '';
position: absolute;
background: rgba(255, 255, 255, 0.1);
border-radius: 50%;
animation: float 6s ease-in-out infinite;
.animate-card-entrance {
animation: card-entrance 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.floating-elements::before {
width: 200px;
height: 200px;
top: 10%;
right: -50px;
}
.floating-elements::after {
width: 150px;
height: 150px;
bottom: 20%;
left: -30px;
animation-delay: 3s;
}
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-20px); }
}
.image-content {
position: relative;
z-index: 2;
text-align: center;
}
.image-content .icon {
width: 120px;
height: 120px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 30px;
background: rgba(255, 255, 255, 0.2);
backdrop-filter: blur(10px);
border: 2px solid rgba(255, 255, 255, 0.3);
}
.image-content h1 {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 20px;
}
.image-content p {
font-size: 1.1rem;
opacity: 0.9;
line-height: 1.6;
max-width: 300px;
margin: 0 auto;
}
.form-section {
flex: 1;
padding: 50px 40px;
display: flex;
flex-direction: column;
justify-content: center;
}
.login-header {
text-align: center;
margin-bottom: 40px;
}
.login-header h2 {
color: #1e3a8a;
font-weight: 600;
font-size: 2rem;
margin-bottom: 10px;
}
.login-header p {
color: #3b82f6;
font-size: 14px;
}
.btn-portal {
background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1d4ed8 100%);
border: none;
border-radius: 12px;
padding: 18px;
font-size: 1.1rem;
font-weight: 600;
color: white;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
text-decoration: none;
transition: all 0.3s ease;
letter-spacing: 0.5px;
}
.btn-portal:hover {
transform: translateY(-2px);
box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #1e40af 100%);
color: white;
}
.btn-portal:active {
transform: translateY(0);
}
.sso-info {
margin-top: 30px;
padding: 16px 20px;
background: #eff6ff;
border: 1px solid #bfdbfe;
border-radius: 12px;
text-align: center;
}
.sso-info p {
color: #1e40af;
font-size: 13px;
margin: 0;
line-height: 1.6;
}
@media (max-width: 768px) {
.login-wrapper {
flex-direction: column;
max-width: 500px;
min-height: auto;
}
.image-section {
padding: 30px 20px;
min-height: 250px;
}
.image-content h1 { font-size: 1.8rem; }
.form-section {
padding: 30px 25px;
}
}
@media (max-width: 480px) {
.image-section {
padding: 25px 15px;
min-height: 200px;
}
.form-section { padding: 25px 20px; }
.image-content h1 { font-size: 1.5rem; }
.login-header h2 { font-size: 1.3rem; }
.glass-card {
background: rgba(255, 255, 255, 0.98);
backdrop-filter: blur(24px);
-webkit-backdrop-filter: blur(24px);
}
</style>
</head>
<body>
<div class="login-wrapper">
<div class="image-section">
<div class="floating-elements"></div>
<div class="image-content">
<div class="icon">
<img src="{{ asset('assets/images/logo-untan.png') }}" alt="untan.png" height="80">
<body class="min-h-screen bg-slate-950 font-sans text-slate-800 antialiased flex items-center justify-center p-4 sm:p-6 lg:p-8 relative overflow-x-hidden selection:bg-blue-600 selection:text-white">
<!-- Ambient Glowing Orbs Background -->
<div class="fixed inset-0 pointer-events-none overflow-hidden z-0">
<div class="absolute -top-40 -left-40 w-96 h-96 sm:w-[520px] sm:h-[520px] bg-blue-600/25 rounded-full blur-3xl animate-pulse-glow"></div>
<div class="absolute -bottom-40 -right-40 w-96 h-96 sm:w-[580px] sm:h-[580px] bg-indigo-600/20 rounded-full blur-3xl animate-pulse-glow" style="animation-delay: -3s;"></div>
<div class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-80 h-80 bg-blue-500/15 rounded-full blur-3xl"></div>
<div class="absolute inset-0 bg-[radial-gradient(#334155_1px,transparent_1px)] [background-size:24px_24px] opacity-25"></div>
</div>
<!-- Main Login Card Container (Kompak & Proporsional) -->
<div class="w-full max-w-[740px] glass-card rounded-2xl shadow-2xl shadow-blue-950/40 border border-white/20 overflow-hidden relative z-10 animate-card-entrance grid grid-cols-1 md:grid-cols-12 min-h-[460px]">
<!-- Sisi Kiri: Brand & Visual Hero (5 Kolom) -->
<div class="md:col-span-5 relative bg-gradient-to-br from-blue-600 via-blue-700 to-indigo-900 p-6 sm:p-7 flex flex-col justify-between overflow-hidden text-white">
<div class="absolute -top-16 -right-16 w-48 h-48 bg-white/10 rounded-full blur-xl pointer-events-none"></div>
<div class="absolute -bottom-16 -left-16 w-52 h-52 bg-blue-400/20 rounded-full blur-xl pointer-events-none"></div>
<div class="absolute inset-0 bg-[radial-gradient(rgba(255,255,255,0.12)_1px,transparent_1px)] [background-size:16px_16px] pointer-events-none"></div>
<!-- Center Brand Section -->
<div class="relative z-10 my-6 sm:my-auto text-center flex flex-col items-center">
<div class="w-20 h-20 max-w-[80px] max-h-[80px] rounded-2xl bg-white/15 backdrop-blur-md p-3 flex items-center justify-center border border-white/30 shadow-lg shadow-blue-950/20 mb-3 animate-float-slow group shrink-0">
<img src="{{ asset('assets/images/logo-untan.png') }}" alt="Logo UNTAN" class="h-full w-full max-h-full max-w-full object-contain filter drop-shadow-md transition-transform duration-300 group-hover:scale-105">
</div>
<h1>Verifikator</h1>
<p>Sistem Verifikasi Remunerasi Universitas Tanjungpura</p>
<h1 class="text-xl sm:text-2xl font-extrabold tracking-tight mb-1 text-white">Verifikator</h1>
<p class="text-xs font-medium text-blue-100/90 leading-relaxed max-w-[200px]">
Sistem Verifikasi Remunerasi<br>Universitas Tanjungpura
</p>
<div class="mt-4 inline-flex items-center gap-1.5 bg-white/10 backdrop-blur-md border border-white/20 px-3 py-1 rounded-full text-[11px] text-blue-50 font-medium shadow-2xs">
<i class="fas fa-shield-halved text-emerald-300 text-[10px]"></i>
<span>Single Sign-On Terintegrasi</span>
</div>
</div>
<div class="relative z-10 text-center md:text-left text-[10px] text-blue-200/70 border-t border-white/10 pt-3">
&copy; {{ date('Y') }} Universitas Tanjungpura
</div>
</div>
<div class="form-section">
<div class="login-header">
<h2>Selamat Datang</h2>
<p>Gunakan akun Portal Untan Anda untuk masuk</p>
</div>
<!-- Sisi Kanan: Single Sign-On Action (7 Kolom) -->
<div class="md:col-span-7 p-6 sm:p-8 flex flex-col justify-center bg-white relative">
<div class="max-w-[340px] w-full mx-auto">
<div class="mb-6">
<h2 class="text-xl sm:text-2xl font-black text-slate-900 tracking-tight mb-1">
Selamat Datang
</h2>
<p class="text-xs sm:text-sm text-slate-500 font-medium">
Gunakan akun resmi Portal Untan Anda untuk masuk ke sistem
</p>
</div>
<a href="https://portal.untan.ac.id/login?next={{ urlencode(url('/dashboard')) }}"
class="btn-portal">
<i class="fas fa-university fa-lg"></i>
Masuk dengan Portal Untan
</a>
<div class="space-y-4">
<a href="https://portal.untan.ac.id/login?next={{ urlencode(url('/dashboard')) }}"
class="w-full py-2.5 px-4 text-xs sm:text-sm font-bold text-white bg-blue-600 hover:bg-blue-700 active:bg-blue-800 rounded-lg shadow-md shadow-blue-600/30 hover:shadow-blue-600/40 hover:-translate-y-0.5 active:translate-y-0 transition-all duration-200 flex items-center justify-center gap-2.5 group">
<i class="fas fa-university text-sm transition-transform group-hover:scale-110"></i>
<span>Masuk dengan Portal Untan</span>
</a>
<div class="sso-info">
<p>
<i class="fas fa-info-circle"></i>
Anda akan diarahkan ke <strong>portal.untan.ac.id</strong> untuk login
menggunakan akun Google <strong>@untan.ac.id</strong>
</p>
<div class="rounded-xl bg-blue-50/70 border border-blue-200/80 p-3.5 text-xs text-slate-600 leading-relaxed flex items-start gap-2.5">
<i class="fas fa-circle-info text-blue-600 text-sm mt-0.5 shrink-0"></i>
<div>
Anda akan diarahkan secara aman ke <strong class="text-blue-900 font-bold">portal.untan.ac.id</strong> untuk proses autentikasi menggunakan akun resmi Google <strong class="text-blue-900 font-bold">@untan.ac.id</strong>.
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Scripts -->
<script src="https://cdn.jsdelivr.net/npm/simple-notify/dist/simple-notify.min.js"></script>
<script>
function showInfo(title, text) {
new Notify({ status: 'info', title, text, effect: 'fade', autoclose: true, autotimeout: 5000, position: 'right top' });
new Notify({
status: 'info',
title,
text,
effect: 'fade',
autoclose: true,
autotimeout: 5000,
position: 'right top'
});
}
window.addEventListener('load', function () {
const wrapper = document.querySelector('.login-wrapper');
wrapper.style.opacity = '0';
wrapper.style.transform = 'translateY(30px)';
setTimeout(() => {
wrapper.style.transition = 'all 0.8s ease';
wrapper.style.opacity = '1';
wrapper.style.transform = 'translateY(0)';
}, 100);
});
@if (session('info'))
showInfo('Informasi', '{{ session('info') }}');
@endif
@if (session('error'))
new Notify({ status: 'error', title: 'Error', text: '{{ session('error') }}', effect: 'fade', autoclose: true, autotimeout: 5000, position: 'right top' });
@endif
</script>
</body>
+265 -486
View File
@@ -6,456 +6,295 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>Login | {{ config('app.name') }}</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
<!-- CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/simple-notify/dist/simple-notify.css" />
<!-- Font & Icons -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap"
rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" rel="stylesheet">
<!-- CSS Notifikasi -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/simple-notify/dist/simple-notify.css" />
<!-- App Vite (Tailwind CSS v4 & High-Legibility Tokens) -->
@vite(['resources/css/app.css', 'resources/js/app.js'])
<style>
body {
background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1d4ed8 100%);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
font-family: "Inter", sans-serif;
padding: 20px;
}
.login-wrapper {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: 20px;
box-shadow: 0 20px 40px rgba(30, 58, 138, 0.3);
overflow: hidden;
width: 100%;
max-width: 1000px;
transition: transform 0.3s ease;
border: 1px solid rgba(59, 130, 246, 0.1);
display: flex;
min-height: 600px;
}
.login-wrapper:hover {
transform: translateY(-5px);
box-shadow: 0 25px 50px rgba(30, 58, 138, 0.4);
}
/* Image Section */
.image-section {
flex: 1;
background: linear-gradient(45deg, #1e3a8a 0%, #3b82f6 50%, #1d4ed8 100%);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 40px;
color: white;
position: relative;
overflow: hidden;
}
.image-section::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
opacity: 0.3;
}
.image-content {
position: relative;
z-index: 2;
text-align: center;
}
.image-content .icon {
font-size: 5rem;
margin-bottom: 30px;
background: rgba(255, 255, 255, 0.2);
width: 120px;
height: 120px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 30px;
backdrop-filter: blur(10px);
border: 2px solid rgba(255, 255, 255, 0.3);
}
.image-content h1 {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 20px;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.image-content p {
font-size: 1.1rem;
opacity: 0.9;
line-height: 1.6;
max-width: 300px;
margin: 0 auto;
}
.floating-elements {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
overflow: hidden;
z-index: 1;
}
.floating-elements::before,
.floating-elements::after {
content: '';
position: absolute;
background: rgba(255, 255, 255, 0.1);
border-radius: 50%;
animation: float 6s ease-in-out infinite;
}
.floating-elements::before {
width: 200px;
height: 200px;
top: 10%;
right: -50px;
animation-delay: 0s;
}
.floating-elements::after {
width: 150px;
height: 150px;
bottom: 20%;
left: -30px;
animation-delay: 3s;
}
@keyframes float {
0%,
100% {
transform: translateY(0px);
/* Modern Micro-Animations & Glow Effects */
@keyframes float-slow {
0%, 100% {
transform: translateY(0px) rotate(0deg);
}
50% {
transform: translateY(-20px);
transform: translateY(-10px) rotate(1deg);
}
}
/* Form Section */
.form-section {
flex: 1;
padding: 50px 40px;
display: flex;
flex-direction: column;
justify-content: center;
}
.login-header {
text-align: center;
margin-bottom: 30px;
}
.login-header h2 {
color: #1e3a8a;
font-weight: 600;
margin-bottom: 10px;
font-size: 2rem;
}
.login-header p {
color: #3b82f6;
font-size: 14px;
margin-bottom: 0;
}
.form-floating {
position: relative;
margin-bottom: 20px;
}
.form-floating input {
border: 2px solid #dbeafe;
border-radius: 12px;
padding: 15px 20px;
transition: all 0.3s ease;
background: #fafbfc;
}
.form-floating input:focus {
border-color: #3b82f6;
box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
transform: scale(1.02);
background: white;
}
.form-floating label {
color: #60a5fa;
font-size: 14px;
}
.btn-login {
background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1d4ed8 100%);
border: none;
border-radius: 12px;
padding: 15px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1px;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.btn-login:hover {
transform: translateY(-2px);
box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #1e40af 100%);
}
.btn-login:active {
transform: translateY(0);
}
.divider {
text-align: center;
margin: 25px 0;
position: relative;
}
.divider::before {
content: '';
position: absolute;
top: 50%;
left: 0;
right: 0;
height: 1px;
background: #dbeafe;
}
.divider span {
background: rgba(255, 255, 255, 0.95);
padding: 0 15px;
color: #60a5fa;
font-size: 14px;
}
.social-login {
display: flex;
gap: 10px;
}
.btn-social {
flex: 1;
padding: 12px;
border: 2px solid #dbeafe;
border-radius: 12px;
background: white;
transition: all 0.3s ease;
color: #3b82f6;
}
.btn-social:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
border-color: #3b82f6;
background: #f0f9ff;
}
.password-toggle {
position: absolute;
right: 15px;
top: 50%;
transform: translateY(-50%);
cursor: pointer;
color: #60a5fa;
z-index: 10;
}
.password-toggle:hover {
color: #3b82f6;
}
.input-error {
border-color: #dc3545 !important;
box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}
/* Responsive Design */
@media (max-width: 992px) {
.login-wrapper {
max-width: 800px;
@keyframes pulse-glow {
0%, 100% {
opacity: 0.35;
transform: scale(1);
}
.image-content h1 {
font-size: 2rem;
}
.image-content .icon {
font-size: 4rem;
width: 100px;
height: 100px;
50% {
opacity: 0.65;
transform: scale(1.1);
}
}
@media (max-width: 768px) {
body {
padding: 10px;
}
.login-wrapper {
flex-direction: column;
max-width: 500px;
min-height: auto;
}
.image-section {
padding: 30px 20px;
min-height: 250px;
}
.image-content h1 {
font-size: 1.8rem;
}
.image-content .icon {
font-size: 3rem;
width: 80px;
height: 80px;
margin-bottom: 20px;
}
.image-content p {
font-size: 1rem;
}
.form-section {
padding: 30px 25px;
}
.login-header h2 {
font-size: 1.5rem;
}
}
@media (max-width: 480px) {
.login-wrapper {
max-width: 100%;
}
.image-section {
padding: 25px 15px;
min-height: 200px;
}
.form-section {
padding: 25px 20px;
}
.image-content h1 {
font-size: 1.5rem;
}
.login-header h2 {
font-size: 1.3rem;
}
}
/* Loading Animation */
@keyframes spin {
@keyframes card-entrance {
0% {
transform: rotate(0deg);
opacity: 0;
transform: translateY(28px) scale(0.98);
}
100% {
transform: rotate(360deg);
opacity: 1;
transform: translateY(0) scale(1);
}
}
.fa-spinner {
animation: spin 1s linear infinite;
@keyframes shake {
0%, 100% { transform: translateX(0); }
20%, 60% { transform: translateX(-5px); }
40%, 80% { transform: translateX(5px); }
}
.animate-float-slow {
animation: float-slow 6s ease-in-out infinite;
}
.animate-pulse-glow {
animation: pulse-glow 8s ease-in-out infinite;
}
.animate-card-entrance {
animation: card-entrance 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
/* Glassmorphism */
.glass-card {
background: rgba(255, 255, 255, 0.98);
backdrop-filter: blur(24px);
-webkit-backdrop-filter: blur(24px);
}
/* Slider Captcha Modern Overrides */
#slider-captcha-container .slider-captcha-wrapper {
border-radius: 14px;
}
#slider-captcha-container .slider-captcha-canvas-wrapper {
border: 1.5px solid #e2e8f0 !important;
border-radius: 14px !important;
box-shadow: 0 3px 10px -2px rgba(15, 23, 42, 0.06);
overflow: hidden;
background: #f8fafc !important;
}
#slider-captcha-container .slider-control {
margin-top: 14px !important;
height: 44px !important;
background: #f8fafc !important;
border: 1.5px solid #e2e8f0 !important;
border-radius: 12px !important;
transition: all 0.2s ease;
}
#slider-captcha-container .slider-control:hover {
border-color: #93c5fd !important;
background: #eff6ff !important;
}
#slider-captcha-container .slider-track {
color: #475569 !important;
font-size: 13px !important;
font-weight: 600 !important;
letter-spacing: 0.01em;
}
#slider-captcha-container .slider-button {
width: 44px !important;
height: 44px !important;
border-radius: 10px !important;
background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s !important;
}
#slider-captcha-container .slider-button:hover {
box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45) !important;
}
#slider-captcha-container .slider-refresh {
margin-top: 10px !important;
padding: 9px 16px !important;
background: #ffffff !important;
border: 1.5px solid #e2e8f0 !important;
border-radius: 12px !important;
color: #2563eb !important;
font-weight: 600 !important;
font-size: 12.5px !important;
transition: all 0.2s ease !important;
}
#slider-captcha-container .slider-refresh:hover {
background: #eff6ff !important;
border-color: #bfdbfe !important;
transform: translateY(-1px);
color: #1d4ed8 !important;
}
/* Input error effect */
.input-error {
border-color: #ef4444 !important;
box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
animation: shake 0.35s ease;
}
</style>
</head>
<body>
<div class="login-wrapper">
<!-- Image Section -->
<div class="image-section">
<div class="floating-elements"></div>
<div class="image-content">
<div class="icon">
{{-- <i class="fas fa-shield-alt"></i> --}}
<img src="{{ asset('assets/images/logo-untan.png') }}" alt="untan.png" height="80">
<body class="min-h-screen bg-slate-950 font-sans text-slate-800 antialiased flex items-center justify-center p-4 sm:p-6 lg:p-8 relative overflow-x-hidden selection:bg-blue-600 selection:text-white">
<!-- Ambient Glowing Orbs Background -->
<div class="fixed inset-0 pointer-events-none overflow-hidden z-0">
<!-- Top Left Cyan/Blue Glow -->
<div class="absolute -top-40 -left-40 w-96 h-96 sm:w-[520px] sm:h-[520px] bg-blue-600/25 rounded-full blur-3xl animate-pulse-glow"></div>
<!-- Bottom Right Indigo/Navy Glow -->
<div class="absolute -bottom-40 -right-40 w-96 h-96 sm:w-[580px] sm:h-[580px] bg-indigo-600/20 rounded-full blur-3xl animate-pulse-glow" style="animation-delay: -3s;"></div>
<!-- Center Subtle Blue Ambient -->
<div class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-80 h-80 bg-blue-500/15 rounded-full blur-3xl"></div>
<!-- Grid Pattern Overlay -->
<div class="absolute inset-0 bg-[radial-gradient(#334155_1px,transparent_1px)] [background-size:24px_24px] opacity-25"></div>
</div>
<!-- Main Login Card Container (Kompak & Proporsional) -->
<div class="w-full max-w-[740px] glass-card rounded-2xl shadow-2xl shadow-blue-950/40 border border-white/20 overflow-hidden relative z-10 animate-card-entrance grid grid-cols-1 md:grid-cols-12 min-h-[480px]">
<!-- Sisi Kiri: Brand & Visual Hero (5 Kolom) -->
<div class="md:col-span-5 relative bg-gradient-to-br from-blue-600 via-blue-700 to-indigo-900 p-6 sm:p-7 flex flex-col justify-between overflow-hidden text-white">
<!-- Decorative Vector Background -->
<div class="absolute -top-16 -right-16 w-48 h-48 bg-white/10 rounded-full blur-xl pointer-events-none"></div>
<div class="absolute -bottom-16 -left-16 w-52 h-52 bg-blue-400/20 rounded-full blur-xl pointer-events-none"></div>
<div class="absolute inset-0 bg-[radial-gradient(rgba(255,255,255,0.12)_1px,transparent_1px)] [background-size:16px_16px] pointer-events-none"></div>
<!-- Center Brand Section -->
<div class="relative z-10 my-6 sm:my-auto text-center flex flex-col items-center">
<!-- Logo Avatar with Floating Micro-animation -->
<div class="w-20 h-20 max-w-[80px] max-h-[80px] rounded-2xl bg-white/15 backdrop-blur-md p-3 flex items-center justify-center border border-white/30 shadow-lg shadow-blue-950/20 mb-3 animate-float-slow group shrink-0">
<img src="{{ asset('assets/images/logo-untan.png') }}" alt="Logo UNTAN" class="h-full w-full max-h-full max-w-full object-contain filter drop-shadow-md transition-transform duration-300 group-hover:scale-105">
</div>
<h1>Verifikator</h1>
<p>Sistem Verifikasi Remunerasi Universitas Tanjungpura</p>
<h1 class="text-xl sm:text-2xl font-extrabold tracking-tight mb-1 text-white">Verifikator</h1>
<p class="text-xs font-medium text-blue-100/90 leading-relaxed max-w-[200px]">
Sistem Verifikasi Remunerasi<br>Universitas Tanjungpura
</p>
<!-- Floating Info Pill -->
<div class="mt-4 inline-flex items-center gap-1.5 bg-white/10 backdrop-blur-md border border-white/20 px-3 py-1 rounded-full text-[11px] text-blue-50 font-medium shadow-2xs">
<i class="fas fa-shield-halved text-emerald-300 text-[10px]"></i>
<span>Aman & Terintegrasi</span>
</div>
</div>
<!-- Bottom Footer Note -->
<div class="relative z-10 text-center md:text-left text-[10px] text-blue-200/70 border-t border-white/10 pt-3">
&copy; {{ date('Y') }} Universitas Tanjungpura
</div>
</div>
<!-- Form Section -->
<div class="form-section">
<div class="login-header">
<h2>Selamat Datang</h2>
<p>Silakan masuk ke akun Anda untuk melanjutkan</p>
</div>
<form id="loginForm">
<div class="form-floating">
<input type="text" class="form-control" id="username" placeholder="Masukkan NIP"
name="username">
<label for="username"><i class="fas fa-user"></i> NIP</label>
<!-- Sisi Kanan: Form Login (7 Kolom) -->
<div class="md:col-span-7 p-6 sm:p-7 flex flex-col justify-center bg-white relative">
<div class="max-w-[320px] w-full mx-auto">
<!-- Form Header -->
<div class="mb-4">
<h2 class="text-xl sm:text-2xl font-black text-slate-900 tracking-tight mb-1">
Selamat Datang
</h2>
<p class="text-xs text-slate-500 font-medium">
Silakan masuk ke akun Anda untuk melanjutkan
</p>
</div>
<div class="form-floating position-relative">
<input type="password" class="form-control" id="password" placeholder="Masukkan Password"
name="password">
<label for="password"><i class="fas fa-lock"></i> Password</label>
<span class="password-toggle" onclick="togglePassword()">
<i class="fas fa-eye" id="eyeIcon"></i>
</span>
<!-- Auth Form -->
<form id="loginForm" class="space-y-3">
<!-- Input NIP -->
<div>
<label for="username" class="block text-[11px] font-bold text-slate-600 uppercase tracking-wider mb-1">
NIP Pegawai
</label>
<div class="relative rounded-lg shadow-2xs">
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-slate-400">
<i class="fas fa-id-badge text-xs"></i>
</div>
<input type="text" id="username" name="username" placeholder="Masukkan 18 Digit NIP"
class="w-full pl-9 pr-3 py-2 text-xs sm:text-sm bg-slate-50/90 border border-slate-200 rounded-lg font-medium text-slate-800 placeholder-slate-400 focus:bg-white focus:outline-none focus:border-blue-600 focus:ring-3 focus:ring-blue-100 transition-all duration-200">
</div>
</div>
<!-- Input Password -->
<div>
<label for="password" class="block text-[11px] font-bold text-slate-600 uppercase tracking-wider mb-1">
Password
</label>
<div class="relative rounded-lg shadow-2xs">
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-slate-400">
<i class="fas fa-lock text-xs"></i>
</div>
<input type="password" id="password" name="password" placeholder="Masukkan Password Akun"
class="w-full pl-9 pr-9 py-2 text-xs sm:text-sm bg-slate-50/90 border border-slate-200 rounded-lg font-medium text-slate-800 placeholder-slate-400 focus:bg-white focus:outline-none focus:border-blue-600 focus:ring-3 focus:ring-blue-100 transition-all duration-200">
<button type="button" onclick="togglePassword()" class="absolute inset-y-0 right-0 pr-3 flex items-center justify-center bg-transparent border-none text-slate-400 hover:text-blue-600 transition cursor-pointer focus:outline-none" title="Lihat / Sembunyikan Password">
<i class="fas fa-eye text-xs" id="eyeIcon"></i>
</button>
</div>
</div>
<!-- Slider Captcha Container -->
<div class="pt-0.5">
<div id="slider-captcha-container" class="w-full overflow-hidden"></div>
</div>
<!-- Tombol Masuk -->
<div class="pt-1">
<button type="submit" id="loginButton"
class="btn-login w-full py-2.5 px-4 text-xs sm:text-sm font-bold text-white bg-blue-600 hover:bg-blue-700 active:bg-blue-800 disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-blue-600 rounded-lg shadow-md shadow-blue-600/30 hover:shadow-blue-600/40 hover:-translate-y-0.5 active:translate-y-0 transition-all duration-200 flex items-center justify-center gap-2">
<i class="fas fa-right-to-bracket text-xs"></i>
<span>Masuk ke Sistem</span>
</button>
</div>
</form>
<!-- Divider Atau -->
<div class="relative my-4">
<div class="absolute inset-0 flex items-center">
<div class="w-full border-t border-slate-200"></div>
</div>
<div class="relative flex justify-center text-[11px]">
<span class="px-2.5 bg-white text-slate-400 font-semibold uppercase tracking-wider">
atau masuk dengan
</span>
</div>
</div>
<!-- Slider Captcha -->
<div id="slider-captcha-container" style="margin-bottom: 20px; width: 100%;"></div>
<button type="submit" class="btn btn-login btn-primary w-100" id="loginButton">
<i class="fas fa-sign-in-alt"></i> Masuk
</button>
</form>
<div class="divider">
<span>atau</span>
</div>
<div class="social-login">
<button type="button" class="btn btn-social btn-google" onclick="loginWithGoogle()">
<i class="fab fa-google"></i> Google
</button>
<!-- Single Sign On / Google Button -->
<div>
<button type="button" onclick="loginWithGoogle()"
class="w-full py-2 px-3 text-xs font-bold text-slate-700 bg-white hover:bg-slate-50 active:bg-slate-100 border border-slate-200 hover:border-slate-300 rounded-lg shadow-2xs hover:shadow-xs transition-all duration-200 flex items-center justify-center gap-2 group">
<svg class="w-3.5 h-3.5" viewBox="0 0 24 24">
<path fill="#4285F4" d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z" />
<path fill="#34A853" d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z" />
<path fill="#FBBC05" d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.06H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.94l2.85-2.22.81-.63z" />
<path fill="#EA4335" d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.06l3.66 2.84c.87-2.6 3.3-4.52 6.16-4.52z" />
</svg>
<span class="group-hover:text-blue-600 transition-colors">Akun Google UNTAN</span>
</button>
</div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.0/js/bootstrap.bundle.min.js"></script>
<!-- Scripts -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<!-- JS -->
<script src="https://cdn.jsdelivr.net/npm/simple-notify/dist/simple-notify.min.js"></script>
<!-- Slider Captcha -->
<script src="{{ asset('assets/js/slider-captcha.js') }}?v={{ time() }}"></script>
<script>
@@ -486,7 +325,6 @@
new Notify(config);
}
// Fungsi khusus untuk notifikasi sukses
function showSuccess(title = 'Success', text = 'Operation completed successfully') {
showNotification({
status: 'success',
@@ -495,7 +333,6 @@
});
}
// Fungsi khusus untuk notifikasi error
function showError(title = 'Error', text = 'An error occurred') {
showNotification({
status: 'error',
@@ -505,7 +342,6 @@
});
}
// Fungsi khusus untuk notifikasi warning
function showWarning(title = 'Warning', text = 'Please check your input') {
showNotification({
status: 'warning',
@@ -514,7 +350,6 @@
});
}
// Fungsi khusus untuk notifikasi info
function showInfo(title = 'Information', text = 'Here is some information') {
showNotification({
status: 'info',
@@ -523,12 +358,10 @@
});
}
// Fungsi untuk menangani error dari jQuery AJAX
function handleAjaxError(xhr, status, error) {
let errorMessage = 'An unexpected error occurred';
let errorTitle = 'Error';
// Fungsi helper untuk extract message dari response
function getMessageFromResponse(xhr) {
try {
const responseData = JSON.parse(xhr.responseText);
@@ -538,7 +371,6 @@
}
}
// Parse error berdasarkan status code
switch (xhr.status) {
case 400:
errorTitle = 'Bad Request';
@@ -558,7 +390,6 @@
break;
case 422:
errorTitle = 'Validation Error';
// Coba parse validation errors dari response
try {
const responseData = JSON.parse(xhr.responseText);
if (responseData.errors) {
@@ -578,15 +409,10 @@
errorMessage = getMessageFromResponse(xhr) || 'Internal server error. Please try again later.';
break;
default:
// Coba parse pesan error dari response
try {
const responseData = JSON.parse(xhr.responseText);
if (responseData.message) {
errorMessage = responseData.message;
}
if (responseData.title) {
errorTitle = responseData.title;
}
if (responseData.message) errorMessage = responseData.message;
if (responseData.title) errorTitle = responseData.title;
} catch (e) {
errorMessage = getMessageFromResponse(xhr) || `Error ${xhr.status}: ${error}`;
}
@@ -594,17 +420,14 @@
showError(errorTitle, errorMessage);
}
// Fungsi untuk reset form error state
function resetFormErrors() {
$('.form-control').removeClass('input-error');
$('input').removeClass('input-error');
}
// Fungsi untuk highlight field error
function highlightFieldError(fieldName) {
$(`#${fieldName}`).addClass('input-error');
}
// Fungsi toggle password
function togglePassword() {
const passwordInput = document.getElementById('password');
const eyeIcon = document.getElementById('eyeIcon');
@@ -620,53 +443,39 @@
}
}
// Setup CSRF token untuk Laravel
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
// Initialize Slider Captcha
let sliderCaptcha;
// Event handler untuk form login
$(document).ready(function() {
// Get container width for responsive captcha
const containerWidth = $('#loginForm').width();
const containerWidth = Math.min($('#loginForm').width() || 310, 310);
// Initialize slider captcha
sliderCaptcha = new SliderCaptcha({
container: '#slider-captcha-container',
width: containerWidth || 400,
height: 150,
width: containerWidth,
height: 145,
onSuccess: function(token) {
console.log('Captcha verified:', token);
// Enable login button
$('#loginButton').prop('disabled', false);
},
onFail: function() {
console.log('Captcha verification failed');
// Keep login button disabled
$('#loginButton').prop('disabled', true);
}
});
// Disable login button initially
$('#loginButton').prop('disabled', true);
$('#loginForm').on('submit', function(e) {
e.preventDefault();
// Reset error states
resetFormErrors();
// Ambil data form
const formData = new FormData(this);
const username = formData.get('username');
const password = formData.get('password');
// Validasi client-side
if (!username) {
showError('Validation Error', 'NIP tidak boleh kosong');
highlightFieldError('username');
@@ -679,22 +488,18 @@
return;
}
// Check captcha verification
if (!sliderCaptcha.isVerified()) {
showError('Validation Error', 'Silakan selesaikan verifikasi captcha terlebih dahulu');
return;
}
// Add captcha token to form data
formData.append('captcha_token', sliderCaptcha.getToken());
// Ubah tombol menjadi loading
const loginBtn = $('.btn-login');
const originalBtnText = loginBtn.html();
const loginBtn = $('#loginButton');
const originalHtml = loginBtn.html();
loginBtn.html('<i class="fas fa-spinner fa-spin"></i> Memproses...');
loginBtn.prop('disabled', true);
// Kirim request AJAX
$.ajax({
url: "{{ route('authenticated') }}",
method: 'POST',
@@ -702,22 +507,17 @@
processData: false,
contentType: false,
success: function(response, status, xhr) {
// Reset tombol
loginBtn.html(originalBtnText);
loginBtn.html(originalHtml);
loginBtn.prop('disabled', false);
// Handle JSON response
if (response.success) {
showSuccess(
'Login Berhasil',
response.message ||
'Selamat datang! Anda akan diarahkan ke dashboard.'
response.message || 'Selamat datang! Anda akan diarahkan ke dashboard.'
);
// Redirect setelah 1.5 detik
setTimeout(function() {
window.location.href = response.redirect;
}, 2000);
}, 1500);
} else {
showError(
'Login Gagal',
@@ -726,14 +526,10 @@
}
},
error: function(xhr, status, error) {
// Reset tombol
loginBtn.html(originalBtnText);
loginBtn.html(originalHtml);
loginBtn.prop('disabled', false);
// Handle AJAX error
handleAjaxError(xhr, status, error);
// Highlight field yang error untuk 422 (validation)
if (xhr.status === 422) {
try {
const responseData = JSON.parse(xhr.responseText);
@@ -742,16 +538,13 @@
highlightFieldError(field);
});
}
} catch (e) {
// Ignore parsing error
}
} catch (e) {}
}
}
});
});
// Remove error class when user types
$('.form-control').on('input', function() {
$('input').on('input', function() {
$(this).removeClass('input-error');
});
});
@@ -760,20 +553,6 @@
window.location.href = "{{ route('auth.google') }}";
}
// Animasi saat halaman dimuat
window.addEventListener('load', function() {
const container = document.querySelector('.login-wrapper');
container.style.opacity = '0';
container.style.transform = 'translateY(30px)';
setTimeout(() => {
container.style.transition = 'all 0.8s ease';
container.style.opacity = '1';
container.style.transform = 'translateY(0)';
}, 100);
});
// Flash Message Alert dari Session
@if (session('error'))
showError('Akses Ditolak', '{{ session('error') }}');
@endif