-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
134 lines (116 loc) · 2.94 KB
/
index.php
File metadata and controls
134 lines (116 loc) · 2.94 KB
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
<?php
ob_start();
require_once('includes/load.php');
if($session->isUserLoggedIn(true)) { redirect('home.php', false);}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>ElectroMart Admin Login</title>
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: "Segoe UI", sans-serif;
}
body {
height: 100vh;
background: linear-gradient(to bottom right, #0f054c, #4528dc);
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
color: white;
}
.container {
text-align: center;
}
.brand {
font-size: 2.5rem;
font-weight: bold;
}
.subtitle {
margin-bottom: 2rem;
color: #d2d2f4;
}
.login-card {
background-color: white;
color: #333;
padding: 2rem;
border-radius: 20px;
box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
width: 350px;
text-align: left;
}
.login-card h2 {
color: #4a5dff;
text-align: center;
margin-bottom: 0.3rem;
}
.desc {
text-align: center;
font-size: 0.9rem;
color: #666;
margin-bottom: 1rem;
}
label {
font-weight: 600;
display: block;
margin-bottom: 0.3rem;
margin-top: 1rem;
}
input {
width: 100%;
padding: 10px;
border: 2px solid #e0e0e0;
border-radius: 10px;
font-size: 1rem;
}
button {
margin-top: 1.5rem;
width: 100%;
padding: 12px;
background-color: #4a5dff;
color: white;
border: none;
border-radius: 10px;
font-size: 1rem;
font-weight: bold;
cursor: pointer;
transition: background 0.3s ease;
}
button:hover {
background-color: #3541d1;
}
footer {
text-align: center;
font-size: 0.8rem;
color: #888;
margin-top: 1.5rem;
}
</style>
</head>
<body>
<div class="container">
<h1 class="brand">ElectroMart</h1>
<p class="subtitle">Premium Electronics Inventory System</p>
<div class="login-card">
<h2>Login Panel</h2>
<p class="desc">Enter your credentials to continue</p>
<?php echo display_msg($msg); ?>
<form method="post" action="auth.php" class="clearfix">
<label for="username">Username</label>
<input type="text" id="username" name="username" placeholder="Enter username" required />
<label for="password">Password</label>
<input type="password" id="password" name="password" placeholder="Enter password" required />
<button type="submit">Login</button>
</form>
<footer>© 2025 ElectroMart Inventory System</footer>
</div>
</div>
<?php include_once('layouts/footer.php'); ?>
</body>
</html>