forked from tushargupta1504/Medical-Website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin_login.html
168 lines (145 loc) · 5.32 KB
/
admin_login.html
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" />
<link rel="icon" href="img/favicon.png" type="image/png">
<title>Admin Login</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
min-height: 100vh;
background: linear-gradient(to right, #b1b1b1b9, #838a9393);
background-image: url(./img/helth\ 3.jpg);
display: flex;
justify-content: center;
align-items: center;
font-family: 'Poppins', sans-serif;
background-repeat: no-repeat;
background-size: cover;
}
.container {
width: 50vh;
height: 43vh;
border-radius: 3vh;
background: #fef9ef72;
backdrop-filter: blur(20px);
box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2);
}
.top {
text-align: center;
margin-bottom: 10vh;
}
.top span {
position: relative;
top: 3vh;
font-size: 25px;
letter-spacing: 0.2vh;
font-weight: 700;
color: #264653;
text-shadow: 1px 1px 2px rgba(83, 154, 182, 1);
}
.inputBox {
box-shadow: rgb(219, 219, 219) 3px 3px 6px 0px inset,
rgba(221, 220, 220, 0.301) -3px -3px 6px 1px inset;
display: flex;
justify-content: space-around;
align-items: center;
margin-left: 4.5vh;
width: 40vh;
height: 6vh;
margin-bottom: 4vh;
border-radius: 5vh;
}
.inputBox:focus-within {
box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.1),
-5px -5px 10px rgba(255, 255, 255, 0.5);
outline: 0.5vh solid #264653a1;
}
.input {
height: 4vh;
width: 30vh;
margin-left: -2vh;
border: none;
outline: none;
background: inherit;
}
.input::placeholder {
color: black;
letter-spacing: 0.05em;
font-size: 14px;
}
.btn {
margin-top: 2vh;
height: 5vh;
width: 10vh;
border: none;
border-radius: 5vh;
background: transparent;
cursor: pointer;
color: #264653;
border: 1px solid #264653;
font-weight: 600;
transition: 0.3s ease;
box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
}
.btn:hover {
background: #264653;
color: #fff;
}
form {
text-align: center;
}
.user {
margin-top: 3vh;
color: #0f1f26;
}
.user span {
margin-left: 1vh;
font-size: 20px;
font-weight: bold;
color: #195c71;
cursor: pointer;
font-weight: 500;
}
</style>
</head>
<body>
<div class="container">
<div class="top">
<span>Admin Login</span>
</div>
<div class="form">
<form action="/" method="post">
<div class="inputBox">
<label><i class="fa-solid fa-user"></i></label>
<input type="text" placeholder="Username" class="input" name="username" required>
</div>
<div class="inputBox" style="position: relative;">
<label><i class="fa-solid fa-lock"></i></label>
<input type="password" id="password" placeholder="Password" class="input" name="password"
required>
<i class="fa-solid fa-eye" id="togglePassword"
style="cursor: pointer; position: absolute; right: 10px; top: 10px;"></i>
</div>
<button type="submit" class="btn">Log in</button>
</form>
</div>
</div>
<script>
const togglePassword = document.querySelector("#togglePassword");
const password = document.querySelector("#password");
togglePassword.addEventListener("click", function () {
const type = password.getAttribute("type") === "password" ? "text" : "password";
password.setAttribute("type", type);
this.classList.toggle("fa-eye-slash");
});
</script>
</body>
</html>