* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8e8dc;
    font-family: Arial, sans-serif;
    font-size: clamp(13px, 1.2vw, 20px);
}

main {
    width: 50vw;
    height: 50vh;
    background-color: #a9bba1;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 2%;
    gap: 3%;
}

img {
    width: 45%;
    max-height: 100%;
    object-fit: contain;
}

section {
    width: 48%;
    max-height: 100%;
    overflow-y: auto;
}

h1 {
    font-size: clamp(22px, 2.5vw, 42px);
    font-weight: normal;
    text-align: center;
    margin: 0 0 10px;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin: 8px 0 4px;
}

input {
    width: 100%;
    height: clamp(28px, 4vh, 42px);
    background-color: white;
    border: none;
    padding: 5px 10px;
    color: black;
    font: inherit;
}

button {
    align-self: center;
    margin-top: 18px;
    padding: 6px 20px;
    background-color: #ffd447;
    border: none;
    cursor: pointer;
    font: inherit;
}

p {
    text-align: center;
    margin: 12px 0 0;
}

a {
    color: #ffd447;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

p[role="alert"] {
    color: darkred;
}

@media (max-width: 700px) {
    main {
        flex-direction: column;
        padding: 12px;
        gap: 8px;
    }

    img {
        width: 40%;
        max-height: 25%;
    }

    section {
        width: 100%;
        flex: 1;
    }

    h1 {
        font-size: 20px;
    }

}
