forked from JiyaBatra/Addminiproject
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauth.css
More file actions
222 lines (189 loc) · 3.88 KB
/
auth.css
File metadata and controls
222 lines (189 loc) · 3.88 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
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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
/* ================= GLOBAL ================= */
*{
box-sizing:border-box;
margin:0;
padding:0;
font-family:"Poppins",sans-serif;
}
/* ================= BACKGROUND ================= */
body{
height:100vh;
display:flex;
justify-content:center;
align-items:center;
/* SAME pastel gradient as main website */
background: linear-gradient(
135deg,
#fdf6f0,
#f8e8ee,
#e4f0f6
);
color:#5c5470;
}
/* ================= AUTH CARD ================= */
.auth-container{
width:400px;
padding:45px;
border-radius:26px;
/* pastel glass effect */
background: rgba(255,255,255,0.6);
backdrop-filter: blur(15px);
border:1px solid rgba(255,255,255,0.85);
box-shadow:
0 16px 45px rgba(113,79,127,0.18);
text-align:center;
animation: authCardIn 700ms cubic-bezier(0.22,1,0.36,1) both;
}
/* ================= TITLE ================= */
h2{
font-family:'Playfair Display', serif;
color:#6d4e86;
margin-bottom:28px;
font-weight:600;
letter-spacing:0.5px;
animation: authTitleIn 760ms cubic-bezier(0.22,1,0.36,1) both;
transition: letter-spacing 220ms ease, transform 220ms ease;
}
h2:hover{
transform: translateY(-1px);
letter-spacing: 1px;
}
/* ================= INPUT GROUP ================= */
.input-group{
position:relative;
margin-bottom:18px;
opacity:0;
transform:translateY(14px);
animation: authFadeUp 560ms cubic-bezier(0.22,1,0.36,1) forwards;
}
.input-group:nth-of-type(1){
animation-delay:140ms;
}
.input-group:nth-of-type(2){
animation-delay:220ms;
}
.input-group:nth-of-type(3){
animation-delay:300ms;
}
.input-group:nth-of-type(4){
animation-delay:380ms;
}
input{
width:100%;
padding:14px;
border-radius:14px;
border:1px solid rgba(255,255,255,0.9);
outline:none;
background: rgba(255,255,255,0.7);
backdrop-filter: blur(10px);
color:#6a4e77;
font-size:15px;
transition:0.25s ease;
}
input::placeholder{
color:#b08fbf;
}
/* input focus pastel glow */
input:focus{
border-color:#ff9eb5;
box-shadow:0 0 0 3px rgba(255,158,181,0.25);
}
/* ================= PASSWORD TOGGLE ================= */
.toggle-password{
position:absolute;
right:14px;
top:50%;
transform:translateY(-50%);
cursor:pointer;
font-size:16px;
color:#8a6aa3;
}
/* ================= BUTTON ================= */
button{
width:100%;
padding:14px;
border:none;
border-radius:999px;
margin-top:12px;
/* pastel gradient button (same family as navbar active) */
background:linear-gradient(135deg,#ff86ba,#b17ff6);
color:white;
font-size:16px;
font-weight:600;
cursor:pointer;
transition: all 0.3s ease;
opacity:0;
transform:translateY(14px);
animation: authFadeUp 560ms cubic-bezier(0.22,1,0.36,1) 420ms forwards;
}
button:hover{
transform:translateY(-2px);
box-shadow:0 10px 25px rgba(191,115,185,0.35);
}
/* ================= LINKS ================= */
p{
margin-top:20px;
color:#7a5c8e;
opacity:0;
transform:translateY(14px);
animation: authFadeUp 560ms cubic-bezier(0.22,1,0.36,1) 500ms forwards;
}
a{
color:#ff86ba;
font-weight:600;
text-decoration:none;
transition:0.25s;
}
a:hover{
color:#b23e86;
}
/* ================= ERROR ================= */
.error{
color:#ff6fa3;
font-size:14px;
margin-top:8px;
}
@keyframes authCardIn{
from{
opacity:0;
filter: blur(8px);
}
to{
opacity:1;
filter: blur(0);
}
}
@keyframes authTitleIn{
from{
opacity:0;
transform:translateY(12px);
letter-spacing:0.2em;
}
to{
opacity:1;
transform:translateY(0);
letter-spacing:0.03em;
}
}
@keyframes authFadeUp{
from{
opacity:0;
transform:translateY(14px);
}
to{
opacity:1;
transform:translateY(0);
}
}
@media (prefers-reduced-motion: reduce){
.auth-container,
h2,
.input-group,
button,
p{
animation:none !important;
opacity:1 !important;
transform:none !important;
transition:none !important;
}
}