:root {
  --current-progress: 0%;
}

body {
  display: block;
}

body::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 50px;
  height: 50px;
  background-image: url(./../images/brains/LeBrain_9444E0_200_200.webp);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

h2 {
  margin-bottom: 8px;
  margin-top: 8px;
}

#background-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url(../images/background/light-source.svg);
  background-size: cover;
  background-position: center;
  z-index: -1;
}

footer {
  position: fixed;
}

#content-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100% - 64px);
  width: 100%;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 16px;
  width: 320px;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(8, 7, 16, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: width 1s ease-out forwards;
}

.container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background-color: var(--lebrain-pink);
  animation: none;
}

.container.animate::after {
  animation: fillContainer 5s linear forwards;
}

.container.animate-error::after {
  animation: errorWhileLogin 1s ease-out forwards;
}

@keyframes fillContainer {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

@keyframes errorWhileLogin {
  0% {
    width: var(--current-progress);
  }
  100% {
    width: 0%;
    background-color: var(--color-red-3);
  }
}

.formular-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  gap: 16px;
  flex-shrink: 1;
  height: 100%;
}

.formular-container > * {
  width: 100%;
  text-align: center;
}

.formular-container-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 32px;
}

.login-formular {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
  width: 100%;
}

.login-formular > * {
  width: 100%;
}

#formular-container-link-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 8px;
}

.black-link-container-with-gradien-font-color {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  text-decoration: none;
  background: rgb(26, 26, 26);
  border-radius: var(--border-radius);
  padding: 8px 16px;
  transition: background 0.25s ease;
  position: relative;
  overflow: hidden;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(
    74deg,
    var(--color-1-magenta) 10%,
    var(--color-2-lila) 20%,
    var(--color-5-light-blue),
    var(--color-5-green)
  );
}

.black-link-container-with-gradien-font-color::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1a1a1a;
  z-index: -1;
  border-radius: var(--border-radius);
}

.error-text-container {
  box-sizing: border-box;
}

.error-text-container > span {
  font-size: 0.8rem;
  color: var(--color-red-3);
}

a {
  font-size: 0.8rem;
  text-decoration: none;
}

button {
  margin-top: 24px;
}

.input-single-box {
  border-width: 1px;
}

.input-first-box {
  border-radius: 8px 8px 0px 0px;
}

.input-last-box {
  border-radius: 0px 0px 8px 8px;
}

#password-not-equal {
  display: block;
  position: absolute;
  left: 20px;
  width: 200px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 0.25rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-size: 0.8em;
  font-weight: 500;
  text-align: center;
  transition: opacity 0.25s ease;
}

#password-not-equal:after {
  content: "";
  position: absolute;
  top: 50%;
  left: -29px;
  margin-top: -15px;
  border-width: 15px;
  border-style: solid;
  rotate: 180deg;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.4);
}

#register-details-formular {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.password-eye-container {
  width: 28px;
  display: flex;
  min-height: 100%;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  position: absolute;
  top: 0;
  right: 8px;
  color: gray;
  cursor: pointer;
  transition: color 0.15s ease-in-out;
  will-change: color;
}

.password-eye-container:hover {
  color: black;
}

.password-eye-open {
  position: relative;
  color: rgb(59, 59, 59);
  display: none;
}

.password-eye-closed {
  position: relative;
  color: rgb(59, 59, 59);
  display: flex;
}

@keyframes move {
  100% {
    transform: translate3d(0, 0, 1px) rotate(360deg);
  }
}

.background {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  background: radial-gradient(circle, rgb(39, 38, 38), rgb(8, 8, 8));
  overflow: hidden;
}

