I want to add a gradient like the Image Attached to a Modal.
The Issue i am facing is There is a small gap in bottom left marked that should not be there and should have a curve like
i am adding this css for outer gradient effect-
.dialog {
--s: 1px;
--x: -10px;
--y: 10px;
border-radius: 12px;
}
.dialog::before {
content: "";
position: absolute;
inset: calc(-1 * var(--s));
transform: translate3d(var(--x), var(--y), -1px);
clip-path: polygon(-100vmax -100vmax, 100vmax -100vmax, 100vmax 100vmax, -100vmax 100vmax, -100vmax -100vmax, calc(0px + var(--s) - var(--x)) calc(0px + var(--s) - var(--y)), calc(0px + var(--s) - var(--x)) calc(100% - var(--s) - var(--y)), calc(100% - var(--s) - var(--x)) calc(100% - var(--s) - var(--y)), calc(100% - var(--s) - var(--x)) calc(0px + var(--s) - var(--y)), calc(0px + var(--s) - var(--x)) calc(0px + var(--s) - var(--y)));
border-radius: 12px;
background: linear-gradient(90deg, #74469b 0%, #05aaaa 100%);
}

The gradient you added is on a polygon that is
Lshaped. Instead, I opted for a same size div, slightly offset to the left and bottom.