:root{
    --border-blue: #2B4257;
    --default-primary-background: #2B4257;
    --default-secondary-background: #E2E6E7;

    font-family: roboto;
    font-weight: 400;
    font-size: 12px;
}

div.overlay {
    width: 100%;
    height: 100vh;

    display: grid;

    box-sizing: border-box;
}

div.overlay > form {
    align-self: center;
}

fieldset {
    border: none;
}

form {
    width: 32em;
    min-height: 22em;

    background: var(--default-secondary-background);
    border-radius: 0.5em;

    margin: 5em auto;

    padding: 1em 0;
}

form > img {
    width: 100%;
}

form fieldset {}

form fieldset label {
    display: grid;

    margin: 1em auto;
}

form fieldset label:first-of-type {
    margin-top: 0;
}

form > fieldset:first-of-type > legend {
    background-color: var(--default-primary-background);
    color: white;

    padding: 0.5em;

    font-size: 1.5em;
    font-weight: 600;

    text-transform: capitalize;
    text-align: center;

    width: 100%;
    box-sizing: border-box;
}

form fieldset label > span {
    text-transform: capitalize;
    line-height: 2em;
}

form fieldset label:has(> :required) > span::after {
    content: '*';

    padding-left: 0.25em;
}

form > fieldset > label > input {
    border: 1px solid var(--border-blue);
    border-radius: 0.5em;
    font-size: 1em;
    padding: 0.5em 1em;
}

form > fieldset:first-of-type:has(> legend) {
    display: none;
}

form > fieldset:last-of-type:has(> button) {
    display: grid;
}

form > fieldset:last-of-type > button {
    background-color: var(--default-primary-background);
    color: white;

    text-transform: uppercase;

    font-weight: 600;

    padding: 0.5em;
    border: none;
    border-radius: 0.5em;
}

form > p {
    text-align: center;

    font-size: 0.75em;

    padding: 0.5em 0;
    margin: 0.5em auto;
}

form a {
    color: blue;
    text-decoration: none;
}

form > * {
    width: 22.5em;
    margin: 0 auto;
}