.background span {
  width: 50vmin;
  height: 50vmin;
  border-radius: 50vmin;
  backface-visibility: hidden;
  position: absolute;
  animation: move;
  animation-duration: 1;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.background span:nth-child(0) {
  color: #390060;
  top: 55%;
  left: 29%;
  animation-duration: 356s;
  animation-delay: -348s;
  transform-origin: 15vw 16vh;
  box-shadow: 100vmin 0 12.990096021289355vmin currentColor;
}
.background span:nth-child(1) {
  color: #567ffe;
  top: 81%;
  left: 68%;
  animation-duration: 162s;
  animation-delay: -165s;
  transform-origin: 13vw 11vh;
  box-shadow: 100vmin 0 12.645635626476023vmin currentColor;
}
.background span:nth-child(2) {
  color: #5200ff;
  top: 16%;
  left: 95%;
  animation-duration: 58s;
  animation-delay: -97s;
  transform-origin: 18vw 1vh;
  box-shadow: -100vmin 0 13.126095289743807vmin currentColor;
}
.background span:nth-child(3) {
  color: #f000c4;
  top: 32%;
  left: 28%;
  animation-duration: 128s;
  animation-delay: -482s;
  transform-origin: -12vw -13vh;
  box-shadow: -100vmin 0 13.214850867279964vmin currentColor;
}
.background span:nth-child(4) {
  color: #567ffe;
  top: 46%;
  left: 94%;
  animation-duration: 178s;
  animation-delay: -152s;
  transform-origin: 9vw -22vh;
  box-shadow: -100vmin 0 13.316177539844379vmin currentColor;
}
.background span:nth-child(5) {
  color: #f000c4;
  top: 2%;
  left: 41%;
  animation-duration: 244s;
  animation-delay: -331s;
  transform-origin: 9vw -4vh;
  box-shadow: 100vmin 0 13.459017777321819vmin currentColor;
}
.background span:nth-child(6) {
  color: #390060;
  top: 42%;
  left: 76%;
  animation-duration: 290s;
  animation-delay: -35s;
  transform-origin: -15vw -21vh;
  box-shadow: 100vmin 0 13.127327516083419vmin currentColor;
}
.background span:nth-child(7) {
  color: #5200ff;
  top: 48%;
  left: 36%;
  animation-duration: 55s;
  animation-delay: -117s;
  transform-origin: 4vw -2vh;
  box-shadow: -100vmin 0 13.260282652241884vmin currentColor;
}
.background span:nth-child(8) {
  color: #d000ff;
  top: 24%;
  left: 2%;
  animation-duration: 131s;
  animation-delay: -454s;
  transform-origin: 18vw 4vh;
  box-shadow: 100vmin 0 13.101913191419634vmin currentColor;
}
.background span:nth-child(9) {
  color: #5200ff;
  top: 30%;
  left: 11%;
  animation-duration: 14s;
  animation-delay: -111s;
  transform-origin: 7vw -24vh;
  box-shadow: -100vmin 0 13.088465576190348vmin currentColor;
}
.background span:nth-child(10) {
  color: #d000ff;
  top: 28%;
  left: 14%;
  animation-duration: 273s;
  animation-delay: -220s;
  transform-origin: -9vw 17vh;
  box-shadow: 100vmin 0 12.741940217872298vmin currentColor;
}
.background span:nth-child(11) {
  color: #f000c4;
  top: 41%;
  left: 68%;
  animation-duration: 481s;
  animation-delay: -279s;
  transform-origin: -23vw -7vh;
  box-shadow: -100vmin 0 12.624565750520162vmin currentColor;
}
.background span:nth-child(12) {
  color: #f000c4;
  top: 50%;
  left: 34%;
  animation-duration: 257s;
  animation-delay: -162s;
  transform-origin: 1vw -6vh;
  box-shadow: 100vmin 0 13.041014116220706vmin currentColor;
}
.background span:nth-child(13) {
  color: #d000ff;
  top: 58%;
  left: 33%;
  animation-duration: 275s;
  animation-delay: -99s;
  transform-origin: -1vw 23vh;
  box-shadow: 100vmin 0 12.666059091854883vmin currentColor;
}
.background span:nth-child(14) {
  color: #5200ff;
  top: 63%;
  left: 43%;
  animation-duration: 196s;
  animation-delay: -229s;
  transform-origin: -22vw 18vh;
  box-shadow: -100vmin 0 12.978399477523316vmin currentColor;
}
.background span:nth-child(15) {
  color: #567ffe;
  top: 86%;
  left: 86%;
  animation-duration: 126s;
  animation-delay: -211s;
  transform-origin: 8vw -10vh;
  box-shadow: -100vmin 0 13.489628204203878vmin currentColor;
}
.background span:nth-child(16) {
  color: #5200ff;
  top: 91%;
  left: 31%;
  animation-duration: 476s;
  animation-delay: -288s;
  transform-origin: 8vw 11vh;
  box-shadow: 100vmin 0 12.989259291462508vmin currentColor;
}
.background span:nth-child(17) {
  color: #5200ff;
  top: 72%;
  left: 33%;
  animation-duration: 326s;
  animation-delay: -148s;
  transform-origin: 24vw 22vh;
  box-shadow: 100vmin 0 12.613327626847088vmin currentColor;
}
.background span:nth-child(18) {
  color: #567ffe;
  top: 6%;
  left: 10%;
  animation-duration: 190s;
  animation-delay: -344s;
  transform-origin: -9vw -3vh;
  box-shadow: 100vmin 0 12.99815562518346vmin currentColor;
}
.background span:nth-child(19) {
  color: #f000c4;
  top: 44%;
  left: 51%;
  animation-duration: 403s;
  animation-delay: -2s;
  transform-origin: 16vw 15vh;
  box-shadow: 100vmin 0 13.423362840211293vmin currentColor;
}
.background span:nth-child(20) {
  color: #390060;
  top: 6%;
  left: 12%;
  animation-duration: 268s;
  animation-delay: -386s;
  transform-origin: -2vw 24vh;
  box-shadow: 100vmin 0 13.192453051369075vmin currentColor;
}
.background span:nth-child(21) {
  color: #5200ff;
  top: 73%;
  left: 57%;
  animation-duration: 359s;
  animation-delay: -23s;
  transform-origin: -11vw -16vh;
  box-shadow: -100vmin 0 12.786198274148726vmin currentColor;
}
.background span:nth-child(22) {
  color: #d000ff;
  top: 62%;
  left: 15%;
  animation-duration: 483s;
  animation-delay: -86s;
  transform-origin: 5vw -22vh;
  box-shadow: -100vmin 0 12.547229123751121vmin currentColor;
}
.background span:nth-child(23) {
  color: #f000c4;
  top: 51%;
  left: 55%;
  animation-duration: 429s;
  animation-delay: -141s;
  transform-origin: -12vw -16vh;
  box-shadow: -100vmin 0 13.12220847172022vmin currentColor;
}
.background span:nth-child(24) {
  color: #390060;
  top: 81%;
  left: 43%;
  animation-duration: 148s;
  animation-delay: -470s;
  transform-origin: 22vw 22vh;
  box-shadow: -100vmin 0 13.035980407620844vmin currentColor;
}

@media only screen and (max-width: 320px) {
  .container {
    min-width: 95%;
  }
}
