*:not(head, script, svg, svg *),
*:not(head, script, svg, svg *)::before,
*:not(head, script, svg, svg *)::after {
    box-sizing: border-box;
}

body,
html {
    overflow-x: hidden;
}

body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    font-family: var(--bs-body-font-family);
    font-size: var(--bs-body-font-size);
    font-weight: var(--bs-body-font-weight);
    line-height: var(--bs-body-line-height);
    color: #d1d1d8;
    text-align: var(--bs-body-text-align);
    background-color: #22242c;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.background-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.background-overlay img {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    object-fit: cover;
}

.background-overlay::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 25%;
    height: 25%;
    background-color: transparent;
    content: "";
    animation: bgAnimate1 20s ease infinite;
}

@keyframes bgAnimate1 {
    0% {
        width: 25%;
        height: 25%;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        backdrop-filter: blur(2vmin) hue-rotate(0deg);
        -webkit-backdrop-filter: blur(2vmin) hue-rotate(0deg);
    }
    12.49% {
        left: 0;
    }
    12.5% {
        width: 100%;
        left: unset;
        backdrop-filter: blur(0vmin) hue-rotate(150deg);
        -webkit-backdrop-filter: blur(0vmin) hue-rotate(150deg);
    }
    25% {
        width: 25%;
        height: 25%;
        backdrop-filter: blur(2vmin) hue-rotate(300deg);
        -webkit-backdrop-filter: blur(2vmin) hue-rotate(300deg);
    }
    37.49% {
        top: 0;
        bottom: 0;
    }
    37.5% {
        top: unset;
        height: 100%;
        backdrop-filter: blur(0vmin) hue-rotate(150deg);
        -webkit-backdrop-filter: blur(0vmin) hue-rotate(150deg);
    }
    50% {
        width: 25%;
        height: 25%;
        backdrop-filter: blur(2vmin) hue-rotate(0deg);
        -webkit-backdrop-filter: blur(2vmin) hue-rotate(0deg);
    }
    62.49% {
        left: unset;
        right: 0;
    }
    62.5% {
        right: unset;
        width: 100%;
        height: 100%;
        backdrop-filter: blur(0vmin) hue-rotate(150deg);
        -webkit-backdrop-filter: blur(0vmin) hue-rotate(150deg);
    }
    74.9% {
        top: unset;
        bottom: 0;
    }
    75% {
        width: 25%;
        height: 25%;
        backdrop-filter: blur(2vmin) hue-rotate(300deg);
        -webkit-backdrop-filter: blur(2vmin) hue-rotate(300deg);
    }
    87.49% {
        top: unset;
        bottom: 0;
    }
    87.5% {
        height: 100%;
        top: 0;
        backdrop-filter: blur(0vmin) hue-rotate(150deg);
        -webkit-backdrop-filter: blur(0vmin) hue-rotate(150deg);
    }
    100% {
        width: 25%;
        height: 25%;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        backdrop-filter: blur(2vmin) hue-rotate(0deg);
        -webkit-backdrop-filter: blur(2vmin) hue-rotate(0deg);
    }
}

.background-overlay::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 25%;
    height: 25%;
    background-color: transparent;
    content: "";
    animation: bgAnimate2 10s ease infinite;
}

@keyframes bgAnimate2 {
    0% {
        width: 25%;
        height: 25%;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        backdrop-filter: blur(2vmin) hue-rotate(0deg);
        -webkit-backdrop-filter: blur(2vmin) hue-rotate(0deg);
    }
    12.49% {
        top: 0;
    }
    12.5% {
        height: 100%;
        top: unset;
        backdrop-filter: blur(0vmin) hue-rotate(150deg);
        -webkit-backdrop-filter: blur(0vmin) hue-rotate(150deg);
    }
    25% {
        width: 25%;
        height: 25%;
        backdrop-filter: blur(2vmin) hue-rotate(300deg);
        -webkit-backdrop-filter: blur(2vmin) hue-rotate(300deg);
    }
    37.49% {
        left: 0;
        right: 0;
    }
    37.5% {
        left: unset;
        width: 100%;
        backdrop-filter: blur(0vmin) hue-rotate(150deg);
        -webkit-backdrop-filter: blur(0vmin) hue-rotate(150deg);
    }
    50% {
        width: 25%;
        height: 25%;
        backdrop-filter: blur(2vmin) hue-rotate(0deg);
        -webkit-backdrop-filter: blur(2vmin) hue-rotate(0deg);
    }
    62.49% {
        top: unset;
        bottom: 0;
    }
    62.5% {
        top: 0;
        height: 100%;
        backdrop-filter: blur(0vmin) hue-rotate(150deg);
        -webkit-backdrop-filter: blur(0vmin) hue-rotate(150deg);
    }
    74.9% {
        bottom: unset;
        right: 0;
    }
    75% {
        width: 25%;
        height: 25%;
        left: unset;
        backdrop-filter: blur(2vmin) hue-rotate(300deg);
        -webkit-backdrop-filter: blur(2vmin) hue-rotate(300deg);
    }
    87.49% {
        left: unset;
        right: 0;
    }
    87.5% {
        width: 100%;
        left: 0;
        backdrop-filter: blur(0vmin) hue-rotate(150deg);
        -webkit-backdrop-filter: blur(0vmin) hue-rotate(150deg);
    }
    100% {
        width: 25%;
        height: 25%;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        backdrop-filter: blur(2vmin) hue-rotate(0deg);
        -webkit-backdrop-filter: blur(2vmin) hue-rotate(0deg);
    }
}

.auth-container {
    position: absolute;
    width: 100%;
    max-width: 480px;
    border: 1px solid rgba(209, 209, 214, 0.5);
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    background-color: rgba(34, 36, 44, 0.6);
    z-index: 1;
    animation: bgAnimate3 10s linear infinite;
    color: #d1d1d8;
}

@keyframes bgAnimate3 {
    from {
        backdrop-filter: blur(2vmin) hue-rotate(0deg);
        -webkit-backdrop-filter: blur(2vmin) hue-rotate(0deg);
    }
    to {
        backdrop-filter: blur(2vmin) hue-rotate(360deg);
        -webkit-backdrop-filter: blur(2vmin) hue-rotate(360deg);
    }
}

.auth-container::after {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    background-image: linear-gradient(
        320deg,
        #ff20fb,
        #f424ff,
        #d42dff,
        #b139ff,
        #9742ff,
        #8d46ff
    );
    content: "";
    z-index: 5;
    animation: bgAnimate4 5s linear infinite;
}

@keyframes bgAnimate4 {
    from {
        filter: hue-rotate(0deg) brightness(1.5);
        transform: rotateZ(0deg);
        border-radius: 0;
    }
    50% {
        border-radius: 49%;
        filter: hue-rotate(180deg) brightness(1.5);
    }
    to {
        filter: hue-rotate(360deg) brightness(1.5);
        transform: rotateZ(360deg);
        border-radius: 0;
    }
}

.auth-header {
    font-family: "Major Mono Display", monospace;
    font-size: 24px;
    text-wrap: balance;
}

.auth-body {
    font-family: "Figtree", sans-serif;
    text-wrap: pretty;
}

.auth-body .title {
    color: #d1d1d8;
}

@media (max-width: 780px) {
    .auth-container {
        max-width: 90%;
    }
}

@media (max-width: 600px) {
    .auth-body {
        font-size: 0.75rem;
    }

    .auth-header {
        font-size: 1rem;
    }
}

.form-control,
.form-control:focus {
    background-color: transparent;
    color: #d1d1d8;
}
