form .message,
.formlike .message {
    color: #000000;
    background-color: #8cbbeb;
    padding: 3px;
    display: none;
    margin: 1rem 0;

}




form.stacked,
.formlike {

    margin: 15px auto;
    /* centers it horizontally and adds vertical spacing */
    padding: 2rem;
    background: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form.stacked {
    max-width: 400px;

}

.formlike {
    padding: 1rem 2rem;

}

form.stacked span.exp {
    display: block;
    margin-top: 1rem;

}

form .exp {

    font-weight: bold;
    display: block;
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
}

span.exp em,
label.exp em {

    font-weight: normal;
    color: #000000;
}

form.stacked input[type="text"],
form.stacked input[type="password"],
form.stacked input[type="email"],
form.stacked input[type="number"],
form.stacked select {
    padding: 0.5rem;
    margin-top: 0.5rem;
    width: 100%;
}

form.grid input[type="text"],
form.grid input[type="password"],
form.grid input[type="email"],
form.grid input[type="number"],
form.grid select {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem;
}

.inputMarginTop {
    margin-top: 1rem;
}

form input[type="submit"],
form input[type="file"],
button.std,
input[type="button"].std {

    margin-top: 0.2rem;
    padding: 0.75rem;
    font-size: 1rem;
    background-color: #000000;
    color: white;
    border: none;
    cursor: pointer;
    width: 100%;
    border-radius: 3px;
    font-weight: bold;
}

button.small {
    width: 50px;
}

form input[type="submit"]:hover,
form input[type="button"]:hover {
    background-color: #303030;
}



p.links {
    margin-top: 1rem;
    text-align: center;
}




.formgrid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 16px;
    align-items: center;
    max-width: 400px;
    padding: 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;

}

/* Labels */
.formgrid label {
    font-weight: 500;
    white-space: nowrap;
}