.errorlist {
    color: red;
    margin: 1rem 0 0 0;
    padding: 0;
    list-style-type: none;
}

input {
    width: 100%;
    padding: 1rem;
    margin: 4px 0;
    border: none;
    background: #f0f0f0;
    border-radius: .8rem;
}

/* ceckboxes should be little */
input[type="checkbox"], input[type="radio"] {
    width: 1rem;
    height: 1rem;
}

p:has(> input[type="checkbox"]) {
    display: flex;
    align-items: center;
    justify-content: start;
    width: 100%;
    flex-direction: row-reverse;
}

p:has(> input[type="checkbox"]) {
    margin-top: .1rem;
}

p > input[type="checkbox"], p > input[type="radio"] {
    margin-right: 1rem;
}


/*form >  ul {*/
/*    display: none;*/
/*}*/

form > p {
    margin-top: clamp(.5rem, 1vw, 1rem);
}

/* .helptext is a class generated by package */
.helptext > a {
    display: block;
    width: fit-content;
    margin-left: auto;
}

.forgot-password, .register {
    text-align: center;
    margin-top: 1rem;
}

label {
    font-weight: bold;
}

form > ul > li {
    font-size: 12px;
}

form > ul {
    margin-inline: 1rem;
    list-style: none;
}

form > p {
    padding: .3rem;
}

/* all p child of form should have width 100% on mobile */
form p {
    width: 100%;
    display: block;
}

/* first two p child of form should have width 100% on mobile */
@media (max-width: 768px) {
    form p:nth-child(-n+3) {
        width: 100%;
        display: block;
    }
}

form {
    display: flex;
    flex-wrap: wrap;
}
