-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
100 lines (91 loc) · 2.02 KB
/
index.css
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
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
background: linear-gradient(120deg, #2980b9, #8e44ad);
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
body {
background-image: url('demon-slayer-7680x4320-17617.jpg');
background-size: cover; /* Ensures the image covers the entire page */
background-repeat: no-repeat; /* Prevents the image from repeating */
background-attachment: fixed; /* Keeps the background image fixed during scrolling */
}
.login-container {
position: relative;
width: 400px;
height: 500px;
background:rgba(0, 0, 0, 0.684);
border-radius: 10px;
box-shadow: 0 15px 25px rgba(0, 0, 0, 0.5);
overflow: hidden;
animation: fadeIn 1s;
}
.login-box {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100%;
padding: 40px;
box-sizing: border-box;
}
.login-box h2 {
margin: 0 0 30px;
padding: 0;
color: #ffffff;
text-align: center;
}
.input-box {
position: relative;
margin-bottom: 30px;
}
.input-box input {
width: 100%;
padding: 10px 0;
font-size: 16px;
color: #ffffff;
margin-bottom: 30px;
border: none;
border-bottom: 1px solid #333;
outline: none;
background: transparent;
}
.input-box label {
position: absolute;
top: 0;
left: 0;
padding: 10px 0;
font-size: 16px;
color: #ffffff;
pointer-events: none;
transition: 0.5s;
}
.input-box input:focus ~ label,
.input-box input:valid ~ label {
top: -20px;
left: 0;
color: #2980b9;
font-size: 12px;
}
button {
width: 100%;
background: #2980b9;
border: none;
padding: 10px;
cursor: pointer;
font-size: 16px;
color: #fff;
border-radius: 5px;
transition: 0.3s;
}
button:hover {
background: #8e44ad;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}