File size: 14,293 Bytes
839b8ab
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5009de1
839b8ab
5009de1
839b8ab
5009de1
 
 
 
 
 
 
839b8ab
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5009de1
457c2ea
5009de1
457c2ea
 
 
 
5009de1
457c2ea
839b8ab
 
5009de1
839b8ab
5009de1
839b8ab
457c2ea
 
 
 
 
839b8ab
 
 
 
 
 
 
 
457c2ea
839b8ab
 
 
 
 
 
457c2ea
 
 
 
 
 
839b8ab
457c2ea
5009de1
 
 
457c2ea
 
 
5009de1
 
457c2ea
 
5009de1
839b8ab
 
5009de1
839b8ab
5009de1
839b8ab
 
 
 
 
 
 
 
 
5009de1
 
839b8ab
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
457c2ea
 
 
 
 
 
839b8ab
 
 
 
 
 
 
 
 
 
 
 
 
 
 
457c2ea
 
 
839b8ab
457c2ea
839b8ab
 
 
 
 
 
 
 
457c2ea
 
839b8ab
457c2ea
839b8ab
 
457c2ea
 
 
 
 
 
 
 
 
 
 
 
839b8ab
 
457c2ea
 
 
 
 
 
 
 
 
 
 
 
839b8ab
 
457c2ea
839b8ab
457c2ea
 
839b8ab
457c2ea
 
 
 
 
 
 
 
 
 
 
 
 
 
839b8ab
457c2ea
 
 
 
 
 
 
 
 
 
 
839b8ab
457c2ea
 
 
 
 
 
 
 
 
 
 
839b8ab
 
 
457c2ea
839b8ab
 
457c2ea
 
 
 
 
 
 
 
 
 
 
 
 
839b8ab
457c2ea
 
 
 
 
 
 
 
 
 
839b8ab
 
 
 
457c2ea
 
 
 
 
 
 
 
 
 
 
 
 
839b8ab
457c2ea
 
 
 
 
 
 
 
 
 
839b8ab
457c2ea
839b8ab
 
457c2ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
839b8ab
 
457c2ea
839b8ab
cfd1217
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>PESO Registry Portal</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <style>
        :root {
            --mint-green: #98FF98;
            --mint-dark: #79C779;
            --mint-light: #D1FFD1;
            --mint-transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #E0F7FA 0%, #B2EBF2 25%, #80DEEA 50%, #4DD0E1 75%, #26C6DA 100%);
            min-height: 100vh;
            color: #263238;
        }
        .auth-card {
            background: rgba(255,255,255,0.9) !important;
        }
        .text-muted {
            color: #546E7A !important;
        }
@keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }
        .auth-card {
            border-radius: 20px;
            box-shadow: 0 15px 35px rgba(0,0,0,0.1);
            transition: var(--mint-transition);
            background: rgba(255,255,255,0.95);
            backdrop-filter: blur(5px);
            border: 1px solid rgba(255,255,255,0.2);
        }
        .auth-card:hover {
            transform: translateY(-8px) scale(1.01);
            box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        }
        .btn-mint {
            background: linear-gradient(135deg, #80DEEA 0%, #4DB6AC 100%);
            border: none;
            color: white;
            font-weight: 600;
            letter-spacing: 0.5px;
            border-radius: 50px;
            padding: 12px 28px;
            box-shadow: 0 4px 15px rgba(77, 182, 172, 0.3);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            overflow: hidden;
            text-shadow: 0 1px 1px rgba(0,0,0,0.1);
        }
.btn-mint:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(121, 199, 121, 0.4);
            color: #fff;
        }
        .btn-mint:active {
            transform: translateY(1px);
        }
        .btn-mint::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            transform: translateX(-100%);
            transition: 0.6s;
        }
        .btn-mint:hover::after {
            transform: translateX(100%);
        }
        .nav-pills .nav-link {
            transition: all 0.3s ease;
            border-radius: 50px;
            margin: 0 5px;
            padding: 10px 20px;
            color: #6c757d;
        }
        .nav-pills .nav-link.active {
            background: linear-gradient(135deg, #4DB6AC 0%, #00897B 100%);
            color: white;
            box-shadow: 0 4px 15px rgba(0, 137, 123, 0.3);
            transform: translateY(-2px);
        }
        .nav-pills .nav-link:not(.active):hover {
            background: rgba(77, 182, 172, 0.1);
            color: #00897B;
        }
.bg-mint {
            background: linear-gradient(135deg, #4DB6AC 0%, #00897B 100%);
        }
        .text-mint {
            color: #00897B;
        }
</style>
</head>
<body>
    <div class="container-fluid vh-100 d-flex align-items-center">
        <div class="container">
            <div class="row justify-content-center">
                <div class="col-md-8 col-lg-6">
                    <div class="auth-card bg-white p-5">
                        <div class="text-center mb-4">
                            <img src="http://static.photos/nature/200x200/42" alt="Logo" class="rounded-circle mb-3" width="100" style="animation: float 3s ease-in-out infinite; box-shadow: 0 5px 15px rgba(0,0,0,0.1);">
                            <h2 class="fw-bold" style="background: linear-gradient(45deg, #4DB6AC, #00897B, #00695C); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block;">PESO Registry Portal</h2>
<p class="text-muted mt-2">Public Employment Service Office</p>
                            <div class="position-absolute top-0 end-0 m-3">
                                <span class="badge bg-mint text-dark rounded-pill px-3 py-2 shadow-sm pulse-animation">NEW</span>
                            </div>
                        </div>
<ul class="nav nav-pills nav-fill mb-4" id="myTab" role="tablist">
                            <li class="nav-item" role="presentation">
                                <button class="nav-link active" id="client-tab" data-bs-toggle="tab" data-bs-target="#client" type="button" role="tab">Client Login</button>
                            </li>
                            <li class="nav-item" role="presentation">
                                <button class="nav-link" id="admin-tab" data-bs-toggle="tab" data-bs-target="#admin" type="button" role="tab">Admin Login</button>
                            </li>
                        </ul>

                        <div class="tab-content" id="myTabContent">
                            <div class="tab-pane fade show active" id="client" role="tabpanel" aria-labelledby="client-tab">
                                <form id="clientLoginForm">
                                    <div class="mb-3">
                                        <label for="clientUsername" class="form-label">Username</label>
                                        <input type="text" class="form-control" id="clientUsername" required>
                                    </div>
                                    <div class="mb-3">
                                        <label for="clientPassword" class="form-label">Password</label>
                                        <input type="password" class="form-control" id="clientPassword" required>
                                    </div>
                            <div class="d-grid gap-2">
                                <button type="submit" class="btn btn-mint">
                                    <i data-feather="log-in" class="me-2"></i> Login as Client
                                </button>
                            </div>
<div class="text-center mt-3">
                                        <a href="client-register.html" class="text-mint text-decoration-none">Register as Client</a>
                                    </div>
                                </form>
                            </div>
                            <div class="tab-pane fade" id="admin" role="tabpanel" aria-labelledby="admin-tab">
                                <form id="adminLoginForm">
                                    <div class="mb-3">
                                        <label for="adminUsername" class="form-label">Username</label>
                                        <input type="text" class="form-control" id="adminUsername" required>
                                    </div>
                                    <div class="mb-3">
                                        <label for="adminPassword" class="form-label">Password</label>
                                        <input type="password" class="form-control" id="adminPassword" required>
                                    </div>
                                    <div class="d-grid gap-2">
                                        <button type="submit" class="btn btn-mint">
                                            <i data-feather="lock" class="me-2"></i> Login as Admin
                                        </button>
                                    </div>
</form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/animejs@3.2.1/lib/anime.min.js"></script>
<script>
        feather.replace();
        // Enhanced form animations with anime.js
        document.querySelectorAll('.form-control').forEach(input => {
            input.addEventListener('focus', function() {
                anime({
                    targets: this.parentElement,
                    scale: 1.02,
                    translateY: -3,
                    duration: 300,
                    easing: 'easeOutQuad'
                });
                anime({
                    targets: this.parentElement.querySelector('label'),
                    color: 'var(--mint-dark)',
                    duration: 300
                });
            });
            input.addEventListener('blur', function() {
                anime({
                    targets: this.parentElement,
                    scale: 1,
                    translateY: 0,
                    duration: 300,
                    easing: 'easeOutQuad'
                });
                anime({
                    targets: this.parentElement.querySelector('label'),
                    color: '#6c757d',
                    duration: 300
                });
            });
        });
        // Enhanced floating label effect with icons
        document.querySelectorAll('.form-label').forEach(label => {
            label.style.position = 'relative';
            label.style.paddingLeft = '25px';
            label.style.transition = 'all 0.3s ease';
            
            const icon = document.createElement('span');
            icon.innerHTML = feather.icons['user'].toSvg({
                width: 16,
                height: 16,
                color: '#6c757d',
                'stroke-width': 1.5
            });
            icon.style.position = 'absolute';
            icon.style.left = '0';
            icon.style.top = '3px';
            icon.style.transition = 'all 0.3s ease';
            label.prepend(icon);
            
            label.addEventListener('click', function() {
                anime({
                    targets: this,
                    translateY: -5,
                    color: 'var(--mint-dark)',
                    duration: 300
                });
                anime({
                    targets: icon,
                    color: 'var(--mint-dark)',
                    duration: 300
                });
                setTimeout(() => {
                    anime({
                        targets: this,
                        translateY: 0,
                        color: '#6c757d',
                        duration: 300
                    });
                    anime({
                        targets: icon,
                        color: '#6c757d',
                        duration: 300
                    });
                }, 300);
            });
        });
        // Enhanced form submission with anime.js
        document.getElementById('clientLoginForm').addEventListener('submit', function(e) {
            e.preventDefault();
            anime({
                targets: this,
                scale: 0.95,
                opacity: 0.8,
                easing: 'easeInOutQuad',
                duration: 300
            });
            
            // Show loading animation
            const submitBtn = this.querySelector('button[type="submit"]');
            submitBtn.innerHTML = '<i data-feather="loader" class="animate-spin me-2"></i> Authenticating...';
            feather.replace();
            
            setTimeout(() => {
                anime({
                    targets: '.auth-card',
                    translateY: -20,
                    opacity: 0,
                    duration: 500,
                    complete: function() {
                        window.location.href = 'client-dashboard.html';
                    }
                });
            }, 1500);
        });
        
        document.getElementById('adminLoginForm').addEventListener('submit', function(e) {
            e.preventDefault();
            anime({
                targets: this,
                scale: 0.95,
                opacity: 0.8,
                easing: 'easeInOutQuad',
                duration: 300
            });
            
            // Show loading animation
            const submitBtn = this.querySelector('button[type="submit"]');
            submitBtn.innerHTML = '<i data-feather="loader" class="animate-spin me-2"></i> Authenticating...';
            feather.replace();
            
            setTimeout(() => {
                anime({
                    targets: '.auth-card',
                    translateY: -20,
                    opacity: 0,
                    duration: 500,
                    complete: function() {
                        window.location.href = 'admin-dashboard.html';
                    }
                });
            }, 1500);
        });
        // Enhanced tab switching animation
        document.querySelectorAll('.nav-link').forEach(link => {
            link.addEventListener('click', function() {
                anime({
                    targets: '.auth-card',
                    translateY: [0, -10, 0],
                    opacity: [1, 0.8, 1],
                    duration: 600,
                    easing: 'easeInOutQuad'
                });
                
                // Add icon animation
                if (this.id === 'client-tab') {
                    anime({
                        targets: '.auth-card img',
                        rotate: '1turn',
                        duration: 800,
                        easing: 'easeInOutQuad'
                    });
                } else {
                    anime({
                        targets: '.auth-card img',
                        scale: [1, 1.1, 1],
                        duration: 600,
                        easing: 'easeInOutQuad'
                    });
                }
            });
        });
</script>
</body>
</html>