1+ /* ===== Reset & Base ===== */
2+ * {
3+ margin : 0 ;
4+ padding : 0 ;
5+ box-sizing : border-box;
6+ font-family : "Segoe UI" , Tahoma, Geneva, Verdana, sans-serif;
7+ }
8+
9+ body {
10+ height : 100vh ;
11+ display : flex;
12+ justify-content : center;
13+ align-items : center;
14+ background : linear-gradient (135deg , # 141e30, # 243b55 );
15+ overflow : hidden;
16+ }
17+
18+ .container {
19+ display : flex;
20+ justify-content : center;
21+ align-items : center;
22+ width : 100% ;
23+ padding : 20px ;
24+ }
25+
26+ /* ===== Login Card ===== */
27+ .form {
28+ display : flex;
29+ flex-direction : column;
30+ gap : 15px ;
31+ padding : 2.5em 2em ;
32+ background : rgba (23 , 23 , 23 , 0.8 );
33+ border-radius : 20px ;
34+ backdrop-filter : blur (10px );
35+ box-shadow : 0 8px 25px rgba (0 , 0 , 0 , 0.6 );
36+ width : 100% ;
37+ max-width : 350px ;
38+ transition : transform 0.4s ease, box-shadow 0.4s ease;
39+ }
40+
41+ .form : hover {
42+ transform : scale (1.03 );
43+ box-shadow : 0 12px 35px rgba (0 , 0 , 0 , 0.7 );
44+ }
45+
46+
47+
48+ /* ===== Input Fields ===== */
49+ .form {
50+ display : flex;
51+ flex-direction : column;
52+ gap : 10px ;
53+ padding-left : 2em ;
54+ padding-right : 2em ;
55+ padding-bottom : 0.4em ;
56+ background-color : # 171717 ;
57+ border-radius : 25px ;
58+ transition : .4s ease-in-out;
59+ }
60+
61+ .form : hover {
62+ transform : scale (1.05 );
63+ border : 1px solid black;
64+ }
65+
66+ # heading {
67+ text-align : center;
68+ font-weight : bold;
69+ margin : 1em ;
70+ color : rgb (255 , 255 , 255 );
71+ font-size : 2em ;
72+ }
73+
74+ .field {
75+ display : flex;
76+ align-items : center;
77+ justify-content : center;
78+ gap : 0.5em ;
79+ border-radius : 25px ;
80+ padding : 0.6em ;
81+ border : none;
82+ outline : none;
83+ color : white;
84+ background-color : # 171717 ;
85+ box-shadow : inset 2px 5px 10px rgb (5 , 5 , 5 );
86+ }
87+
88+ .input-icon {
89+ height : 1.3em ;
90+ width : 1.3em ;
91+ fill : white;
92+ }
93+
94+ .input-field {
95+ background : none;
96+ border : none;
97+ outline : none;
98+ width : 100% ;
99+ color : # d3d3d3 ;
100+ }
101+
102+ .field : hover {
103+ border-color : # 6a5acd ;
104+ background : rgba (255 , 255 , 255 , 0.08 );
105+ }
106+
107+ .input-icon {
108+ height : 1.3em ;
109+ width : 1.3em ;
110+ fill : # aaa ;
111+ transition : fill 0.3s ease;
112+ }
113+
114+ .field : hover .input-icon {
115+ fill : # fff ;
116+ }
117+
118+ .input-field {
119+ background : none;
120+ border : none;
121+ outline : none;
122+ flex : 1 ;
123+ color : # e0e0e0 ;
124+ font-size : 0.95em ;
125+ }
126+
127+ /* ===== Buttons ===== */
128+ .form .btn {
129+ display : flex;
130+ justify-content : center;
131+ gap : 0.8em ;
132+ margin-top : 1.8em ;
133+ }
134+
135+ .button1 ,
136+ .button2 ,
137+ .button3 {
138+ padding : 0.6em 1.6em ;
139+ border-radius : 8px ;
140+ border : none;
141+ outline : none;
142+ font-size : 0.95em ;
143+ font-weight : 500 ;
144+ cursor : pointer;
145+ transition : all 0.3s ease;
146+ background : # 252525 ;
147+ color : white;
148+ }
149+
150+ .button1 : hover ,
151+ .button2 : hover {
152+ background : # 6a5acd ;
153+ box-shadow : 0 4px 15px rgba (106 , 90 , 205 , 0.4 );
154+ }
155+
156+ .button3 {
157+ margin : 1.2em ;
158+ background : transparent;
159+ border : 1px solid rgba (255 , 255 , 255 , 0.2 );
160+ }
161+
162+ .button3 : hover {
163+ background : crimson;
164+ border-color : crimson;
165+ color : # fff ;
166+ box-shadow : 0 4px 12px rgba (220 , 20 , 60 , 0.4 );
167+ }
168+
169+ /* ===== Responsive ===== */
170+ @media (max-width : 480px ) {
171+ .form {
172+ padding : 2em 1.2em ;
173+ max-width : 95% ;
174+ }
175+
176+ # heading {
177+ font-size : 1.3em ;
178+ }
179+
180+ .input-field {
181+ font-size : 0.9em ;
182+ }
183+
184+ .button1 ,
185+ .button2 ,
186+ .button3 {
187+ font-size : 0.85em ;
188+ padding : 0.5em 1.2em ;
189+ }
190+ }
0 commit comments