@import url("fonts/opensans/opensans.css");

* {
    font-family: "Open Sans", sans-serif;
}

html {
    height: 100%;
    width: 100%;
    background: url("images/studioworks-main-image.jpg") center top no-repeat;
    background-size: cover;
}

body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
}

#loader-container {
    display: none;
}

#header {
    display: flex;
    align-items: center;
    height: 0;
    width: 100%;
    flex: 1 1 auto;
}

#header-img {
    height: 40%;
}

#center {
    margin: 0 auto;
    height: 0;
    width: 80%;
    max-width: 32em;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex: 1 1 auto;
}

#center-text {
    font-size: 1.17em;
    font-weight: 600;
    background: linear-gradient(to left, #eee4a2, #aa9148);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#mainsection {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1 1 auto;
    height: 0;
}

#loginsection {
    width: 100%;
    flex: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

#passwordinput {
    margin-bottom: 2em;
}

input[type="email"],
input[type="password"] {
    border: none;
    border-radius: 8px;
    color: white;
    background-color: #8447bd;
    padding: 1em;
    font-size: 0.85em;
    letter-spacing: 0.05em;
    box-sizing: border-box;
    outline: none;
    margin: 0.7em auto;
    width: 20em;
    display: block;
}

input:focus {
    border: 2px solid white;
}

::placeholder {
    color: white;
}

#brandcontainer {
    background-repeat: no-repeat;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

#loginlayout {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

#loginarea {
    display: flex;
    flex-direction: column;
    text-align: center;
    flex: auto;
    justify-content: center;
    margin: 0 0 25%;
}

#logintext {
    color: white;
    font-size: 1.3em;
    letter-spacing: 0.05em;
    font-weight: 400;
    margin: 0;
}

img {
    width: 100%;
}

.imgRow {
    text-align: center;
    width: 28em;
}

.imgColumn {
    display: inline-block;
    width: 20%;
    margin: 0 5%;
}

.submitbutton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    min-width: 10em;
    border: 0;
    color: white;
    background: linear-gradient(to right, #eee4a2, #aa9148);
    letter-spacing: 0.02em;
    font-weight: 700;
    line-height: 1.1;
    cursor: pointer;
    border-radius: 0.14rem;
    padding: 0.625rem 3.5rem;
}

.submitbutton:active {
    transform: scale(0.75);
}

#footer-container {
    height: 4em;
    margin: 1em 0 max(3em, 6%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

#footer {
    text-transform: uppercase;
    width: 100%;
    text-align: center;
    color: white;
    padding-bottom: calc(env(safe-area-inset-bottom) - 3.5em);
    letter-spacing: 0.05rem;
    opacity: 0.75;
    font-size: 0.6rem;
    margin-top: 1em;
}

/* spinner  */
.loader {
    position: absolute;
    right: calc(50% - 4em);
    width: 1.5em;
}

.loader circle {
    fill: none;
    stroke-width: 2.5;
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    animation:
        rotateRound 2s linear infinite,
        loaderDash 1.5s ease-in-out infinite,
        loaderColor 6s ease-in-out infinite !important;
    transform-origin: 100% 100%;
    stroke-linecap: round;
}

@media (min-width: 672px) and (pointer: coarse) {
    .imgRow {
        margin: 0 7em;
    }
}

@media (pointer: fine) {
    .imgRow {
        margin: 0 4em;
    }
}

@media (max-width: 671px) {
    #footer {
        font-size: 0.4rem;
    }
}

/* media queries all devices*/
@media (pointer: coarse) {
    @media (min-width: 672px) and (max-width: 1023px) {
        input[type="text"] {
            margin: 1em auto;
        }
    }

    @media (min-width: 1024px) {
        input[type="text"] {
            margin: 1em auto;
        }
    }
}

@media screen and (min-width: 320px) and (orientation: landscape) {
    @media (pointer: coarse) {
        #footer {
            padding-bottom: calc(env(safe-area-inset-bottom) - 2em);
        }
    }
}

@media (pointer: fine) {
    #brandcontainer {
        width: 512px;
        min-height: 400px;
        margin: 0 auto;
    }

    @media (min-width: 1921px) {
        #brandcontainer {
            width: 32vw;
        }
    }
    @media (min-height: 1080px) {
        .upscale {
            font-size: 1.5em;
        }

        .submitbutton {
            font-size: 1.25em;
        }
    }
}

@keyframes rotateRound {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes loaderDash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -124;
    }
}

@keyframes loaderColor {
    100%,
    0% {
        stroke: #f8f8ff;
    }
    75% {
        stroke: #ffffff;
    }
}
