:root{
    --bg:linear-gradient(160deg, #ffc354, #ff5050, #ad5cff);
}

*{
    font-family: system-ui;
    margin: 0;
    padding: 0;
    transition: 0.2s all ease-in-out;
    color: white;
    box-sizing: border-box;
}
html{
    /* background:var(--bg); */
    background-color: #1e222b;
    background-repeat: no-repeat;
}
html, body{
    height: 100%;
}

body{
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}
@keyframes scroll {
    0%{
        background-position: 0% 0%;
    }
    50%{
        background-position: 100% 0%;
    }
    100%{
        background-position: 0% 0%;
    }
}
h1{
    display: block;
    margin:auto;
    background-clip:text;
    color: transparent;
    background-color: transparent;
    -webkit-text-fill-color: transparent;
    background-image: var(--bg);
    background-size:400%;
    animation: scroll 3s ease infinite;
}

input{
  width: 100%;
    padding: 10px;
}
input:first-of-type{
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
}

input:nth-of-type(2){
    flex-grow: 1;
}

.container{
    display: flex;
    flex-direction: column;
    align-items:center;
}
.container *{
    flex-grow: 1;
}

.container form{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 10px;
  margin-bottom: 30px;
}
button {
    background: #1e222b;
    border: none;
    font-weight: 700;
    color: white;
    padding: 10px;
    position: relative;
    border-radius: 5px;
  }
@property --angle{
  syntax:"<angle>";
  initial-value:0deg;
  inherits:false;
}

@keyframes spin {
    from{
        --angle:0deg;
    }
    to{
        --angle:360deg;
    }
}

button::after, button::before, input.result.success::after, input.result.success::before{
    content:"";
    position: absolute;
    height: 100%;
    width: 100%;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    /*background-image: conic-gradient(from var(--angle), transparent, white);*/
  background-image:conic-gradient(from var(--angle), transparent, #5589ff);
    animation: 3s linear infinite spin;
    z-index: -1;
    padding: 2px;
    border-radius: 5px;
}
button::before{
    filter:blur(1.5rem);
    opacity: 0.8;
}

button:hover{
    cursor: pointer;
}

p{
  width: 100%;
  font-size: 12px;
}
input {
    background: #1e222b;
    border: 1px solid white;
    color: #afc7ff;
    border-radius: 5px;
  }
  button:focus, input:focus {
    outline: none;
  }
  input.result{
    margin-top: 20px;
  }
  .error{
    background-color: #432626;
    color: #fb6565;
    border: 1px solid #fb6565;
  }
  .success{
    background-color: #17223a;
    color: #6da0ff;;
    border: 1px solid #6da0ff;;
  }
  input.result.success::after, input.result.success::before{
    background-image: conic-gradient(from var(--angle), transparent, #6da0ff);
  }


button.github-btn {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  margin: auto;
  background: black;
  color: white;
  align-items: center;
}
button.github-btn:hover{
  background:#2b3137;
}
button.github-btn img {
  background: white;
  width: 16px;
  height: 16px;
  display: block;
  border-radius: 50%;
  padding: 1px;
}
button.github-btn * {
  flex-grow: 0;
}

.paste::before, .paste::after{
  background:none;
}

form.login{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

form.login button[type="submit"]{
  margin-top: 5px;
}

.result {
    width: 100%;
}