.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4.8rem 1.6rem;
    background-color: var(--color-isabelline);
    min-height: 100dvh;
}

header > h2 {
    text-align: center;
    color: var(--color-eerie-black);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-xx-large);
    margin-top: 2.4rem;
}

p.tagline {
    text-align: center;
    font-size: var(--font-size-small);
    margin-top: .8rem;
    color: var(--color-licorice);
}

a.link--bold {
    font-weight: 500;
}

main {
    margin-top: 3.2rem;
    width: 100%;
}

.wrapper {
    background-color: var(--color-baby-powder);
    padding: 3.2rem 1.6rem;
    border-radius: .8rem;

}

.shadow {
    --tw-ring-offset-shadow: 0 0 #0000;
    --tw-ring-shadow: 0 0 #0000;
    --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

form {
    display: flex;
    flex-direction: column;
}

form div {
    margin-top: 2.4rem;
}

label {
    cursor: pointer;
    display: block;
    white-space: nowrap;
    padding: 0 0 .5rem .5rem;
    text-align: start;
    font-variation-settings: 'wght' 550;
}

svg {
    display: none;
}

.presentation {
    border-radius: 5px;
    border: 1px dashed rgb(187, 186, 184);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    margin-top: 0;
    max-height: 50rem;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    transition: .3s;

    div {
        margin-top: 0;
    }

    .tag {
        display: block;
        align-self: center;
        color: #444746;
        font-size: var(--font-size-x-small);
        margin-top: 2rem;

        &.not-visible {
            display: none;
        }
    }

    .preview {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        align-self: center;

        .prev--container {
            border-radius: .5rem;
            box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 1px 0px, rgba(61, 59, 53, 0.16) 0px 0px 0px 1px, rgba(61, 59, 53, 0.08) 0px 2px 5px 0px;
            display: flex;
            flex-direction: column;
            width: 20rem;

            & div:first-child {
                align-items: center;
                display: flex;
                height: 20rem;
                justify-content: center;
            }

            & div:last-child {
                border-top: 1px solid rgba(55, 53, 47, 0.09);
                display: flex;
                font-size: var(--font-size-x-small);
                font-variation-settings: 'wght' 500;
                justify-content: space-between;
                padding: .4rem;
                padding-left: 1rem;

                span {
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                }

                button {
                    cursor: pointer;
                    flex-shrink: 0;
                    background: transparent;
                    border: none;
                    padding: 0;
                }
            }
        }
    }
}

label[for="id_file"]{
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;

    &.not-visible {
        display: none;
    }

    .icon {
        flex-shrink: 0;
    }

    .info {
        overflow: hidden;
        text-overflow: ellipsis;
    }
}


input[type=file]{
    opacity: 0;
    height: 0px;
    max-width: 100%;
}

input[type=email],
input[type=password],
input[type=text] {
    position: relative;
    width: 100%;
    line-height: 1;
    padding: 0 1.4rem;
    height: 4.6rem;
    border: none;
    border-radius: 1rem;
    box-shadow: inset #d8d8da 0 0 0 1px, inset white 0 0 0 100px;
    transition: box-shadow .1s;
}

input[type=email]:focus-visible,
input[type=password]:focus-visible,
input[type=text]:focus-visible {
    outline-color: transparent;
}

input[type=email]:focus:not(:disabled),
input[type=password]:focus:not(:disabled),
input[type=text]:focus:not(:disabled) {
    box-shadow: inset var(--color-blue) 0 0 0 1px, inset white 0 0 0 100px !important;
}

input[type=password] {
    font-size: var(--font-size-small);
    font: small-caption;
}

::placeholder {
    color: #d8d8da;
}

.errorlist {
    padding: .5rem 0 0 .5rem;
    font-size: var(--font-size-small);
}

.errorlist li {
    color: var(--error-color);
}

.form-help {
    margin: 0;
    line-height: 1.3;
    letter-spacing: .019rem;
    font-size: var(--font-size-x-small);
    font-weight: var(--font-weight-regular);
    color: var(--color-grey);
    max-height: 0;
    overflow: hidden;
    transition: .3s;
}

.fieldWrapper:focus-within .form-help {
    max-height: 3rem;
    padding: 0.2rem 0 .5rem .5rem;
}

.fieldWrapper:has(.errorlist) {
    input[type=email],
    input[type=password],
    input[type=text] {
        box-shadow: inset var(--color-red) 0 0 0 1px
    }
}

.footer--signin {
    font-size: var(--font-size-small);
    padding-top: 1.6rem;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.075) 0 -1px;
}

@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    header, main {
        max-width: 44.8rem;
        width: 100% ;
        margin-left: auto;
        margin-right: auto;
    }

    .wrapper {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}