:host { display: flex; align-items: center; justify-content: center; height: 100%; margin-top: -66px; background: rgba(0, 0, 0, .65) url("https://4kwallpapers.com/images/walls/thumbs_2t/13136.png"); background-blend-mode: darken; background-size: cover; } #box { display: flex; flex-direction: column; max-width: 500px; gap: 10px; backdrop-filter: blur(25px); background-color: rgba(0, 0, 0, 0.1); padding: 30px; color: white; border-radius: 5px; border-style: solid; border-width: 1px; border-color: rgb(140, 140, 255); & > div { display: flex; flex-direction: column; } } #password { border-bottom-left-radius: 0; border-bottom-right-radius: 0; } .border { border-style: solid; border-width: 1px; padding: 10px; margin: 10px; position: absolute; background-color: white; box-shadow: 0 0 10px 10px black; } #bar { height: 5px; width: 100%; appearance: none; overflow: hidden; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; /*margin-top: -5px;*/ } #bar::-webkit-progress-bar { background-color: lightgray; transition: width 0.5s ease-in-out, background-color 0.5s ease-in-out; } .color0::-webkit-progress-value { background: rgba(255, 0 ,0, 1); transition: background-color 0.5s ease-in-out, width 0.5s ease-in-out; } .color1::-webkit-progress-value { background: rgba(255, 0 ,0, 1); transition: background-color 0.5s ease-in-out, width 0.5s ease-in-out; } .color2::-webkit-progress-value { background: rgba(255, 165, 0, 1); transition: background-color 0.5s ease-in-out, width 0.5s ease-in-out; } .color3::-webkit-progress-value { background: rgba(255, 255, 0, 1); transition: background-color 0.5s ease-in-out, width 0.5s ease-in-out; } .color4::-webkit-progress-value { background: rgba(173, 255, 47, 1); transition: background-color 0.5s ease-in-out, width 0.5s ease-in-out; } .color5::-webkit-progress-value { background: rgba(50, 205, 50, 1); transition: background-color 0.5s ease-in-out, width 0.5s ease-in-out; } .color6::-webkit-progress-value { background: rgba(0, 128, 0, 1); transition: background-color 0.5s ease-in-out, width 0.5s ease-in-out; } #requirement2, #statusText, #passwordStatusText, #usernameStatusText { color: red; } #passReq { display: flex; flex-direction: column; margin-top: 10px; } #box > div { div { display: flex; flex-direction: column; } }