@import url(general.css);

body {
    min-height: 100svh;
    display: grid;
    grid-template-columns: 1fr min(12000px, 1fr) 1fr;
    background-color: #eee;
}

#logo {
    width: 100%;
    max-width: 400px;
}

main {
    padding: var(--padding);
    display: grid;
    place-content: center;
}

.form-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-radius: .5rem;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    background-color: #fff;
    max-width: 800px;
}

.form-wrapper__left img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.form-wrapper__right {
    display: grid;
    padding: 2rem;
}

h2 {
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.disclaimer {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.4;
}

.form-wrapper__right form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    width: 100%;
}

.checkbox-wrapper {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

form div:last-of-type label {
    text-wrap: nowrap;
}

input:not([type="checkbox"]) {
    padding: .75rem;
    border-radius: .25rem;
    border: 1px solid #ccc;
    width: 100%;
}

input:focus {
    outline: 1px solid var(--color-primary);
    border-color: transparent;
}

label {
    color: #888;
}

button[type="submit"] {
    width: 100%;
    padding: 1rem;
    cursor: pointer;
    border-radius: .25rem;
    border: none;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
    background-color: var(--color-primary);
    color: #fff;
    margin-block: 1rem;
    font-size: 1.125rem;

    &:hover {
        background-color: #da6b25;;
    }
}

@media screen and (width < 601px) {

    .form-wrapper {
        grid-template-columns: repeat(1, 1fr);
    }

    .form-wrapper__left {
        display: none;
    }
}