@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
    --color-purple: #b671c8;
    --color-purple-light: #e8d3ee;
    --color-purple-dark: #7f3e8f;
    --color-green: #00945e;
    --color-gold: #f09c22;
}

body,
html {
    /* height: 100%; */
    margin: 0;
    font-family: "Fredoka";
    display: flex;
    justify-content: center;
}

.hidden {
    display: none;
    visibility: hidden;
}

.background {
    background-color: aliceblue;
    background-image: url('https://account.ivefjordstudios.se/images/nebuladots.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100%;
    position: fixed;
    z-index: -1;
    width: 100%;
    top: 0px;
}

.main {
    background: rgb(255, 255, 255);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 19%, rgba(255, 255, 255, 0.15868354177608546) 28%, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, 0) 69%, rgba(255, 255, 255, 0.18669474625787819) 79%, rgba(255, 255, 255, 0) 88%, rgba(255, 255, 255, 0) 100%);
    backdrop-filter: blur(25px);
    border: 1px solid #eef1f034;
    margin-top: 25px;
    max-width: 500px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 6px;
    color: white;
    padding: 25px;
    border-radius: 3px;
    display: flex;
    flex:1;
    flex-direction: column;
}

.logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    margin-top: 10px;
    flex:1;
}

.logo-wrapper img {
    height: 128px;
}

.content {
    background-color: #ffffffaf;
    box-shadow: rgba(0, 0, 0, 0.418) 0px 2px 6px;
    padding: 25px;
    margin-top: 25px;
    margin-bottom: 50px;
    border-radius: 3px;
    color: #777777;
}

p {
    color: #555555;
}

a {
    color: var(--color-purple-dark);
}

p.ohno {
    font-family: "PT Serif";
    color: white;
    background-color: var(--color-purple);
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

p.ohno a {
    color: white;
}

p.ohno a:hover {
    color: var(--color-purple-light);
}

p.nomatch {
    font-family: "PT Serif";
    color: #fafafa;
    background-color: #c87171;
    padding: 5px;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 0;
    text-align: center;
}

input[type=text],
input[type=password],
input[type=email] {
    box-sizing: border-box;
    width: 100%;
    border: 0;
    border-bottom: 1px solid #4b4b4b3f;
    height: 35px;
    padding-left: 1em;
    border-radius: 3px;
    font-family: "Ubuntu";
    font-size: 10pt;
    margin-bottom: 16px;
}

input[type=email]:invalid:not(:focus) {
    border: 1px solid #e61111;
    color: #e61111;
}

.pincode-wrapper {
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    height: 90px;
    max-height:64px;
    border:1px solid #000;
}

.pincode-wrapper input[type=text] {
    margin:0;
    position: relative;
    box-sizing: border-box;
    max-width: 16%;
    min-height: 100%;
    padding: 0;
    margin-right: 10px;
    font-size: 200%;
    display: flex;
    justify-content: center;
    text-align: center;
}

.pincode-wrapper input[type=text]:last-child {
    margin-right: 0px;
}

.pincode-wrapper input[type=text]:focus {
    border-color: #007c4f;
    border-width: 2px;
    border-style: solid;
}

.button-wrapper {
    display: grid;
    justify-content: end;
    margin-top: 45px;
    grid-template-columns: 1fr 1fr;
    font-size: small;
}

.button-wrapper-2 {
    display: flex;
    justify-content: end;
    margin-top: 25px;
    font-size: small;
}

p~form {
    margin-top: 30px;
}

.button-wrapper-2>button,
.button-wrapper-2>input[type="submit"] {
    margin-left: 10px;
}

.button-wrapper-2>button:first-child,
.button-wrapper-2>input[type="submit"]:first-child {
    margin-left: 10px;
    background-color: #b6b6b6;
}

.button-wrapper>div,
.button-wrapper>a {
    justify-self: flex-start;
    align-self: center;
}

input[type="submit"],
button {
    font-family: "Ubuntu";
    min-width: 100px;
    height: 3em;
    background-color: #00945e;
    border: 0px;
    color: white;
    cursor: pointer;
    border-radius: 3px;
    white-space: nowrap;
    justify-self: flex-end;
    grid-column-start: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
    border-bottom: 1px solid #00472d4b;
}

input[type="submit"]:hover,
button:hover {
    background-color: #14a16d;
}

input[type="submit"]:active,
button:active {
    background-color: #007c4f;
}

input:focus {
    outline: none;
    /* border:0px; */
}

h2 {
    margin-top: 0;
    margin-bottom: 30px;
    font-family: "Fredoka";
    font-weight: 500;
}

h2.green {
    color: #00945e;
}

.glow {
    background-color: #555555;
    animation: changeColor ease;
    animation-iteration-count: infinite;
    animation-duration: 2s;
    border: 2px solid #b06e0d
}

@keyframes changeColor {
    0% {
        background-color: #f09c22;
    }

    50% {
        background-color: #f9bd68;
    }

    100% {
        background-color: #f09c22;
    }
}

.animate-spin {
    -moz-animation: spin 2s infinite linear;
    -o-animation: spin 2s infinite linear;
    -webkit-animation: spin 2s infinite linear;
    animation: spin 2s infinite linear;
    display: inline-block;
}

@-moz-keyframes spin {
    0% {
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -moz-transform: rotate(359deg);
        -o-transform: rotate(359deg);
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}

@-webkit-keyframes spin {
    0% {
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -moz-transform: rotate(359deg);
        -o-transform: rotate(359deg);
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}

@-o-keyframes spin {
    0% {
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -moz-transform: rotate(359deg);
        -o-transform: rotate(359deg);
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}

@-ms-keyframes spin {
    0% {
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -moz-transform: rotate(359deg);
        -o-transform: rotate(359deg);
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}

@keyframes spin {
    0% {
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -moz-transform: rotate(359deg);
        -o-transform: rotate(359deg);
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}

@media only screen and (max-width: 400px) {
    body {
        display: flex;
    }

    .background {
        background-color: var(--color-purple-dark);
        /* background-image: unset; */
    }

    .main {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 19%, rgba(255, 255, 255, 0.15868354177608546) 28%, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, 0) 69%, rgba(255, 255, 255, 0.18669474625787819) 79%, rgba(255, 255, 255, 0) 88%, rgba(255, 255, 255, 0) 100%);
        backdrop-filter: blur(25px);

        border: 1px solid #eef1f034;
        border-left: 0px;
        border-right: 0px;
        margin-left: unset;
        margin-top: 25px;
        flex: 1;
        display: flex;
        flex-direction: column;
        box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 6px;
        color: white;
        padding: 25px;
        border-radius: 3px;
        overflow: hidden;
    }

    .content {
        box-sizing: border-box;
        position: relative;
        background-color: #ffffffaf;
        box-shadow: rgba(0, 0, 0, 0.418) 0px 2px 6px;
        padding: 25px;
        margin-top: 25px;
        margin-bottom: 50px;
        border-radius: 3px;
        color: #777777;
        flex: 1;
    }

    form {
        position: relative;
        width: 100%;
    }

    .logo-wrapper {
        flex: 1;
        margin-bottom: 0px;
    }

    .logo-wrapper img {
        height: 64px;
    }

    input[type=text].pincode {
        box-sizing: border-box;
        max-height: 64px;
        min-height: 64px;
        margin-right: 2%;
        font-size: 1.6em;
        text-align: center;
        padding-left: 0;
    }
}