:root {
    --main-blue: #8fc2e2;
    --secondary-blue: #61b0de;
    --another-blue: #3a98cf;
    --primary-green: rgb(154, 222, 189);
    --secondary-green: rgb(134, 209, 157);
}

*:before,
*:after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: #104064;
    height: 100vh;
    width: 100vw;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.background {
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden !important;
}

.background .shape {
    height: 200px;
    width: 200px;
    position: absolute;
    border-radius: 50%;
}

.shape:first-child {
    background: linear-gradient(#01558B,
            #19577d);
    left: 20vw;
    top: 10vh;
    animation: float1 10s infinite linear;
}


.shape:last-child {
    background: linear-gradient(to right,
            #0968a3,
            #2b77a6);
    right: 20vw;
    bottom: 10vh;
    animation: float2 30s infinite linear;
}

#mainform {
    box-sizing: content-box;
    background-color: rgba(255, 255, 255, 0.13);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(8, 7, 16, 0.2);
    padding: 35px 35px 20px 35px;
    z-index: 3;
    margin-bottom: 15vh;
    height: 400px;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

#mainform * {
    color: #ffffff;
    letter-spacing: 0.5px;
    outline: none;
    border: none;
}

#mainform h3 {
    font-size: 32px;
    font-weight: 500;
    line-height: 42px;
    text-align: center;
    user-select: none;
    margin: 0;
}

#loginPage {
    display: flex;
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    width: 100vw;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    transition: all ease-in-out .4s;
}

label {
    display: block;
    margin-top: 30px;
    font-size: 16px;
    font-weight: 500;
}

input {
    box-sizing: border-box;
    display: block;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 300;
}

::placeholder {
    color: #e5e5e5;
}

#loginBtn {
    width: 100%;
    background: linear-gradient(-45deg, var(--main-blue), var(--secondary-green), var(--secondary-blue));
    background-size: 400% 400%;
    color: #ffffff;
    padding: 15px 0;
    font-size: 18px;
    font-weight: 600;
    border-radius: 15px;
    cursor: pointer;
    transition: all ease-in-out .5s;
}

.loadingLogin {
    animation: gradient 15s ease infinite;
    box-shadow: 0px 0px 15px black;
}

.logos {
    user-select: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
    padding: 20px;
    z-index: 3;
    background-color: rgba(36, 35, 35, 0.4);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(50, 46, 46, 0.1);
    box-shadow: 0 0 40px rgba(8, 7, 16, 0.2);
}

.logos img {
    max-height: 40px;
    /* all logos same height */
    object-fit: contain;
    vertical-align: middle;
}

.alerta {
    position: fixed;
    top: 5px;
    left: 0;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.alerta:hover {
    cursor: pointer;
}

.alerta div {
    background-color: #d2d6ae;
    font-size: 15px;
    text-align: center;
    border-radius: 5px;
    z-index: 5;
    padding: 0 5px 0 5px;
    text-wrap: no-wrap;
}

.lock {
    width: 20px;
    height: 20px;
    filter: invert();
}

.loader {
    width: 40px;
    aspect-ratio: 1;
    --c: no-repeat linear-gradient(var(--another-blue) 0 0);
    background:
        var(--c) 0 0,
        var(--c) 0 100%,
        var(--c) 50% 0,
        var(--c) 50% 100%,
        var(--c) 100% 0,
        var(--c) 100% 100%;
    background-size: 8px 50%;
    animation: l7-0 1s infinite;
    position: relative;
    overflow: hidden;
}

.loader:before {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--another-blue);
    top: calc(50% - 4px);
    left: -8px;
    animation: inherit;
    animation-name: l7-1;
}

@keyframes l7-0 {
    16.67% {
        background-size: 8px 30%, 8px 30%, 8px 50%, 8px 50%, 8px 50%, 8px 50%
    }

    33.33% {
        background-size: 8px 30%, 8px 30%, 8px 30%, 8px 30%, 8px 50%, 8px 50%
    }

    50% {
        background-size: 8px 30%, 8px 30%, 8px 30%, 8px 30%, 8px 30%, 8px 30%
    }

    66.67% {
        background-size: 8px 50%, 8px 50%, 8px 30%, 8px 30%, 8px 30%, 8px 30%
    }

    83.33% {
        background-size: 8px 50%, 8px 50%, 8px 50%, 8px 50%, 8px 30%, 8px 30%
    }
}

@keyframes l7-1 {
    20% {
        left: 0px
    }

    40% {
        left: calc(50% - 4px)
    }

    60% {
        left: calc(100% - 8px)
    }

    80%,
    100% {
        left: 100%
    }
}

#loggedInPage {
    z-index: 4;
    color: #ffffff;
    background-color: rgba(0, 0, 0, .1);
    height: 100vh;
}

#logoutBtn {
    all: unset;
    color: var(--secondary-blue);
    text-decoration: underline;
    user-select: none;
}

#logoutBtn:hover {
    cursor: pointer;
}

#errorHolder {
    position: fixed;
    left: 0;
    width: 100vw;
    bottom: 0;
    background-color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
}

.error {
    margin: 5px 0 5px 0;
    color: rgb(255, 178, 178);
}

#tfaPage {
    background-color: rgba(0, 0, 0, .5);
    backdrop-filter: blur(10px);
    color: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding-top: 50px;
    z-index: 1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    box-sizing: border-box;
    padding: 30px;
    transition: all ease-in-out .5s;
    z-index: 2;
}

#tfaPage p {
    margin: 0;
    text-align: center;
}

#tfaPage h1 {
    margin: 0;
    text-align: center;
}


#tfacode {
    background-color: rgb(27, 38, 52);
    color: white;
    font-size: 30px;
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    outline: none;
    border: none;
    border-radius: 15px;
    max-width: 80vw;
}

#sendtfa {
    aspect-ratio: 1/1;
    width: 50px;
    height: 50px;
    padding: 0;
    margin: 0;
    border: none;
    outline: none;
    transform: rotate(90deg);
    background: linear-gradient(-45deg, var(--main-blue), var(--secondary-green), var(--secondary-blue));
    background-size: 400% 400%;
    border-radius: 15px;
}

#sendtfa img {
    height: 40px;
    width: 40px;
}

#loading {
    background-color: rgba(0, 0, 0, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
}

h1 {
    text-align: center;
}

p {
    text-align: center;
}

.inputHolder {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.inputHolder * {
    flex-grow: 1;
}

.inputHolder img {
    height: 20px;
    width: 20px;
    flex-grow: 0 !important;
    filter: brightness(0) invert();
    user-select: none;
}

@media (orientation: portrait) {
    #mainform {
        position: absolute;
        transform: translate(0, -55%);
        top: 50%;
        left: 0;
        border-radius: 0;
        backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 40px rgba(8, 7, 16, 0.6);
        width: 100vw;
        box-sizing: border-box;
        max-width: unset;
    }

    .background {
        overflow: hidden;
    }

    .shape:first-child {
        left: 0;
        top: 10vh;
        animation: float1 10s infinite linear;
    }

    .shape:last-child {
        right: 0;
        bottom: 10vh;
        animation: float2 30s infinite linear;
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes float1 {
    from {
        transform: rotate(0deg) translate3d(20px, 0, 0) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translate3d(20px, 0, 0) rotate(-360deg);
    }
}

@keyframes float2 {
    from {
        transform: rotate(0deg) translate3d(20px, 0, 0) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translate3d(20px, 0, 0) rotate(-360deg);
    }
}