I’m trying to make a login form with an unusual shape, but I’m struggling with the border-radius on a <div> with a clip-path.
This is the CSS I used on a <div>:
background: red;
height: 80%;
-webkit-clip-path: polygon(100% 0, 0 0, 100% 100%);
clip-path: polygon(100% 0, 0 0, 100% 100%);
border-radius: 5em;
It currently looks like this:
As you can see, the border-radius in the upper-left and lower-right corners are cut off. Is there a workaround to make this clean?
Instead of the corners being cut off I'd like them to be as shown in the image below.


clip-patha lot more detailed (to have dozens or even hundreds of points very close to each other).