login-register.scss 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. :root {
  2. --password-visibility-toggle-width: 35px;
  3. }
  4. .login-register-or-text-container {
  5. display: flex;
  6. gap: var(--spacing-05);
  7. padding: var(--spacing-08) 0 var(--spacing-05) 0;
  8. align-items: center;
  9. font-size: var(--font-size-02);
  10. line-height: 1;
  11. margin: 0;
  12. &::before,
  13. &::after {
  14. content: '';
  15. display: block;
  16. flex-grow: 1;
  17. height: 1px;
  18. background-color: var(--neutral-20);
  19. }
  20. }
  21. .login-register-form {
  22. padding: var(--spacing-08) var(--spacing-08) 0 var(--spacing-08);
  23. border-bottom: solid 1px var(--border-divider);
  24. &:last-child {
  25. border-bottom-width: 0;
  26. }
  27. }
  28. .form-group-password {
  29. display: flex;
  30. position: relative;
  31. flex-direction: column;
  32. .form-group-password-input {
  33. input.form-control,
  34. // needlessly specific selectors to override competing styles
  35. input.form-control.form-control-ds.form-control-lg {
  36. padding-right: var(--password-visibility-toggle-width);
  37. }
  38. }
  39. .visibility-toggle {
  40. position: absolute;
  41. right: 0;
  42. top: 0;
  43. width: var(--password-visibility-toggle-width);
  44. height: 100%;
  45. display: flex;
  46. align-items: center;
  47. justify-content: center;
  48. border: unset;
  49. background-color: unset;
  50. #visibility-icon-off {
  51. margin-top: 2px; // workaround for the icon not having the same center as the non-slashed one
  52. }
  53. }
  54. }