Girish Jeswani commited on
Commit
5008578
·
1 Parent(s): b19def4

add login page

Browse files
phd-advisor-frontend/src/components/Login.js ADDED
@@ -0,0 +1,240 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import React, { useState } from 'react';
2
+ import { Eye, EyeOff, Mail, Lock, ArrowRight, BookOpen, Phone } from 'lucide-react';
3
+ import '../styles/Login.css';
4
+
5
+ const Login = ({ onNavigateToSignup, onNavigateToHome }) => {
6
+ const [showPassword, setShowPassword] = useState(false);
7
+ const [formData, setFormData] = useState({
8
+ email: '',
9
+ password: ''
10
+ });
11
+ const [isLoading, setIsLoading] = useState(false);
12
+ const [errors, setErrors] = useState({});
13
+
14
+ const handleInputChange = (e) => {
15
+ const { name, value } = e.target;
16
+ setFormData(prev => ({
17
+ ...prev,
18
+ [name]: value
19
+ }));
20
+ // Clear error when user starts typing
21
+ if (errors[name]) {
22
+ setErrors(prev => ({
23
+ ...prev,
24
+ [name]: ''
25
+ }));
26
+ }
27
+ };
28
+
29
+ const validateForm = () => {
30
+ const newErrors = {};
31
+
32
+ if (!formData.email) {
33
+ newErrors.email = 'Email is required';
34
+ } else if (!/\S+@\S+\.\S+/.test(formData.email)) {
35
+ newErrors.email = 'Please enter a valid email address';
36
+ }
37
+
38
+ if (!formData.password) {
39
+ newErrors.password = 'Password is required';
40
+ } else if (formData.password.length < 6) {
41
+ newErrors.password = 'Password must be at least 6 characters';
42
+ }
43
+
44
+ setErrors(newErrors);
45
+ return Object.keys(newErrors).length === 0;
46
+ };
47
+
48
+ const handleSubmit = async (e) => {
49
+ e.preventDefault();
50
+
51
+ if (!validateForm()) return;
52
+
53
+ setIsLoading(true);
54
+
55
+ try {
56
+ // Simulate API call
57
+ await new Promise(resolve => setTimeout(resolve, 1500));
58
+
59
+ // For demo purposes, we'll just navigate to home
60
+ // In real implementation, handle authentication here
61
+ console.log('Login attempt:', formData);
62
+ onNavigateToHome?.();
63
+
64
+ } catch (error) {
65
+ console.error('Login error:', error);
66
+ setErrors({ submit: 'Login failed. Please try again.' });
67
+ } finally {
68
+ setIsLoading(false);
69
+ }
70
+ };
71
+
72
+ const handleGoogleSignIn = () => {
73
+ console.log('Google Sign In clicked');
74
+ // Future Google Auth integration will go here
75
+ };
76
+
77
+ const handlePhoneSignIn = () => {
78
+ console.log('Phone Sign In clicked');
79
+ // Future Phone Auth integration will go here
80
+ };
81
+
82
+ return (
83
+ <div className="login-page">
84
+ <div className="login-container">
85
+ {/* Header */}
86
+ <div className="login-header">
87
+ <div className="logo-container">
88
+ <BookOpen className="logo-icon" />
89
+ </div>
90
+ <h1 className="login-title">Welcome Back</h1>
91
+ <p className="login-subtitle">
92
+ Sign in to continue your PhD research journey
93
+ </p>
94
+ </div>
95
+
96
+ {/* Main Login Form */}
97
+ <div className="login-form-container">
98
+ <form onSubmit={handleSubmit} className="login-form">
99
+
100
+ {/* Email Field */}
101
+ <div className="form-group">
102
+ <label htmlFor="email" className="form-label">
103
+ Email Address
104
+ </label>
105
+ <div className="input-container">
106
+ <Mail className="input-icon" />
107
+ <input
108
+ type="email"
109
+ id="email"
110
+ name="email"
111
+ value={formData.email}
112
+ onChange={handleInputChange}
113
+ className={`form-input ${errors.email ? 'error' : ''}`}
114
+ placeholder="Enter your email"
115
+ disabled={isLoading}
116
+ />
117
+ </div>
118
+ {errors.email && (
119
+ <span className="error-message">{errors.email}</span>
120
+ )}
121
+ </div>
122
+
123
+ {/* Password Field */}
124
+ <div className="form-group">
125
+ <label htmlFor="password" className="form-label">
126
+ Password
127
+ </label>
128
+ <div className="input-container">
129
+ <Lock className="input-icon" />
130
+ <input
131
+ type={showPassword ? 'text' : 'password'}
132
+ id="password"
133
+ name="password"
134
+ value={formData.password}
135
+ onChange={handleInputChange}
136
+ className={`form-input ${errors.password ? 'error' : ''}`}
137
+ placeholder="Enter your password"
138
+ disabled={isLoading}
139
+ />
140
+ <button
141
+ type="button"
142
+ onClick={() => setShowPassword(!showPassword)}
143
+ className="password-toggle"
144
+ disabled={isLoading}
145
+ >
146
+ {showPassword ? <EyeOff size={16} /> : <Eye size={16} />}
147
+ </button>
148
+ </div>
149
+ {errors.password && (
150
+ <span className="error-message">{errors.password}</span>
151
+ )}
152
+ </div>
153
+
154
+ {/* Forgot Password */}
155
+ <div className="form-actions">
156
+ <button type="button" className="forgot-password">
157
+ Forgot your password?
158
+ </button>
159
+ </div>
160
+
161
+ {/* Submit Error */}
162
+ {errors.submit && (
163
+ <div className="submit-error">
164
+ {errors.submit}
165
+ </div>
166
+ )}
167
+
168
+ {/* Submit Button */}
169
+ <button
170
+ type="submit"
171
+ className={`submit-btn ${isLoading ? 'loading' : ''}`}
172
+ disabled={isLoading}
173
+ >
174
+ {isLoading ? (
175
+ <>
176
+ <div className="loading-spinner"></div>
177
+ Signing In...
178
+ </>
179
+ ) : (
180
+ <>
181
+ Sign In
182
+ <ArrowRight size={16} />
183
+ </>
184
+ )}
185
+ </button>
186
+ </form>
187
+
188
+ {/* Divider */}
189
+ <div className="divider">
190
+ <span>or continue with</span>
191
+ </div>
192
+
193
+ {/* Social Login Options */}
194
+ <div className="social-login">
195
+ <button
196
+ type="button"
197
+ className="google-btn"
198
+ onClick={handleGoogleSignIn}
199
+ disabled={isLoading}
200
+ >
201
+ <svg className="google-icon" viewBox="0 0 24 24">
202
+ <path fill="#4285F4" d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"/>
203
+ <path fill="#34A853" d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"/>
204
+ <path fill="#FBBC05" d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"/>
205
+ <path fill="#EA4335" d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"/>
206
+ </svg>
207
+ Continue with Google
208
+ </button>
209
+
210
+ <button
211
+ type="button"
212
+ className="phone-btn"
213
+ onClick={handlePhoneSignIn}
214
+ disabled={isLoading}
215
+ >
216
+ <Phone size={16} />
217
+ Continue with Phone
218
+ </button>
219
+ </div>
220
+ </div>
221
+
222
+ {/* Footer */}
223
+ <div className="login-footer">
224
+ <p>
225
+ Don't have an account?{' '}
226
+ <button
227
+ type="button"
228
+ className="link-btn"
229
+ onClick={onNavigateToSignup}
230
+ >
231
+ Sign up here
232
+ </button>
233
+ </p>
234
+ </div>
235
+ </div>
236
+ </div>
237
+ );
238
+ };
239
+
240
+ export default Login;
phd-advisor-frontend/src/styles/Login.css ADDED
@@ -0,0 +1,475 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Login.css */
2
+
3
+ .login-page {
4
+ min-height: 100vh;
5
+ background: var(--bg-gradient);
6
+ display: flex;
7
+ align-items: center;
8
+ justify-content: center;
9
+ padding: 24px 16px;
10
+ }
11
+
12
+ .login-container {
13
+ width: 100%;
14
+ max-width: 420px;
15
+ background: var(--bg-primary);
16
+ border: 1px solid var(--border-primary);
17
+ border-radius: 20px;
18
+ box-shadow: var(--shadow-xl);
19
+ backdrop-filter: blur(20px);
20
+ -webkit-backdrop-filter: blur(20px);
21
+ overflow: hidden;
22
+ animation: fadeInUp 0.6s ease-out;
23
+ }
24
+
25
+ [data-theme="dark"] .login-container {
26
+ box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
27
+ }
28
+
29
+ /* Header Section */
30
+ .login-header {
31
+ text-align: center;
32
+ padding: 40px 32px 32px 32px;
33
+ background: var(--bg-secondary);
34
+ border-bottom: 1px solid var(--border-primary);
35
+ }
36
+
37
+ .logo-container {
38
+ width: 56px;
39
+ height: 56px;
40
+ background: var(--accent-gradient);
41
+ border-radius: 16px;
42
+ display: flex;
43
+ align-items: center;
44
+ justify-content: center;
45
+ margin: 0 auto 20px auto;
46
+ box-shadow: var(--shadow-md);
47
+ }
48
+
49
+ .logo-icon {
50
+ width: 28px;
51
+ height: 28px;
52
+ color: #FFFFFF;
53
+ }
54
+
55
+ .login-title {
56
+ font-size: 28px;
57
+ font-weight: 700;
58
+ color: var(--text-primary);
59
+ margin: 0 0 8px 0;
60
+ line-height: 1.2;
61
+ }
62
+
63
+ .login-subtitle {
64
+ font-size: 16px;
65
+ color: var(--text-secondary);
66
+ margin: 0;
67
+ line-height: 1.5;
68
+ }
69
+
70
+ /* Form Container */
71
+ .login-form-container {
72
+ padding: 32px;
73
+ }
74
+
75
+ .login-form {
76
+ margin-bottom: 24px;
77
+ }
78
+
79
+ /* Form Groups */
80
+ .form-group {
81
+ margin-bottom: 20px;
82
+ }
83
+
84
+ .form-label {
85
+ display: block;
86
+ font-size: 14px;
87
+ font-weight: 600;
88
+ color: var(--text-primary);
89
+ margin-bottom: 8px;
90
+ }
91
+
92
+ /* Input Container */
93
+ .input-container {
94
+ position: relative;
95
+ display: flex;
96
+ align-items: center;
97
+ }
98
+
99
+ .input-icon {
100
+ position: absolute;
101
+ left: 16px;
102
+ width: 16px;
103
+ height: 16px;
104
+ color: var(--text-tertiary);
105
+ z-index: 1;
106
+ transition: color 0.2s ease;
107
+ }
108
+
109
+ .form-input {
110
+ width: 100%;
111
+ padding: 16px 16px 16px 48px;
112
+ border: 1px solid var(--border-secondary);
113
+ border-radius: 12px;
114
+ background: var(--input-bg);
115
+ color: var(--text-primary);
116
+ font-size: 16px;
117
+ transition: all 0.2s ease;
118
+ outline: none;
119
+ }
120
+
121
+ .form-input::placeholder {
122
+ color: var(--text-tertiary);
123
+ }
124
+
125
+ .form-input:focus {
126
+ border-color: var(--accent-primary);
127
+ box-shadow: var(--input-focus-shadow);
128
+ }
129
+
130
+ .form-input:focus + .input-icon,
131
+ .input-container:focus-within .input-icon {
132
+ color: var(--accent-primary);
133
+ }
134
+
135
+ .form-input.error {
136
+ border-color: var(--error-text);
137
+ background: var(--error-bg);
138
+ }
139
+
140
+ /* Password Toggle */
141
+ .password-toggle {
142
+ position: absolute;
143
+ right: 16px;
144
+ background: none;
145
+ border: none;
146
+ color: var(--text-tertiary);
147
+ cursor: pointer;
148
+ padding: 4px;
149
+ border-radius: 6px;
150
+ transition: all 0.2s ease;
151
+ display: flex;
152
+ align-items: center;
153
+ justify-content: center;
154
+ }
155
+
156
+ .password-toggle:hover {
157
+ color: var(--text-primary);
158
+ background: var(--bg-secondary);
159
+ }
160
+
161
+ /* Form Actions */
162
+ .form-actions {
163
+ display: flex;
164
+ justify-content: flex-end;
165
+ margin-bottom: 24px;
166
+ }
167
+
168
+ .forgot-password {
169
+ background: none;
170
+ border: none;
171
+ color: var(--accent-primary);
172
+ font-size: 14px;
173
+ font-weight: 500;
174
+ cursor: pointer;
175
+ padding: 4px 8px;
176
+ border-radius: 6px;
177
+ transition: all 0.2s ease;
178
+ }
179
+
180
+ .forgot-password:hover {
181
+ background: var(--bg-secondary);
182
+ color: var(--accent-primary);
183
+ }
184
+
185
+ /* Error Messages */
186
+ .error-message {
187
+ display: block;
188
+ color: var(--error-text);
189
+ font-size: 13px;
190
+ margin-top: 6px;
191
+ font-weight: 500;
192
+ }
193
+
194
+ .submit-error {
195
+ background: var(--error-bg);
196
+ border: 1px solid var(--error-border);
197
+ border-radius: 8px;
198
+ padding: 12px 16px;
199
+ margin-bottom: 20px;
200
+ color: var(--error-text);
201
+ font-size: 14px;
202
+ font-weight: 500;
203
+ text-align: center;
204
+ }
205
+
206
+ /* Submit Button */
207
+ .submit-btn {
208
+ width: 100%;
209
+ display: flex;
210
+ align-items: center;
211
+ justify-content: center;
212
+ gap: 8px;
213
+ background: var(--accent-gradient);
214
+ color: #FFFFFF;
215
+ border: none;
216
+ padding: 16px 24px;
217
+ border-radius: 12px;
218
+ font-size: 16px;
219
+ font-weight: 600;
220
+ cursor: pointer;
221
+ transition: all 0.3s ease;
222
+ box-shadow: var(--shadow-md);
223
+ margin-bottom: 24px;
224
+ }
225
+
226
+ .submit-btn:hover:not(:disabled) {
227
+ transform: translateY(-2px);
228
+ box-shadow: var(--shadow-lg);
229
+ }
230
+
231
+ .submit-btn:active:not(:disabled) {
232
+ transform: translateY(0);
233
+ }
234
+
235
+ .submit-btn:disabled {
236
+ opacity: 0.7;
237
+ cursor: not-allowed;
238
+ transform: none;
239
+ }
240
+
241
+ .submit-btn.loading {
242
+ pointer-events: none;
243
+ }
244
+
245
+ /* Loading Spinner */
246
+ .loading-spinner {
247
+ width: 16px;
248
+ height: 16px;
249
+ border: 2px solid rgba(255, 255, 255, 0.3);
250
+ border-top: 2px solid #FFFFFF;
251
+ border-radius: 50%;
252
+ animation: spin 1s linear infinite;
253
+ }
254
+
255
+ @keyframes spin {
256
+ 0% { transform: rotate(0deg); }
257
+ 100% { transform: rotate(360deg); }
258
+ }
259
+
260
+ /* Divider */
261
+ .divider {
262
+ position: relative;
263
+ text-align: center;
264
+ margin: 24px 0;
265
+ }
266
+
267
+ .divider::before {
268
+ content: '';
269
+ position: absolute;
270
+ top: 50%;
271
+ left: 0;
272
+ right: 0;
273
+ height: 1px;
274
+ background: var(--border-secondary);
275
+ }
276
+
277
+ .divider span {
278
+ background: var(--bg-primary);
279
+ color: var(--text-tertiary);
280
+ font-size: 13px;
281
+ font-weight: 500;
282
+ padding: 0 16px;
283
+ position: relative;
284
+ z-index: 1;
285
+ }
286
+
287
+ /* Social Login */
288
+ .social-login {
289
+ display: flex;
290
+ flex-direction: column;
291
+ gap: 12px;
292
+ margin-bottom: 24px;
293
+ }
294
+
295
+ .google-btn,
296
+ .phone-btn {
297
+ width: 100%;
298
+ display: flex;
299
+ align-items: center;
300
+ justify-content: center;
301
+ gap: 12px;
302
+ padding: 14px 20px;
303
+ border: 1px solid var(--border-secondary);
304
+ border-radius: 12px;
305
+ background: var(--bg-primary);
306
+ color: var(--text-primary);
307
+ font-size: 15px;
308
+ font-weight: 500;
309
+ cursor: pointer;
310
+ transition: all 0.2s ease;
311
+ }
312
+
313
+ .google-btn:hover:not(:disabled),
314
+ .phone-btn:hover:not(:disabled) {
315
+ border-color: var(--border-primary);
316
+ background: var(--bg-secondary);
317
+ transform: translateY(-1px);
318
+ box-shadow: var(--shadow-sm);
319
+ }
320
+
321
+ .google-btn:disabled,
322
+ .phone-btn:disabled {
323
+ opacity: 0.6;
324
+ cursor: not-allowed;
325
+ transform: none;
326
+ }
327
+
328
+ .google-icon {
329
+ width: 18px;
330
+ height: 18px;
331
+ flex-shrink: 0;
332
+ }
333
+
334
+ /* Footer */
335
+ .login-footer {
336
+ text-align: center;
337
+ padding: 24px 32px 32px 32px;
338
+ border-top: 1px solid var(--border-primary);
339
+ background: var(--bg-secondary);
340
+ }
341
+
342
+ .login-footer p {
343
+ color: var(--text-secondary);
344
+ font-size: 14px;
345
+ margin: 0;
346
+ }
347
+
348
+ .link-btn {
349
+ background: none;
350
+ border: none;
351
+ color: var(--accent-primary);
352
+ font-size: 14px;
353
+ font-weight: 600;
354
+ cursor: pointer;
355
+ padding: 0;
356
+ text-decoration: underline;
357
+ text-underline-offset: 2px;
358
+ transition: color 0.2s ease;
359
+ }
360
+
361
+ .link-btn:hover {
362
+ color: var(--accent-secondary);
363
+ }
364
+
365
+ /* Animations */
366
+ @keyframes fadeInUp {
367
+ from {
368
+ opacity: 0;
369
+ transform: translateY(20px);
370
+ }
371
+ to {
372
+ opacity: 1;
373
+ transform: translateY(0);
374
+ }
375
+ }
376
+
377
+ /* Mobile Responsive */
378
+ @media (max-width: 480px) {
379
+ .login-page {
380
+ padding: 16px 12px;
381
+ }
382
+
383
+ .login-container {
384
+ max-width: 100%;
385
+ border-radius: 16px;
386
+ }
387
+
388
+ .login-header {
389
+ padding: 32px 24px 24px 24px;
390
+ }
391
+
392
+ .login-title {
393
+ font-size: 24px;
394
+ }
395
+
396
+ .login-subtitle {
397
+ font-size: 15px;
398
+ }
399
+
400
+ .login-form-container {
401
+ padding: 24px;
402
+ }
403
+
404
+ .form-input {
405
+ font-size: 16px; /* Prevents zoom on iOS */
406
+ padding: 14px 14px 14px 44px;
407
+ }
408
+
409
+ .submit-btn {
410
+ padding: 14px 20px;
411
+ font-size: 15px;
412
+ }
413
+
414
+ .google-btn,
415
+ .phone-btn {
416
+ padding: 12px 16px;
417
+ font-size: 14px;
418
+ }
419
+
420
+ .login-footer {
421
+ padding: 20px 24px 24px 24px;
422
+ }
423
+ }
424
+
425
+ /* Focus and Accessibility */
426
+ .submit-btn:focus-visible,
427
+ .google-btn:focus-visible,
428
+ .phone-btn:focus-visible,
429
+ .forgot-password:focus-visible,
430
+ .link-btn:focus-visible,
431
+ .password-toggle:focus-visible {
432
+ outline: 2px solid var(--accent-primary);
433
+ outline-offset: 2px;
434
+ }
435
+
436
+ .form-input:focus-visible {
437
+ outline: none; /* Handled by border and shadow */
438
+ }
439
+
440
+ /* High Contrast Mode */
441
+ @media (prefers-contrast: high) {
442
+ .login-container {
443
+ border-width: 2px;
444
+ }
445
+
446
+ .form-input {
447
+ border-width: 2px;
448
+ }
449
+
450
+ .submit-btn {
451
+ border: 2px solid var(--accent-primary);
452
+ }
453
+ }
454
+
455
+ /* Reduced Motion */
456
+ @media (prefers-reduced-motion: reduce) {
457
+ .login-container,
458
+ .submit-btn,
459
+ .google-btn,
460
+ .phone-btn,
461
+ .form-input,
462
+ .password-toggle,
463
+ .forgot-password,
464
+ .link-btn {
465
+ transition: none;
466
+ }
467
+
468
+ .loading-spinner {
469
+ animation: none;
470
+ }
471
+
472
+ .fadeInUp {
473
+ animation: none;
474
+ }
475
+ }