main {
    margin-top: 10px;
}

.thirdparty {
    position: relative;

    display: flex;
    flex-direction: row;
    gap: 20px;
}

.thirdparty a {
    display: inline;
    border-radius: 5px;
    width: 100%;
    text-decoration: none;
}

.thirdparty .item {
    display: grid;
    justify-content: center;

    grid-template-columns: 32px 1fr;

    padding: 15px 5px;
    box-sizing: border-box;

    border-radius: 5px;

    font-weight: 500;
}

.thirdparty .item img {
    width: 18px;
    height: 18px;
    justify-self: center;
}

.thirdparty .google {
    background-color: var(--google-button-background);
    border: solid 1px var(--google-button-border);
    color: var(--google-button-color);
}

.thirdparty .google:hover {
    background-color: var(--google-button-hover-background);
}

.thirdparty .facebook {
    background-color: var(--facebook-button-background);
    border: solid 1px var(--facebook-button-border);
    color: var(--facebook-button-color);
}

.thirdparty a.facebook:hover {
    background-color: var(--facebook-button-hover-background);
}

.thirdparty .item.email {
    display: none;
}

@media screen and ( min-width: 747px ) {
    header {
        display: none;
    }

    .wrapper > header {
        display: block;
    }

    .wrapper {
        width: 1000px;
        max-width: 95%;
    }

    main .manual {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        border-top: solid 1px var(--border-color);
        position: relative;

        margin-top: 20px;
    }

    main .manual::before {
        content: '';
        position: absolute;

        width: 1px;
        height: 100%;

        left: 50%;
        top: 0%;
        transform: translateX(-50%);

        background-color: var(--border-color);
    }
}

@media screen and ( max-width: 747px ) {
    header {
        position: fixed;
        z-index: 20;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 0;
        margin: 0;

        box-shadow: 0px -1px 4px -2px rgba(50, 50, 50, 0.21),
                    0px -1px 4px -1px rgba(50, 50, 50, 0.08);

        background-size: 500%;
    }

    header .actions {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    header .actions p {
        position: relative;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        font-weight: 500;
        font-size: 1.1rem;

        margin: 0;
        padding: 0;

        height: 50px;
    }

    header .actions p.active {
    }

    header .actions p .border {
        position: absolute;

        left: 0;
        bottom: 0;
        width: 100%;
        height: 6px;

        background-color: white;

        transform: scaleX(0);

        transition: transform .2s cubic-bezier(0.85, 0, 0.15, 1);
    }

    header .actions p.active .border {
        transform: scaleX(1);
    }

    header .actions p:nth-child(1) .border {
        transform-origin: right;
    }

    header .actions p:nth-child(2) .border {
        transform-origin: left;
    }

    .manual section {
        display: none;
    }

    .manual section.active {
        display: block;
    }

    .wrapper {
        padding-bottom: 20px;
    }

    .authentication-wrapper {
        min-height: calc(100vh - 130px);
        width: 100%;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;

        background-color: var(--wrapper-background);
    }

    .authentication-wrapper > * {
        width: 100%;
    }

    .thirdparty {
        flex-direction: column;
        gap: 8px;

        padding-bottom: 18px;
        border-bottom: solid 1px var(--border-color);
    }

    .thirdparty a, .thirdparty .item {
        border-radius: 50px;
    }

    .thirdparty .item {
        padding: 15px 10px;
    }

    .thirdparty .item.email {
        display: grid;
        background-image: var(--header-background);
        color: var(--header-color);
    }

    .manual section button[type="submit"] {
        position: relative;
        width: 100%;

        padding: 15px 5px;

        background: var(--header-background);
        color: var(--header-color);

        border-radius: 50px;

        font-weight: 500;

        box-shadow: 0px 0px 5px -2px rgba(50, 50, 50, 0.5),0px 2px 5px -4px rgba(50, 50, 50, 0.65);
    }

    .box {
        bottom: 50px;

        z-index: 18;
    }
}