110 lines
3.2 KiB
PHP
110 lines
3.2 KiB
PHP
<!doctype html>
|
|
<html lang="id">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Login Admin</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<style>
|
|
body {
|
|
background: #ffffff;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.login-card {
|
|
background: #EFEFEF;
|
|
border-radius: 15px;
|
|
box-shadow: 0 0 25px rgb(0, 123, 255);
|
|
width: 100%;
|
|
max-width: 400px; /* batas lebar maksimum */
|
|
padding: 30px;
|
|
}
|
|
|
|
.login-logo {
|
|
display: block;
|
|
margin: 0 auto 15px;
|
|
max-width: 130px;
|
|
}
|
|
|
|
.btn-login {
|
|
background-color: #3bb9ff;
|
|
border: none;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.btn-login:hover {
|
|
background-color: #1a8edb;
|
|
}
|
|
|
|
.form-control {
|
|
border-radius: 10px;
|
|
}
|
|
|
|
/* Responsive padding */
|
|
@media (max-width: 576px) {
|
|
.login-card {
|
|
padding: 20px;
|
|
margin: 10px;
|
|
}
|
|
|
|
.login-logo {
|
|
max-width: 100px;
|
|
}
|
|
|
|
h4 {
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
p {
|
|
font-size: 0.9rem;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="login-card">
|
|
<div class="text-center mb-3">
|
|
<!-- Logo -->
|
|
<img src="{{ asset('images/logo.png') }}" alt="Logo" class="login-logo">
|
|
</div>
|
|
|
|
<h4 class="text-center mb-2 fw-bold">SELAMAT DATANG</h4>
|
|
<p class="text-center text-muted mb-4">Selamat datang! Silakan masukkan detail Anda.</p>
|
|
|
|
@if ($errors->any())
|
|
<div class="alert alert-danger">
|
|
{{ $errors->first() }}
|
|
</div>
|
|
@endif
|
|
|
|
<form action="{{ route('admin.login.post') }}" method="POST">
|
|
@csrf
|
|
<div class="mb-3">
|
|
<label class="form-label">Nama</label>
|
|
<input type="email" name="email" value="{{ old('email') }}" class="form-control"
|
|
placeholder="Masukkan nama Anda" required autofocus>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label class="form-label">Kata Sandi</label>
|
|
<input type="password" name="password" class="form-control"
|
|
placeholder="Masukkan kata sandi Anda" required>
|
|
</div>
|
|
<div class="d-flex justify-content-between align-items-center mb-3 flex-wrap">
|
|
<div class="form-check">
|
|
<input class="form-check-input" type="checkbox" name="remember" id="remember">
|
|
<label class="form-check-label" for="remember">Ingat saya</label>
|
|
</div>
|
|
<a href="#" class="text-decoration-none mt-2 mt-sm-0">Lupa kata sandi</a>
|
|
</div>
|
|
<button type="submit" class="btn btn-login text-white w-100">Login</button>
|
|
</form>
|
|
</div>
|
|
</body>
|
|
|
|
</html>
|