simran19 commited on
Commit
9bda1ae
·
verified ·
1 Parent(s): c00a969

Update static/index.css

Browse files
Files changed (1) hide show
  1. static/index.css +163 -114
static/index.css CHANGED
@@ -2,134 +2,183 @@ html, body {
2
  height: 100%;
3
  margin: 0;
4
  font-family: Arial, sans-serif;
 
5
  }
6
 
7
  body {
8
  display: flex;
9
  justify-content: center; /* center horizontally */
10
  align-items: center; /* center vertically */
11
- min-height: 100vh; /* at least 80% viewport height */
12
- padding: 40px 0;
13
- border-radius: 10px;
14
- }
15
- /* Video background with fallback */
16
- .video-container {
17
- position: fixed;
18
- top: 0;
19
- left: 0;
20
- width: 100%;
21
- height: 100%;
22
- z-index: -2;
23
- overflow: hidden;
24
- background-image:url('https://cdn-uploads.huggingface.co/production/uploads/68c9040752743c0e389c6079/3Bwo1Og_FLJVaDbXqihW8.gif');
25
- }
26
- #backgroundVideo {
27
- position: absolute;
28
- top: 50%;
29
- left: 50%;
30
- min-width: 100%;
31
- min-height: 100%;
32
- width: auto;
33
- height: auto;
34
- transform: translateX(-50%) translateY(-50%);
35
- object-fit: cover;
36
- }
37
- /* Fallback gradient overlay */
38
- .video-overlay {
39
- position: fixed;
40
- top: 0;
41
- left: 0;
42
- width: 100%;
43
- height: 100%;
44
- background: rgba(0, 0, 0, 0.4);
45
- z-index: -1;
46
- }
47
- a {
48
- position: relative;
49
- z-index: 1;
50
- font-size: 20px;
51
- padding: 10px 20px;
52
- background: white;
53
- border-radius: 5px;
54
- color: #1a73e8;
55
- text-decoration: none;
56
- margin: 20px;
57
- display: inline-block;
58
- }
59
- button-group {
60
- display: flex;
61
- gap: 12px;
62
- margin-top: 20px;
63
- }
64
 
65
- .btn {
66
- flex: 1;
67
- padding: 14px 20px;
68
- border: none;
69
- border-radius: 8px;
70
- font-size: 16px;
71
- font-weight: 600;
72
- cursor: pointer;
73
- transition: all 0.3s ease;
74
- text-decoration: none;
75
- display: inline-flex;
76
- align-items: center;
77
- justify-content: center;
78
- gap: 8px;
79
- }
80
- @keyframes spin {
81
- 0% { transform: rotate(0deg); }
82
- 100% { transform: rotate(360deg); }
83
- }
84
- .btn-primary {
85
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
86
- color: white;
87
- }
88
- .btn-primary:hover:not(:disabled) {
89
- transform: translateY(-2px);
90
- box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
91
- }
92
- .btn-secondary {
93
- background: white;
94
- color: #333;
95
- border: 2px solid #e1e5e9;
96
- }
97
- .btn-secondary:hover {
98
- background: #f8f9fa;
99
- border-color: #333;
100
- }
101
- .btn:disabled {
102
- opacity: 0.6;
103
- cursor: not-allowed;
104
- }
105
- .form-group input {
106
- background: transparent;
107
- color: black;
108
- border: 2px solid black;
109
- display:block;
110
- width:80%;
111
  }
112
 
113
- .form-group label {
114
- background: transparent;
115
- color: black;
116
-
 
 
 
 
 
 
117
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
118
  .page-container {
119
- width: 400px; /* Fixed width */
120
- background: transparent; /* Background color (or use an image) */
121
- border-radius: 20px; /* Rounded corners */
122
  box-shadow:
123
- 0 4px 10px rgba(0, 0, 0, 0.7),
124
- 0 10px 20px rgba(0, 0, 0, 0.6),
125
- 0 15px 30px rgba(0, 0, 0, 0.5);
126
- background: #fff;; /* Soft shadow */
127
- color: #333; /* Text color */
128
  font-family: Arial, sans-serif;
129
- padding: 30px 40px; /* this adds spacing inside the container */
130
  display: flex;
131
- flex-direction: column; /* stack children vertically */
132
- align-items: flex-start; /* align text/inputs to left with padding */
133
  box-sizing: border-box;
 
 
 
 
 
 
 
 
 
 
 
 
 
134
  }
135
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  height: 100%;
3
  margin: 0;
4
  font-family: Arial, sans-serif;
5
+ background: #f0f4f8;
6
  }
7
 
8
  body {
9
  display: flex;
10
  justify-content: center; /* center horizontally */
11
  align-items: center; /* center vertically */
12
+ min-height: 100vh;
13
+ padding: 40px 0;
14
+ /* remove border-radius on body */
15
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
 
17
+ /* Video background */
18
+ .video-container {
19
+ position: fixed;
20
+ top: 0;
21
+ left: 0;
22
+ width: 100%;
23
+ height: 100%;
24
+ z-index: -2;
25
+ overflow: hidden;
26
+ background-image: url('https://cdn-uploads.huggingface.co/production/uploads/68c9040752743c0e389c6079/3Bwo1Og_FLJVaDbXqihW8.gif');
27
+ background-size: cover;
28
+ background-position: center center;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  }
30
 
31
+ #backgroundVideo {
32
+ position: absolute;
33
+ top: 50%;
34
+ left: 50%;
35
+ min-width: 100%;
36
+ min-height: 100%;
37
+ width: auto;
38
+ height: auto;
39
+ transform: translateX(-50%) translateY(-50%);
40
+ object-fit: cover;
41
  }
