html
{
    display: grid;
    place-items: center;
    position: fixed;
    inset: 0;
    padding: 1rem;
    
    background: url(../img/lab_back.avif) no-repeat center / cover;
    
    &::before
    {
        content: '';
        position: absolute;
        inset: 0;
       
        background-color: var(--clr-bg-light);
        opacity: .7;
    }
}

body
{
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 1rem;
    isolation: isolate;
    width: min(100%, 1000px);
    padding: 3rem 3rem 1rem;
    
    border-radius: 1rem;
    border: var(--border-card);
    border-top: solid 1px var(--clr-highlight);
    
    background: var(--gradient);
    box-shadow: var(--sombra);

    @media (max-width: 660px)
    {
        grid-template-columns: 1fr;
    }
}

header
{
    flex-direction: column;
    justify-content: center;

    background: transparent;
    box-shadow: none;
    
    & h1
    {
        flex-grow: 0;
    }
    
    & img
    {
        max-height: unset;
    }
}

footer
{
    grid-column: span 2;

    @media (max-width: 660px)
    {
        grid-column: unset;
    }
}

form
{
    width: min(100%, 500px);
    margin: 0 auto;
    
    & h2
    {
        width: 100%;
        margin-block-end: 1.4rem;
        text-align: center;
    }
    
    & p
    {
        margin-block: 1rem;
    }
    
    & label:has([type=checkbox])
    {
        grid-template-columns: 1fr max-content;
        justify-items: end;
        
        font-size: .8em;
    }
}

input, label
{
    width: 100%;
}

label
{
    margin-bottom: 1rem;
}

[type=submit]
{
    margin-top: 1rem;
}
