Files
ERP-upgrade/resources/views/auth/login.blade.php
2026-07-21 19:04:42 +00:00

146 lines
5.9 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 | CLICK ERP</title>
<!-- Bootstrap 5 CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Bootstrap Icons -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css">
<style>
body {
background-color: #f4f5f7;
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
.login-wrapper {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
}
.login-card {
width: 100%;
max-width: 420px;
border-radius: 8px;
}
.brand-header {
background-color: #3b82f6;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
}
.form-label {
font-size: 0.75rem;
letter-spacing: 0.5px;
color: #6c757d;
}
.input-group-text {
background-color: #f8f9fa;
border-right: none;
}
.form-control.border-start-0 {
border-left: none;
}
.form-control:focus {
box-shadow: none;
border-color: #dee2e6;
}
.input-group:focus-within {
box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
border-radius: 0.375rem;
}
</style>
</head>
<body>
<div class="login-wrapper">
<div class="card login-card border-light-subtle shadow-lg border-0">
<!-- Header Section -->
<div class="brand-header p-4 text-center">
<!-- If you have a logo, replace the h3 with an img tag -->
<h3 class="fw-bold text-white mb-0" style="letter-spacing: 1px;">Click Mobile LTD</h3>
<p class="text-white-50 small mt-1 mb-0">Enterprise Resource Planning System</p>
</div>
<div class="card-body p-4 p-md-5 bg-white">
<h5 class="fw-bold text-dark mb-4 text-center">Staff Member Login</h5>
<!-- Error Alert -->
@if ($errors->any())
<div class="alert alert-danger border-0 shadow-sm d-flex align-items-center py-2 px-3 mb-4" role="alert">
<i class="bi bi-exclamation-triangle-fill me-2"></i>
<div class="small fw-medium">
{{ $errors->first() }}
</div>
</div>
@endif
<form method="POST" action="{{ route('login') }}">
@csrf
<!-- Email Field -->
<div class="mb-4">
<label for="email" class="form-label fw-bold">EMAIL ADDRESS <span class="text-danger">*</span></label>
<div class="input-group shadow-sm">
<span class="input-group-text text-muted">
<i class="bi bi-envelope"></i>
</span>
<input type="email"
class="form-control border-start-0 ps-0 py-2 @error('email') is-invalid @enderror"
id="email"
name="email"
value="{{ old('email') }}"
placeholder="staff@click-mobile.com"
required
autofocus>
</div>
</div>
<!-- Password Field -->
<div class="mb-4">
<div class="d-flex justify-content-between align-items-center mb-1">
<label for="password" class="form-label fw-bold mb-0">PASSWORD <span class="text-danger">*</span></label>
<!-- Optional Forgot Password Link -->
<!-- <a href="#" class="text-decoration-none small text-primary fw-medium">Forgot?</a> -->
</div>
<div class="input-group shadow-sm">
<span class="input-group-text text-muted">
<i class="bi bi-lock"></i>
</span>
<input type="password"
class="form-control border-start-0 ps-0 py-2"
id="password"
name="password"
placeholder="Enter your password"
required>
</div>
</div>
<!-- Remember Me (Optional based on your setup) -->
<div class="mb-4 form-check">
<input type="checkbox" class="form-check-input shadow-sm" id="remember" name="remember">
<label class="form-check-label text-secondary small fw-medium" for="remember">Keep me logged in</label>
</div>
<!-- Submit Button -->
<button type="submit" class="btn w-100 fw-bold shadow-sm py-2 text-white" style="background-color: #3b82f6;">
Secure Login <i class="bi bi-arrow-right ms-1"></i>
</button>
</form>
</div>
<!-- Footer Area -->
<div class="card-footer bg-light border-top-0 text-center py-3">
<p class="text-muted small mb-0">&copy; {{ date('Y') }} Click Mobile. All rights reserved.</p>
</div>
</div>
</div>
</body>
</html>