184 lines
5.4 KiB
PHP
184 lines
5.4 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="id">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Login Pemilik - SPK Kontrakan & Laundry</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
|
|
<style>
|
|
body {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
min-height: 100vh;
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
}
|
|
|
|
.auth-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
min-height: 100vh;
|
|
padding: 20px;
|
|
}
|
|
|
|
.auth-card {
|
|
width: 100%;
|
|
max-width: 420px;
|
|
background: white;
|
|
border-radius: 12px;
|
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.auth-header {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
padding: 30px 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.auth-header h2 {
|
|
margin: 0;
|
|
font-size: 28px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.auth-header p {
|
|
margin: 8px 0 0 0;
|
|
opacity: 0.9;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.auth-body {
|
|
padding: 30px;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.form-label {
|
|
font-weight: 600;
|
|
color: #333;
|
|
margin-bottom: 8px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.form-control {
|
|
border: 2px solid #e0e0e0;
|
|
border-radius: 8px;
|
|
padding: 12px 14px;
|
|
font-size: 14px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.form-control:focus {
|
|
border-color: #667eea;
|
|
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
|
|
}
|
|
|
|
.btn-login {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
border: none;
|
|
color: white;
|
|
font-weight: 600;
|
|
padding: 12px 20px;
|
|
border-radius: 8px;
|
|
font-size: 15px;
|
|
transition: all 0.3s ease;
|
|
cursor: pointer;
|
|
width: 100%;
|
|
}
|
|
|
|
.btn-login:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
|
|
color: white;
|
|
}
|
|
|
|
.alert {
|
|
border-radius: 8px;
|
|
border: none;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.auth-footer {
|
|
text-align: center;
|
|
padding: 20px 30px;
|
|
background: #f8f9fa;
|
|
border-top: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.auth-footer p {
|
|
margin: 0;
|
|
color: #666;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.auth-footer a {
|
|
color: #667eea;
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
.auth-footer a:hover {
|
|
color: #764ba2;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="auth-container">
|
|
<div class="auth-card">
|
|
<div class="auth-header">
|
|
<h2><i class="fas fa-shield-alt"></i> Login Pemilik</h2>
|
|
<p>Khusus Pemilik Kontrakan & Laundry</p>
|
|
</div>
|
|
|
|
<!-- Warning Box -->
|
|
<div class="alert alert-warning mx-3 mt-3 mb-0">
|
|
<h6 class="fw-bold mb-2">⚠️ PERHATIAN - KHUSUS PEMILIK BISNIS</h6>
|
|
<p class="small mb-2">💼 <strong>Admin:</strong> Pemilik kontrakan/laundry - kelola data bisnis Anda</p>
|
|
<p class="small mb-0">👑 <strong>Super Admin:</strong> Pengelola website - kelola seluruh sistem</p>
|
|
</div>
|
|
|
|
<div class="auth-body">
|
|
@if(session('error'))
|
|
<div class="alert alert-danger alert-dismissible fade show" role="alert">
|
|
<i class="fas fa-exclamation-circle me-2"></i>{{ session('error') }}
|
|
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
|
</div>
|
|
@endif
|
|
|
|
<form method="POST" action="{{ route('admin.login.post') }}">
|
|
@csrf
|
|
|
|
<div class="form-group">
|
|
<label for="email" class="form-label"><i class="fas fa-envelope"></i> Email</label>
|
|
<input type="email" id="email" name="email" class="form-control" placeholder="Masukkan email Anda" required>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="password" class="form-label"><i class="fas fa-key"></i> Password</label>
|
|
<input type="password" id="password" name="password" class="form-control" placeholder="Masukkan password Anda" required>
|
|
</div>
|
|
|
|
<button type="submit" class="btn-login">
|
|
<i class="fas fa-sign-in-alt me-2"></i>Masuk
|
|
</button>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="auth-footer">
|
|
<p>Belum punya akun bisnis? <a href="{{ route('admin.register') }}">Daftar Sebagai Pemilik</a></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
|
|
|
</body>
|
|
</html>
|