uix-login-dialog {
  display: flex;
  height: 100dvh;
  justify-content: center;
  align-items: center;
}

uix-login-dialog .label {
  font-weight: bold;
  padding-bottom: 5px;
}

uix-login-dialog #title {
  color: var(--text);
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
uix-login-dialog #title img {
  height: 1.5em;
}

uix-login-dialog input {
  width: 100%;
}

uix-login-dialog button[type=submit] {
  width: 100%;
  margin-top: var(--margin);
}

uix-login-dialog .bottom-div {
  margin-top: 35px;
  padding-top: 10px;
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: baseline;
}

uix-login-dialog .dialog-content {
  background-color: var(--bg-opaque-2);
  display: flex;
  display: flex;
  flex-direction: column;
  padding: 45px;
  padding-bottom: 25px;
  align-items: stretch;
  justify-content: center;
  height: 100dvh;
  width: 100vw;
}

@media screen and (min-width: 600px) {
uix-login-dialog   .bottom-div {
    margin-top: 15px;
  }

uix-login-dialog   .dialog-content {
    display: flex;
    border-radius: 9.5px;
    display: flex;
    flex-direction: column;
    padding: 45px;
    padding-bottom: 25px;
    align-items: stretch;
    width: min(100vw, 350px);
    max-width: 100vw;
    height: auto;
  }

  /* border */
uix-login-dialog   .gradient-border {
    --borderRadius: 6.5px;
    --borderWidth: 4px;
    margin: 10px;
    position: relative;
    overflow: visible;
  }

uix-login-dialog   .gradient-border:after {
    content: "";
    position: absolute;
    top: calc(-1 * var(--borderWidth));
    left: calc(-1 * var(--borderWidth));
    height: calc(100% + var(--borderWidth) * 2);
    width: calc(100% + var(--borderWidth) * 2);
    background: linear-gradient(60deg, var(--accent), #8172e2, var(--red));
    border-radius: calc(2 * var(--borderRadius));
    z-index: -1;
    -webkit-animation: animatedgradient 3s ease alternate infinite;
    animation: animatedgradient 3s ease alternate infinite;
    background-size: 300% 300%;
  }
}
@-webkit-keyframes animatedgradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes animatedgradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
/* spinner */
uix-login-dialog .loader {
  position: absolute;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding-bottom: 20px;
  background: var(--bg_default);
  display: flex;
  justify-content: center;
  align-items: center;
}

uix-login-dialog .loader span {
  width: 48px;
  height: 48px;
  border: 5px solid #FFF;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
