-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.php
136 lines (117 loc) · 3.38 KB
/
login.php
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
<!DOCTYPE html>
<html lang="hu">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bejelentkezés</title>
<style>
* {
box-sizing: border-box;
font-family: Arial, sans-serif;
}
body, html {
height: 100%;
margin: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-image: url('sprites/titles/Background.png');
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
}
.form-container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 20px;
border-radius: 20px;
background: linear-gradient(to bottom, #a0a0a0, #d0d0d0);
width: 50%;
max-width: 600px;
min-width: 300px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}
form {
display: flex;
flex-direction: column;
width: 100%;
}
label, input {
margin-bottom: 10px;
}
label {
font-size: 16px;
}
input[type="text"], input[type="password"] {
padding: 10px;
border-radius: 5px;
border: 1px solid #ccc;
width: 100%;
}
input[type="submit"], .back-button {
padding: 10px;
border-radius: 5px;
border: none;
background-color: rgb(160, 160, 160);
color: #fff;
text-decoration: none;
text-align: center;
width: 100%;
cursor: pointer;
transition: background-color 0.3s;
font-size: 16px;
}
input[type="submit"]:hover, .back-button:hover {
background-color: #555;
}
@media screen and (max-width: 2560px) {
body, html {
font-size: 18px;
}
}
@media screen and (max-width: 1920px) {
body, html {
font-size: 16px;
}
}
@media screen and (max-width: 1440px) {
body, html {
font-size: 14px;
}
}
@media screen and (max-width: 1024px) {
body, html {
font-size: 12px;
}
}
@media screen and (max-width: 768px) {
body, html {
font-size: 10px;
}
}
@media screen and (max-width: 480px) {
body, html {
font-size: 8px;
}
.form-container {
width: 80%;
}
}
</style>
</head>
<body>
<div class="form-container">
<form action="handle_login.php" method="post">
<label for="username">Felhasználónév:</label>
<input type="text" name="username" id="username" required>
<label for="password">Jelszó:</label>
<input type="password" name="password" id="password" required>
<input type="submit" value="Bejelentkezés">
</form>
<a class="back-button" href="index.php">Vissza</a>
</div>
</body>
</html>