@font-face {
    font-family: "Quicksand";
    src: url("/content/fonts/Quicksand.ttf") format("opentype");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Puffet";
    src: url("/content/fonts/Puffet.ttf") format("opentype");
    font-style: normal;
}

:root {
    --background-color: rgba(47, 47, 47);
    --primary-color: rgba(31, 31, 31);
    --secondary-color: rgba(63, 63, 63);
    --tertiary-color: rgba(15, 15, 15);
    --accent-color: rgba(255, 255, 255);

    --paragraph-font: "Quicksand", sans-serif;
    --heading-font: "Puffet", sans-serif;
}

* {
    font-smooth: always;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    background-color: var(--background-color);
    color: var(--accent-color);
    font-family: var(--paragraph-font);
    position: relative;
}

a {
    color: var(--accent-color);
}

.headerContainer {
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 55px;
    z-index: 10;
}

.header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin: 2px 5px;
}

.headerLeft {
    color: var(--accent-color);
    cursor: pointer;
    font-family: var(--heading-font);
    font-size: 40px;
    line-height: 49px;
    margin-left: 40px;
    outline: none;
    text-align: left;
    text-decoration: none;
    user-select: none;
}

.headerRight {
    color: var(--accent-color);
    cursor: pointer;
    font-family: var(--paragraph-font);
    font-size: 24px;
    font-weight: 700;
    line-height: 49px;
    outline: none;
    padding-right: 40px;
    text-align: right;
    text-decoration: underline;
}

.hidden {
    display: none;
}

.hiddenEl {
    display: none !important;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: bottom;
    filter: brightness(0.9);
    z-index: -1;
    pointer-events: none;
}

.water {
    position: fixed;
    bottom: 0;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    filter: brightness(0.9);
    background-size: 5vh 5vh;
    background-repeat: repeat;
    z-index: -2;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.22) 0, rgba(255, 255, 255, 0) 22%),
        radial-gradient(circle at 70% 65%, rgba(255, 255, 255, 0.16) 0, rgba(255, 255, 255, 0) 24%),
        linear-gradient(180deg, rgba(90, 170, 220, 0.35) 0%, rgba(35, 95, 140, 0.5) 100%);
}

.container {
    width: 100%;
    min-height: calc(100vh - 55px);
    padding-top: 55px;
    display: flex;
    flex-direction: row;
}

.leftSide {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.inside {
    width: fit-content;
    min-width: 60%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 0.7vh;
    padding: 2vh 4vh 2.7vh 4vh;
}

.glass {
    overflow: hidden;
    filter: drop-shadow(-8px -10px 46px #0000005f);
    backdrop-filter: brightness(1.1) blur(2px) url(#displacementFilter);
    position: relative;
}

.glass::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    box-shadow: inset 6px 6px 0px -6px rgba(255, 255, 255, 0.4), inset 0 0 8px 1px rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.inside > * {
    position: relative;
    z-index: 1;
}

.authHeader {
    font-size: 60px;
    font-family: var(--heading-font);
    margin-bottom: 20px;
    line-height: 1;
}

.inputContainer {
    align-items: center;
    border: 2px solid var(--background-color);
    border-radius: 7px;
    display: flex;
    flex-direction: row;
    height: 45px;
    margin: auto auto 15px;
    max-width: 330px;
    width: 80%;
}

.inputContainer:focus-within {
    border-color: var(--secondary-color);
}

.inputContainer:focus-within > i {
    opacity: 1;
}

.inputContainer > i {
    align-items: center;
    color: var(--accent-color);
    display: flex;
    font-size: 25px;
    height: 45px;
    justify-content: center;
    min-width: 22px;
    padding-left: 10px;
    user-select: none;
    width: 22px;
    opacity: 0.5;
}

.inputContainer > input {
    align-items: center;
    border: none;
    background-color: var(--primary-color);
    color: var(--accent-color);
    display: flex;
    flex-direction: row;
    font-family: var(--paragraph-font);
    font-size: 17px;
    height: 35px;
    margin: 5px 2px 5px 11px;
    outline: none;
    text-align: left;
    width: 83.5%;
}

.inputContainer > input[data-icon="false"] {
    width: 92.5%;
    margin: 5px 2px 5px 5px;
}

.inputContainer > input::placeholder {
    color: var(--accent-color);
    opacity: 0.25;
}

.inputAuth {
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.inputAuth:focus-within {
    border-color: rgba(255, 255, 255, 0.4);
}

.inputAuth > input {
    background-color: transparent;
}

.inputAuth > input::placeholder {
    color: var(--accent-color);
    opacity: 0.5;
}

.agreeHolder {
    display: flex;
    flex-direction: row;
    width: 400px;
}

.agreeText {
    color: var(--accent-color);
    line-height: 16px;
    margin-left: 0.5vh;
    text-align: left;
}

.toggleWrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 5px 0 15px;
}

.toggleContainer {
    width: 25px;
    height: 25px;
    min-width: 25px;
    min-height: 25px;
    appearance: none;
    background-color: transparent;
    border: 1px solid var(--accent-color);
    border-radius: 0.25rem;
    margin-right: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.1s, border-color 0.2s, transform 0.2s;
    transition-delay: background-color 0.2s;
    box-sizing: border-box;
    padding-left: 3px;
}

.toggleContainer > i {
    color: var(--background-color);
    font-size: 20px;
    max-width: 0;
    overflow: hidden;
}

.toggleContainer[data-checked="true"] {
    background-color: var(--accent-color);
    border: 1px solid var(--accent-color);
    animation: pulsate 0.2s;
}

.toggleContainer[data-checked="true"] > i {
    animation: maxWIn 0.5s;
    animation-fill-mode: forwards;
}

@keyframes maxWIn {
    0% {
        max-width: 0;
    }
    100% {
        max-width: 20px;
    }
}

@keyframes pulsate {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.turnstileWrap {
    margin: 8px 0 6px;
}

.clearButton {
    font-size: 20px;
    font-family: var(--paragraph-font);
    width: fit-content;
    padding: 5px 10px;
    margin: 5px 0;
    border-radius: 7px;
    cursor: pointer;
    border: 2px solid var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s, color 0.2s, opacity 0.2s;
    text-decoration: none;
    text-align: center;
    user-select: none;
    color: var(--accent-color);
}

.clearButton:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.clearButton:active {
    opacity: 0.7;
}

.submitButton {
    margin-top: 10px;
    font-size: 25px;
    padding: 5px 20px;
}

.errorContainer {
    align-items: center;
    border: 2px solid #ce1313;
    border-radius: 7px;
    display: flex;
    flex-direction: row;
    margin: auto auto 20px;
    max-width: 330px;
    width: 80%;
}

.errorContainer > i {
    color: #ce1313;
    margin-left: 13px;
    margin-right: 13px;
    min-width: 20px;
    user-select: none;
    font-size: 20px;
}

.errorContainer > div {
    color: var(--accent-color);
    font-size: 16px;
    margin: 5px 5px 5px;
    text-align: left;
}

.bottomSwitch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 15px;
}

.bottomSwitchLink {
    cursor: pointer;
    font-family: var(--paragraph-font);
    text-decoration: underline;
    font-weight: 700;
}

@media (max-width: 1000px) {
    .leftSide {
        width: 100%;
        min-height: calc(100vh - 55px);
    }
}

@media (max-width: 600px) {
    .headerLeft {
        font-size: 25px;
    }

    .inside {
        width: 95%;
        min-width: unset;
        padding: 2vh 2vh 2.7vh 2vh;
    }

    .agreeHolder {
        width: 100%;
    }
}
