@djb25/digit-ui-css 1.0.44 → 1.0.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,5 @@
1
1
  .Citizen_register {
2
2
  &.registration-page-container {
3
- background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
4
3
  min-height: calc(100vh - 83px);
5
4
  display: flex;
6
5
  align-items: center;
@@ -8,6 +7,9 @@
8
7
  padding: 40px 20px;
9
8
  font-family: "Roboto", sans-serif;
10
9
  width: 100%;
10
+ @media (max-width: 640px) {
11
+ padding-top: 86px;
12
+ }
11
13
 
12
14
  /* Global overrides for this page */
13
15
  .digit-button,
@@ -38,12 +40,11 @@
38
40
  .registration-card {
39
41
  display: flex;
40
42
  width: 100%;
41
- max-width: 1000px;
43
+ max-width: 768px;
42
44
  background-color: #fff;
43
45
  border-radius: 20px;
44
46
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
45
47
  overflow: hidden;
46
- min-height: 600px;
47
48
  }
48
49
 
49
50
  .registration-sidebar {
@@ -102,39 +103,11 @@
102
103
  }
103
104
  }
104
105
 
105
- .sidebar-footer {
106
- margin-top: auto;
107
- font-size: 12px;
108
- opacity: 0.6;
109
- }
110
-
111
106
  /* Success state specific */
112
107
  .success-icon-wrapper {
113
108
  text-align: center;
114
109
  margin-top: 40px;
115
110
 
116
- .icon-outer {
117
- width: 120px;
118
- height: 120px;
119
- border-radius: 50%;
120
- background-color: rgba(255, 255, 255, 0.2);
121
- display: flex;
122
- align-items: center;
123
- justify-content: center;
124
- margin: 0 auto 30px auto;
125
- box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
126
- }
127
-
128
- .icon-inner {
129
- width: 90px;
130
- height: 90px;
131
- border-radius: 50%;
132
- background-color: #fff;
133
- display: flex;
134
- align-items: center;
135
- justify-content: center;
136
- }
137
-
138
111
  h2 {
139
112
  font-size: 24px;
140
113
  font-weight: 700;
@@ -149,6 +122,13 @@
149
122
  }
150
123
  }
151
124
 
125
+ .sidebar-footer {
126
+ margin-top: auto;
127
+ font-size: 10.5px;
128
+ font-weight: 500;
129
+ color: rgb(0, 112, 180);
130
+ }
131
+
152
132
  .registration-content {
153
133
  flex: 1;
154
134
  padding: 60px;
@@ -167,6 +147,7 @@
167
147
  font-weight: 700;
168
148
  color: #1e293b;
169
149
  margin-bottom: 16px;
150
+ word-wrap: anywhere;
170
151
  }
171
152
 
172
153
  p {
@@ -209,77 +190,54 @@
209
190
  }
210
191
 
211
192
  /*SelectMobileNumber specific styles*/
212
- .select-mobile-number-wrapper {
213
- .prefix-container {
214
- display: flex;
215
- align-items: center;
216
- padding: 0 10px;
217
- border-right: 1px solid #e1e1e1;
218
- color: #505a5f;
219
- font-weight: bold;
220
- }
221
193
 
222
- .error-text {
223
- color: #d83a2f;
224
- font-size: 14px;
225
- margin-top: 4px;
226
- }
194
+ .or-separator-container {
195
+ margin: 40px 0 24px 0;
196
+ border-top: 1px solid #e5e7eb;
197
+ padding-top: 32px;
198
+ text-align: center;
199
+ position: relative;
227
200
 
228
- .privacy-link {
229
- color: #1a67a3;
230
- cursor: pointer;
231
- font-weight: 600;
201
+ .or-text {
202
+ position: absolute;
203
+ top: -10px;
204
+ left: 50%;
205
+ transform: translateX(-50%);
206
+ background: #fff;
207
+ padding: 0 16px;
208
+ color: #6b7280;
232
209
  font-size: 14px;
210
+ font-weight: 500;
233
211
  }
212
+ }
234
213
 
235
- .or-separator-container {
236
- margin: 40px 0 0 0;
237
- border-top: 1px solid #e5e7eb;
238
- padding-top: 32px;
239
- text-align: center;
240
- position: relative;
241
-
242
- .or-text {
243
- position: absolute;
244
- top: -10px;
245
- left: 50%;
246
- transform: translateX(-50%);
247
- background: #fff;
248
- padding: 0 16px;
249
- color: #6b7280;
250
- font-size: 14px;
251
- font-weight: 500;
252
- }
214
+ .digilocker-btn {
215
+ display: flex;
216
+ align-items: center;
217
+ justify-content: center;
218
+ width: 100%;
219
+ padding: 14px;
220
+ background-color: #fff;
221
+ border: 1px solid #d1d5db;
222
+ border-radius: 12px;
223
+ cursor: pointer;
224
+ transition: all 0.3s ease;
225
+ gap: "12px";
226
+ font-size: 16px;
227
+ font-weight: 600;
228
+ color: #374151;
229
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
230
+
231
+ &:hover {
232
+ background-color: #f9fafb;
233
+ border-color: #9ca3af;
234
+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
253
235
  }
254
236
 
255
- .digilocker-btn {
256
- display: flex;
257
- align-items: center;
258
- justify-content: center;
259
- width: 100%;
260
- padding: 14px;
261
- background-color: #fff;
262
- border: 1px solid #d1d5db;
263
- border-radius: 12px;
264
- cursor: pointer;
265
- transition: all 0.3s ease;
266
- gap: "12px";
267
- font-size: 16px;
268
- font-weight: 600;
269
- color: #374151;
270
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
271
-
272
- &:hover {
273
- background-color: #f9fafb;
274
- border-color: #9ca3af;
275
- box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
276
- }
277
-
278
- img {
279
- width: 28px;
280
- height: 28px;
281
- margin-right: 12px;
282
- }
237
+ img {
238
+ width: 28px;
239
+ height: 28px;
240
+ margin-right: 12px;
283
241
  }
284
242
  }
285
243
 
@@ -304,3 +262,567 @@
304
262
  }
305
263
  }
306
264
  }
265
+
266
+ /* WRAPPER */
267
+ .registration__wrapper {
268
+ display: flex;
269
+ width: 100%;
270
+ background: #fff;
271
+ border-radius: 16px;
272
+ overflow: hidden;
273
+ box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
274
+ }
275
+
276
+ @media (max-width: 768px) {
277
+ .registration__wrapper {
278
+ flex-direction: column;
279
+ }
280
+ }
281
+
282
+ /* SIDEBAR */
283
+ .registration__sidebar {
284
+ width: 280px;
285
+ padding: 24px;
286
+ background: linear-gradient(to bottom, #e8f0f8, #ffffff);
287
+ border-right: 1px solid #f1f5f9;
288
+ border-radius: 0px 36px 36px 0;
289
+
290
+ .icon-outer {
291
+ width: 120px;
292
+ height: 120px;
293
+ border-radius: 50%;
294
+ background-color: rgba(255, 255, 255, 0.2);
295
+ display: flex !important;
296
+ align-items: center;
297
+ justify-content: center;
298
+ margin: 0 auto 30px auto;
299
+ box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
300
+ }
301
+
302
+ .icon-inner {
303
+ width: 90px;
304
+ height: 90px;
305
+ border-radius: 50%;
306
+ background-color: #fff;
307
+ display: flex !important;
308
+ align-items: center;
309
+ justify-content: center;
310
+ }
311
+ }
312
+
313
+ @media (max-width: 768px) {
314
+ .registration__sidebar {
315
+ width: 100%;
316
+ border-right: none;
317
+ border-bottom: 1px solid #f1f5f9;
318
+ }
319
+ }
320
+
321
+ .registration__sidebar-title {
322
+ font-size: 12px;
323
+ font-weight: 600;
324
+ letter-spacing: 0.08em;
325
+ color: #64748b;
326
+ margin-bottom: 32px;
327
+ }
328
+
329
+ /* STEP */
330
+ .registration__step {
331
+ display: flex;
332
+ align-items: flex-start;
333
+ position: relative;
334
+ }
335
+
336
+ @media (min-width: 768px) {
337
+ .registration__step {
338
+ margin-bottom: 32px;
339
+ }
340
+ .registration__step:last-child {
341
+ margin-bottom: 0;
342
+ }
343
+ }
344
+
345
+ .registration__step-line {
346
+ position: absolute;
347
+ left: 16px;
348
+ top: 32px;
349
+ width: 2px;
350
+ height: 48px;
351
+ transform: translateX(-50%);
352
+ background: #e2e8f0;
353
+ }
354
+
355
+ .registration__step-line--completed {
356
+ background: #22c55e;
357
+ }
358
+
359
+ .registration__step-circle {
360
+ width: 32px;
361
+ height: 32px;
362
+ border-radius: 50%;
363
+ background: #e2e8f0;
364
+ color: #94a3b8;
365
+ display: flex;
366
+ align-items: center;
367
+ justify-content: center;
368
+ font-size: 14px;
369
+ font-weight: 600;
370
+ z-index: 1;
371
+ }
372
+
373
+ .registration__step-circle--active {
374
+ background: #3b82f6;
375
+ color: #fff;
376
+ box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
377
+ }
378
+
379
+ .registration__step-circle--completed {
380
+ background: #22c55e;
381
+ color: #fff;
382
+ }
383
+
384
+ .registration__step-content {
385
+ margin-left: 16px;
386
+ }
387
+
388
+ .registration__step-label {
389
+ font-size: 12px;
390
+ color: #94a3b8;
391
+ }
392
+
393
+ .registration__step-title {
394
+ font-size: 14px;
395
+ font-weight: 500;
396
+ color: #94a3b8;
397
+ }
398
+
399
+ .registration__step-title--active {
400
+ color: #2563eb;
401
+ }
402
+
403
+ .registration__step-title--completed {
404
+ color: #16a34a;
405
+ }
406
+
407
+ /* CONTENT */
408
+ .registration__content {
409
+ flex: 1;
410
+ padding: 40px 32px;
411
+ }
412
+
413
+ .registration__header {
414
+ display: flex;
415
+ justify-content: space-between;
416
+ align-items: center;
417
+ margin-bottom: 8px;
418
+ }
419
+
420
+ .registration__title {
421
+ font-size: 24px;
422
+ font-weight: 700;
423
+ color: #1e293b;
424
+ }
425
+
426
+ .registration__step-count {
427
+ font-size: 14px;
428
+ color: #94a3b8;
429
+ }
430
+
431
+ .registration__description {
432
+ color: #475569;
433
+ margin-bottom: 32px;
434
+ }
435
+
436
+ /* INPUTS */
437
+ .registration__field {
438
+ margin-bottom: 24px;
439
+ }
440
+
441
+ .registration__label {
442
+ display: block;
443
+ font-size: 14px;
444
+ font-weight: 500;
445
+ color: #334155;
446
+ margin-bottom: 8px;
447
+ }
448
+
449
+ .registration__input-group {
450
+ display: flex;
451
+ gap: 12px;
452
+ }
453
+
454
+ .registration__select {
455
+ height: 48px;
456
+ border-radius: 12px;
457
+ border: 2px solid #e2e8f0;
458
+ padding-left: 12px;
459
+ font-size: 18px;
460
+ background: #fff;
461
+ }
462
+
463
+ .registration__input-group {
464
+ & select {
465
+ width: fit-content !important;
466
+ }
467
+ & input {
468
+ width: fit-content !important;
469
+ }
470
+ }
471
+
472
+ .registration__select:focus {
473
+ border-color: #3b82f6;
474
+ outline: none;
475
+ box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
476
+ }
477
+
478
+ .registration__input {
479
+ flex: 1;
480
+ height: 48px;
481
+ border-radius: 12px;
482
+ border: 2px solid #e2e8f0;
483
+ padding: 0 16px;
484
+ font-size: 18px;
485
+ width: 100%;
486
+ position: relative;
487
+ .phone {
488
+ position: absolute;
489
+ height: 100%;
490
+ left: 55px;
491
+ width: calc(100% - 55px);
492
+ border-radius: 0 12px 12px 0;
493
+ padding-left: 8px;
494
+ }
495
+ }
496
+
497
+ .date-picker {
498
+ position: relative;
499
+ width: 100%;
500
+ }
501
+
502
+ .date-picker input[readonly] {
503
+ height: 48px;
504
+ width: 100%;
505
+ border-radius: 8px;
506
+ border: 2px solid #e2e8f0 !important;
507
+ padding: 0 16px;
508
+ font-size: 18px;
509
+ width: 100%;
510
+ position: relative;
511
+ padding: 10px 40px 10px 12px; /* space for icon */
512
+ background-color: #ffffff;
513
+
514
+ cursor: pointer; /* important */
515
+ transition: all 0.2s ease;
516
+ }
517
+
518
+ .date-picker input[readonly]:focus-within {
519
+ outline: none;
520
+ border-color: #3b82f6 !important;
521
+ box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
522
+ }
523
+
524
+ .date-picker input:disabled {
525
+ background-color: #f3f4f6 !important;
526
+ border-color: #e5e7eb !important;
527
+ color: #9ca3af !important;
528
+ cursor: not-allowed !important;
529
+ }
530
+
531
+ .date-picker input[readonly]:disabled {
532
+ background-color: #f3f4f6 !important;
533
+ color: #9ca3af !important;
534
+ cursor: not-allowed !important;
535
+ }
536
+
537
+ .date-picker .calendar-icon {
538
+ position: absolute;
539
+ right: 10px;
540
+ top: 50%;
541
+ transform: translateY(-50%);
542
+ color: #6b7280;
543
+ pointer-events: auto;
544
+ }
545
+
546
+ .date-picker input:disabled + .calendar-icon {
547
+ color: #d1d5db !important;
548
+ cursor: not-allowed !important;
549
+ }
550
+
551
+ .lucide-phone {
552
+ position: absolute;
553
+ top: 50%;
554
+ transform: translateY(-50%);
555
+ }
556
+
557
+ .registration__input .phone {
558
+ flex: 1;
559
+ height: 100%;
560
+ border: none;
561
+ outline: none;
562
+ font-size: 18px;
563
+ }
564
+
565
+ .registration__input:focus-within {
566
+ border-color: #3b82f6;
567
+ outline: none;
568
+ box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
569
+ }
570
+
571
+ .registration__hint {
572
+ margin-top: 8px;
573
+ font-size: 12px;
574
+ color: #94a3b8;
575
+ }
576
+
577
+ /* OTP */
578
+ .registration__otp-group {
579
+ display: flex;
580
+ gap: 12px;
581
+ margin-bottom: 24px;
582
+ }
583
+
584
+ .registration__otp-input {
585
+ width: 56px;
586
+ height: 64px;
587
+ text-align: center;
588
+ font-size: 20px;
589
+ border-radius: 12px;
590
+ border: 2px solid #e2e8f0;
591
+ }
592
+
593
+ .registration__otp-input:focus {
594
+ border-color: #3b82f6;
595
+ outline: none;
596
+ box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
597
+ }
598
+
599
+ .registration__otp-footer {
600
+ display: flex;
601
+ justify-content: space-between;
602
+ margin-bottom: 32px;
603
+ font-size: 14px;
604
+ color: #64748b;
605
+ }
606
+
607
+ .registration__resend--active {
608
+ color: #2563eb;
609
+ cursor: pointer;
610
+ }
611
+
612
+ .registration__resend--disabled {
613
+ color: #cbd5f5;
614
+ cursor: not-allowed;
615
+ }
616
+
617
+ /* BUTTON */
618
+ .registration__button {
619
+ width: 100%;
620
+ height: 48px;
621
+ border-radius: 12px;
622
+ border: none;
623
+ background: #0070b4;
624
+ color: #fff;
625
+ font-size: 16px;
626
+ font-weight: 600;
627
+ cursor: pointer;
628
+ }
629
+
630
+ .registration__button:hover {
631
+ background: #298bc8;
632
+ }
633
+
634
+ .registration__button:disabled {
635
+ opacity: 0.6;
636
+ cursor: not-allowed;
637
+ }
638
+
639
+ /* PROGRESS */
640
+ .registration__progress {
641
+ margin-top: 40px;
642
+ }
643
+
644
+ .registration__progress-track {
645
+ height: 6px;
646
+ background: #f1f5f9;
647
+ border-radius: 999px;
648
+ overflow: hidden;
649
+ }
650
+
651
+ .registration__progress-bar {
652
+ height: 100%;
653
+ background: #3b82f6;
654
+ border-radius: 999px;
655
+ transition: width 0.4s ease;
656
+ }
657
+
658
+ .btn-tooltip-wrapper {
659
+ position: relative;
660
+
661
+ /* allow hover on wrapper instead of button */
662
+ .registration__button:disabled {
663
+ pointer-events: none;
664
+ }
665
+ }
666
+
667
+ .btn-tooltip {
668
+ position: absolute;
669
+ bottom: 110%;
670
+ left: 50%;
671
+ transform: translateX(-50%) translateY(5px);
672
+ background: #111827;
673
+ color: #fff;
674
+ font-size: 12px;
675
+ padding: 6px 10px;
676
+ border-radius: 6px;
677
+ white-space: nowrap;
678
+ opacity: 0;
679
+ transition: all 0.2s ease;
680
+ pointer-events: none;
681
+ }
682
+
683
+ /* show tooltip on hover */
684
+ .btn-tooltip-wrapper:hover .btn-tooltip {
685
+ opacity: 1;
686
+ transform: translateX(-50%) translateY(0);
687
+ }
688
+
689
+ .prefix-container {
690
+ display: flex;
691
+ align-items: center;
692
+ padding: 0 10px;
693
+ border-right: 1px solid #e1e1e1;
694
+ color: #505a5f;
695
+ font-weight: bold;
696
+ }
697
+
698
+ .error-text {
699
+ color: #d83a2f;
700
+ font-size: 14px;
701
+ margin-top: 4px;
702
+ }
703
+
704
+ .privacy-link {
705
+ color: #1a67a3;
706
+ cursor: pointer;
707
+ font-weight: 600;
708
+ font-size: 14px;
709
+ }
710
+
711
+ .registration__change-phone {
712
+ margin-top: 6px;
713
+ margin-bottom: 12px;
714
+ }
715
+
716
+ .registration__change-phone-btn {
717
+ background: none;
718
+ border: none;
719
+ color: #2563eb;
720
+ font-size: 13px;
721
+ font-weight: 500;
722
+ cursor: pointer;
723
+ padding: 0;
724
+ }
725
+
726
+ .registration__change-phone-btn:hover {
727
+ text-decoration: underline;
728
+ }
729
+
730
+ @media (max-width: 768px) {
731
+ /* WRAPPER */
732
+ .registration__wrapper {
733
+ flex-direction: column;
734
+ border-radius: 12px;
735
+ }
736
+
737
+ /* SIDEBAR */
738
+ .registration__sidebar {
739
+ width: 100%;
740
+ padding: 16px;
741
+ border-radius: 0;
742
+ border-bottom: 1px solid #e2e8f0;
743
+ }
744
+
745
+ .registration__sidebar__content {
746
+ padding: 8px;
747
+ }
748
+
749
+ .registration__sidebar-title {
750
+ display: none;
751
+ font-size: 11px;
752
+ margin-bottom: 16px;
753
+ text-align: center;
754
+ }
755
+
756
+ /* STEPS CONTAINER */
757
+ .registration__step {
758
+ align-items: center;
759
+ }
760
+
761
+ /* LINE (shorter for mobile) */
762
+ .registration__step-line {
763
+ left: 14px;
764
+ height: 32px;
765
+ top: 28px;
766
+ }
767
+
768
+ /* CIRCLE (smaller) */
769
+ .registration__step-circle {
770
+ width: 26px;
771
+ height: 26px;
772
+ font-size: 12px;
773
+ }
774
+
775
+ /* TEXT CONTENT */
776
+ .registration__step-content {
777
+ margin-left: 12px;
778
+ }
779
+
780
+ .registration__step-label {
781
+ font-size: 10px;
782
+ }
783
+
784
+ .registration__step-title {
785
+ font-size: 12px;
786
+ line-height: 1.3;
787
+ }
788
+
789
+ /* OPTIONAL: make steps scrollable horizontally (premium feel) */
790
+ .registration__sidebar > div > div:first-child {
791
+ display: flex;
792
+ overflow-x: auto;
793
+ gap: 16px;
794
+ padding-bottom: 10px;
795
+ }
796
+
797
+ .registration__step {
798
+ flex: 0 0 auto;
799
+ min-width: 140px;
800
+ }
801
+
802
+ /* Hide vertical line for horizontal layout */
803
+ .registration__step-line {
804
+ display: none;
805
+ }
806
+
807
+ /* FOOTER */
808
+ .sidebar-footer {
809
+ display: none;
810
+ text-align: center;
811
+ font-size: 9px;
812
+ margin-top: 12px;
813
+ }
814
+
815
+ /* CONTENT */
816
+ .registration__content {
817
+ padding: 20px 16px;
818
+ }
819
+
820
+ .registration__title {
821
+ font-size: 20px;
822
+ }
823
+
824
+ .registration__description {
825
+ font-size: 14px;
826
+ margin-bottom: 20px;
827
+ }
828
+ }