42
+
43
+ /* Slightly darker overlay for better text contrast */
44
+ .video-overlay {
45
+ position: fixed;
46
+ top: 0;
47
+ left: 0;
48
+ width: 100%;
49
+ height: 100%;
50
+ background: rgba(0, 0, 0, 0.55);
51
+ z-index: -1;
52
+ }
53
+
54
+ /* Top right HOME link */
55
+ a {
56
+ position: fixed;
57
+ top: 25px;
58
+ right: 25px;
59
+ z-index: 10;
60
+ font-size: 18px;
61
+ padding: 12px 28px;
62
+ background: linear-gradient(135deg, #1a73e8, #4285f4);
63
+ border-radius: 8px;
64
+ color: white;
65
+ text-decoration: none;
66
+ font-weight: 600;
67
+ box-shadow: 0 4px 12px rgba(26, 115, 232, 0.7);
68
+ transition: background-color 0.3s ease, box-shadow 0.3s ease;
69
+ }
70
+ a:hover {
71
+ background: linear-gradient(135deg, #155ab6, #2a4c8c);
72
+ box-shadow: 0 6px 20px rgba(21, 90, 182, 0.9);
73
+ }
74
+
75
+ /* Form container */
76
  .page-container {
77
+ width: 400px;
78
+ background: linear-gradient(145deg, #ffffff, #e6f0fa);
79
+ border-radius: 25px;
80
  box-shadow:
81
+ 0 8px 24px rgba(0, 0, 0, 0.25),
82
+ inset 0 0 8px #d1e3f8;
83
+ color: #333;
 
 
84
  font-family: Arial, sans-serif;
85
+ padding: 40px 45px;
86
  display: flex;
87
+ flex-direction: column;
88
+ align-items: flex-start;
89
  box-sizing: border-box;
90
+ backdrop-filter: saturate(180%) blur(20px);
91
+ }
92
+
93
+ /* Heading with subtle gradient text */
94
+ .page-container h1 {
95
+ color: transparent;
96
+ background: linear-gradient(90deg, #1a73e8, #4285f4);
97
+ -webkit-background-clip: text;
98
+ background-clip: text;
99
+ font-weight: 900;
100
+ font-size: 2.5rem;
101
+ margin-bottom: 30px;
102
+ text-shadow: 1px 1px 5px rgba(0,0,0,0.15);
103
  }
104
 
105
+ /* Form labels */
106
+ .form-group label {
107
+ font-size: 24px;
108
+ color: #1a3d7c;
109
+ margin-bottom: 6px;
110
+ text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
111
+ display: block;
112
+ }
113
+
114
+ /* Form inputs */
115
+ .form-group input {
116
+ background: #f7faff;
117
+ color: #1a3d7c;
118
+ border: 2px solid #a3bffa;
119
+ border-radius: 12px;
120
+ padding: 10px 15px;
121
+ font-size: 18px;
122
+ margin-bottom: 18px;
123
+ width: 100%;
124
+ box-sizing: border-box;
125
+ transition: border-color 0.3s ease, box-shadow 0.3s ease;
126
+ box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.06);
127
+ }
128
+ .form-group input:focus {
129
+ outline: none;
130
+ border-color: #1a73e8;
131
+ box-shadow: 0 0 8px #4285f4;
132
+ }
133
+
134
+ /* Button group */
135
+ .button-group {
136
+ display: flex;
137
+ gap: 15px;
138
+ margin-top: 25px;
139
+ width: 100%;
140
+ }
141
+
142
+ /* Buttons */
143
+ .btn {
144
+ flex: 1;
145
+ padding: 14px 25px;
146
+ border: none;
147
+ border-radius: 12px;
148
+ font-size: 18px;
149
+ font-weight: 700;
150
+ cursor: pointer;
151
+ transition: all 0.3s ease;
152
+ display: inline-flex;
153
+ align-items: center;
154
+ justify-content: center;
155
+ gap: 8px;
156
+ text-decoration: none;
157
+ user-select: none;
158
+ }
159
+ .btn-primary {
160
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
161
+ color: white;
162
+ box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
163
+ }
164
+ .btn-primary:hover:not(:disabled) {
165
+ transform: translateY(-3px);
166
+ box-shadow: 0 10px 20px rgba(118, 75, 162, 0.7);
167
+ }
168
+ .btn-secondary {
169
+ background: white;
170
+ color: #333;
171
+ border: 2px solid #e1e5e9;
172
+ box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
173
+ }
174
+ .btn-secondary:hover {
175
+ background: #f0f2f5;
176
+ border-color: #1a73e8;
177
+ color: #1a73e8;
178
+ }
179
+
180
+ /* Disabled state */
181
+ .btn:disabled {
182
+ opacity: 0.6;
183
+ cursor: not-allowed;
184
+ }