@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@200;300;400;500;600;700;800&display=swap');
*,
 ::after,
 ::before {
    box-sizing: border-box;
}

:root {
    --color-primary: #d0d235;
    --color-secondary: #0e0f0f;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    /* Hacky workaround to fix chrome changing the background color */
    transition: background-color 5000000s ease-in-out 0s, color 5000000s ease-in-out 0s;
}

html,
body {
    height: 100%;
}

body {
    background: #0e0f0f;
    background: radial-gradient(ellipse at 75% 25%, rgba(208,210,53,0.12) 0%, transparent 55%),
                radial-gradient(ellipse at 15% 80%, rgba(208,210,53,0.06) 0%, transparent 45%),
                #0e0f0f;
}

a {
    text-decoration: none;
    color: rgba(255,255,255,0.4);
    font-family: 'Mulish', sans-serif;
}

a:hover {
    color: var(--color-primary);
}

.page {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    opacity: .2;
    background: url('../img/background.png');
    z-index: -1;
    animation: background linear 60s infinite forwards;
    -webkit-animation: background linear 60s infinite forwards;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 6vw;
    width: 100%;
    max-width: 1140px;
}

.logo {
    display: flex;
    flex-direction: row;
    margin-bottom: 2em;
}

.logo .icon {
    width: 6em;
    padding: 0.2em;
    margin-right: 0em;
}

.logo .text {
    color: #fff;
    font-family: 'Mulish', sans-serif;
    font-weight: 200;
    text-align: center;
    font-size: 3em;
    margin-bottom: .25em;
}

.logo .text span {
    display: block;
    font-size: .75em;
    font-weight: 600;
}

.notice {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    border: 1px solid rgba(208,210,53,0.2);
    background: rgba(208,210,53,0.05);
    padding: 1rem 1.3rem;
    width: 21em;
    max-width: 100%;
    margin-top: 1.2rem;
}

.notice-icon {
    color: #d0d235;
    flex-shrink: 0;
    margin-top: 2px;
}

.notice-text {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    font-family: 'Mulish', sans-serif;
}

.notice-text strong {
    display: block;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.2rem;
    font-size: 0.82rem;
}

.notice-text a {
    color: #d0d235 !important;
    font-weight: 600;
    margin-left: 0.3rem;
}

.pure-form label {
    /*color: rgba(255,255,255,0.5);*/
    color: #fff;
    font-family: 'Mulish', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tpg-logo {
    margin-top: auto;
    margin-bottom: 3em;
    width: 18em;
    opacity: .45;
    transition: opacity 150ms ease-in-out;
}

.tpg-logo img {
    width: 100%;
    display: block;
}

.tpg-logo:hover {
    opacity: 1;
}

.login {
    /*background-color: #1a1b1c;*/
    background-color: #24353F;
    border-radius: 0;
    border: 1px solid rgba(255,255,255,0.07);
    padding: 1.5rem 1.5rem 0;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    max-width: 100%;
    width: 21em;
}

.hr {
    height: 1px;
    margin-top: 1em;
    margin-bottom: 1em;
    background: rgba(255,255,255,0.07);
    z-index: 9999;
}

form .input {
    align-items: center;
    background-color: #0e0f0f;
    border-radius: 0;
    border: 1px solid rgba(255,255,255,0.1);
    color: #ffffff;
    display: flex;
    margin-bottom: 1em;
}

form .input i {
    align-items: center;
    border-right: 1px solid #ececec;
    color: #555;
    display: flex;
    font-size: .9rem;
    justify-content: center;
    padding: 0.75rem;
}

form .input input[type=text],
form .input input[type=email],
form .input input[type=password] {
    background-color: transparent;
    border: none;
    flex-grow: 1;
    font-size: .8rem;
    font-family: 'Mulish', sans-serif;
    height: 100%;
    outline: none;
    padding: 0.5rem 0 0.5rem 1rem;
    box-shadow: none;
    color: #ffffff;
}

form .footer {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

form .footer a {
    font-size: .75em;
}

.pure-button-primary {
    background: var(--color-primary);
    border-radius: 0;
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.6em 1.5em;
}

.error {
    font-size: .8em;
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    display: none;
}

.error.show {
    display: block;
    animation: shake 0.82s cubic-bezier(.36, .07, .19, .97) both;
}

.h-100 {
    height: 100%;
}

@keyframes background {
    0% {
        transform: translateY(0)
    }
    100% {
        transform: translateY(-50%)
    }
}

@keyframes shake {
    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }
    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }
    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}