gdc_cmod/app/Views/login.php
mikael-zakaria 77f15bfc94 first commit
2025-11-11 09:14:25 +07:00

101 lines
3.3 KiB
PHP

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login | GDC System</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
body {
background: linear-gradient(135deg, #e0e7ff, #f8fafc);
font-family: "Inter", "Segoe UI", sans-serif;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.card {
border: none;
border-radius: 1rem;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}
.form-control {
border-radius: 0.5rem;
padding: 0.75rem 1rem;
}
.btn-primary {
border-radius: 0.5rem;
padding: 0.75rem;
background: linear-gradient(135deg, #3b82f6, #2563eb);
border: none;
transition: all 0.2s ease;
}
.btn-primary:hover {
background: linear-gradient(135deg, #2563eb, #1e40af);
}
.app-title {
font-weight: 700;
font-size: 1.5rem;
color: #1e3a8a;
}
.error-message {
background: #fee2e2;
color: #991b1b;
border-radius: 0.5rem;
padding: 0.75rem;
margin-bottom: 1rem;
text-align: center;
font-size: 0.9rem;
}
</style>
</head>
<body>
<div class="container">
<div class="row justify-content-center">
<div class="col-md-5">
<div class="card p-5 shadow-lg">
<div class="text-center ">
<div class="app-title">🔒 GDC Login</div>
<p class="text-muted">Masukkan kredensial Anda untuk melanjutkan</p>
</div>
<hr>
<?php if(session()->getFlashdata('error')): ?>
<div class="error-message">
<?= esc(session()->getFlashdata('error')) ?>
</div>
<?php endif; ?>
<form method="POST" action="<?= base_url('login') ?>">
<?= csrf_field() ?>
<div class="mb-3 mt-3">
<label class="form-label text-muted">User ID</label>
<input type="text" style="text-transform: uppercase;" class="form-control" name="userid" placeholder="" required autofocus>
</div>
<div class="mb-3">
<label class="form-label text-muted">Password</label>
<input type="password" class="form-control" name="password" placeholder="" required>
</div>
<button type="submit" class="btn btn-primary w-100">Login</button>
</form>
<div class="text-center mt-4">
<small class="text-muted">© <?= date('Y') ?> GDC Panda Laboratory System</small>
</div>
</div>
</div>
</div>
</div>
</body>
</html>