body {
  width: 100%;
  height: 100%;
  display: block;
  align-content: center;
}

main {
  --margins: 10px;
  --brand-width: 200px;
  --width: 324px;
}

main, main > form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

main :is(button, p, span, a) {
  text-align: center;
}

main > *, main > form > * {
  width: var(--width);
  margin-top: var(--margins);
  margin-bottom: var(--margins);
}

main > form > p {
  margin-top: 0px;
  margin-bottom: 0px;
}

main > form > p > input {
  margin-top: var(--margins);
  margin-bottom: var(--margins);
}

main > form > * button, input {
  --font-size: 15px;
  font-size: var(--font-size);
}

main > form > * input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  padding: 10px;
  border-style: solid;
  border-color: dimgray;
}

main > form > * button {
  width: 100%;
  box-sizing: border-box;
}

main > form > ul:not(.errorlist) {
  display: none;
}

main > img {
  margin-bottom: calc(3 * var(--margins));
}

main > form {
  margin-top: 0px;
  margin-bottom: 0px;
}

#auth-brand {
  display: flex;
  justify-content: center;
}

#auth-brand img {
  width: var(--brand-width);
}

label {
  display: none;
}

button {
  background-color: rgb(var(--color-brand-blue));
  border-width: 0px;
  padding: 10px;
  text-align: center;
  font-size: 18px;
  font-weight: 550;
  color: rgb(var(--color-text-contrast));
  justify-content: center;
  cursor: pointer;
}

button:hover {
  background-color: rgb(var(--color-brand-blue));
}

button img {
  height: var(--font-size);
}

#id_password_helptext {
  display: none
}

input[readonly] {
  background-color: rgb(var(--color-brand-light-gray));
  cursor: not-allowed;
}

.errorlist {
  list-style-type: none;
  padding-inline-start: 0px;
  width: 90%;
}

.errorlist li {
  margin-bottom: 15px;
  text-align: justify;
  color: crimson;
}

.errorlist li:last-child {
  margin-bottom: unset;
}
