/* Style reset */
* {
    box-sizing: border-box;
    position: relative;
    margin: 0;
    padding: 0;
}

div {
    display: block;
}

/* Fonts */
@font-face {
    font-family: ChaneyUltra;
    src: url("fonts/chaney-ultra-extended.otf");
    font-weight: 400;
}

@font-face {
    font-family: InterDisplay;
    src: url("fonts/inter-display-extra-light.ttf");
    font-weight: 200;
}

/* Content */
body {
    background: #2C2C2C;
    color: #fff;
    position: relative;
    height: 100vh;
    overflow-x: hidden;
    font-family: InterDisplay, sans-serif;
    font-weight: 200;
    font-size: .875rem;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('img/background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    mix-blend-mode: luminosity;
    opacity: 0.14;
    pointer-events: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

main {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: start;
    flex-flow: column;
    padding: 5rem;
}

#logo-container {
    max-width: 20rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;
}

.crest-3d {
    max-width: 200px;
    width: 100%;
}

#text-logo {
    margin-top: 2rem;
}

#logo-number {
    position: absolute;
    margin-left: 96%;
    margin-top: -2%;
    width: 19%;
}

#content {
    margin-top: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;
}

h1 {
    font-family: ChaneyUltra, sans-serif;
    font-weight: 400;
    font-size: 4.65rem;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.13;
    max-width: 70rem;
    letter-spacing: 0;
}

p {
    letter-spacing: 0;
    color: #FFFFFFB8;
    font-size: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    line-height: 1.5;
}

#legal {
    font-size: 0.95rem;
    margin-top: 10rem;
    margin-bottom: 4rem;
}

form {
    margin-top: 2rem;
    display: flex;
    flex-flow: row;
    align-content: center;
    justify-items: center;
    width: 100%;
    max-width: 48rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}

input {
    background-color: #f9f9f9;
    border: none;
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    font-size: 1rem;
    border-bottom: 2px solid #6A696929;
    transition: border-bottom 0.2s;
    color: #2C2C2C;
    width: 100%;
}

input:focus,
input:not(:placeholder-shown)
{
    outline: none;
    border-bottom: 2px solid #2C2C2C;
}

label {
    position: absolute;
    left: 1.5rem;
    top: 1rem;
    font-size: 0.8rem;
    color: #777;
    pointer-events: none;
    transition: top 0.2s, font-size 0.2s;
}

input:placeholder-shown + label {
    top: 2rem;
    font-size: 1rem;
}

input:focus + label,
input:not(:placeholder-shown) + label {
    top: 1rem;
    font-size: 0.8rem;
}

button {
    align-self: center;
    background-color: #2C2C2C;
    color: white;
    padding: calc(2.20rem + 1px) 8rem;
    font-size: 0.9rem;
    border: none;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: ChaneyUltra, sans-serif;
    font-weight: 400;
}

button:hover {
    background-color: #333;
}

button:disabled {
    opacity: 0.8;
}

@media screen and (max-width: 1081px) {
    main {
        padding-top: 3rem;
    }

    h1 {
        font-size: 3rem;
    }

    #content {
        margin-top: 6rem;
    }

    #legal {
        margin-top: 1rem;
    }
}

@media screen and (max-width: 811px) {
    main {
        padding-top: 5rem;
    }

    h1 {
        font-size: 3rem;
    }

    #content {
        margin-top: 6rem;
    }

    #legal {
        margin-top: 3rem;
    }
}

@media screen and (max-width: 600px) {
    main {
        padding: 1rem;
    }

    #logo-container {
        max-width: 70%;
    }

    #content {
        margin-top: 5rem;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 0;
    }

    p {
        font-size: 1.2rem;
    }

    form {
        flex-flow: column;
    }

    button {
        clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
        margin-top: 1rem;
    }

    #legal {
        margin-top: 1rem;
    }
}
