
@media (max-width: 50em) {
  #main {
    display: -ms-grid;
    -ms-grid-columns: 0 1fr 0;
    -ms-grid-rows: 64px 0 1fr 30px;
    display: grid;
    grid-template-columns: 50% 50% 0;
    grid-template-rows: 64px 0 calc(100% - 94px) 30px;
  }
}

@media (min-width: 50em) {
  #main {
    display: -ms-grid;
    -ms-grid-columns: 0 1fr 0;
    -ms-grid-rows: 75px 0 1fr 30px;
    display: grid;
    grid-template-columns: 50% 50% 0;
    grid-template-rows: 75px 0 calc(100% - 105px) 30px;
  }
}

main {
  width: 100%;
  height: 100%;
  left: 0;
  top: 0px;
  right: 0;
  bottom: 0;
  padding: 0;
  display: table;
  border-top: 1px solid #c0c0c0;
}

main {
  grid-column: 1 / 3;
}

header {
  grid-column: 1 / 2;
  position: relative;
  width: auto;
}

header > .Title {
  white-space: nowrap;
  font-size: 16px;
  text-align: left;
  margin-left: 5%;
}

body > #main > main > div#Register,
body > #main > main > div#SignIn {
  vertical-align: middle;
  display: table-cell;
}

div#Register > h1,
div#SignIn > h1 {
  display: block;
  margin: auto;
  text-align: center;
  color: #404040;
  margin-bottom: 1rem;
}

div#Register > div,
div#SignIn > .Form,
div#SignIn > div,
div#SignIn > p {
    border: 1px solid #C0C0C0;
    width: 80%;
    padding: 1rem;
    min-width: 300px;
    max-width: 300px;
    min-height: 350px;
    background-color: white;
    display: block;
    margin: auto;
    color: #808080;
    font-size: 0.9rem;
}

.Form {
  border: none;
}

.section > .header {
  text-align: center;
  font-size: 0.9rem;
}

.Field {
  min-width: calc(350px - 4rem);
  max-width: 100%;
  transition: none;
  text-align: center;
}

#SignIn form input[type="submit"] {
  background-color: rgb(22, 119, 184);
  color: white;
}

#SignIn form table {
  max-width: 400px;
}

.caption > .Information {
  visibility: hidden;
}

.section.error {
  padding: 0;
  border: none;
  outline: none;
}

.section.error > .body > p,
.section.error > .body > table > thead,
.section.error > .body > table > tbody > tr > td:not(:last-child)  {
  display: none;
}

.section.error > .body > table > tbody > tr > td  {
  border: none;
  color: #dd7417;
}

.ButtonPanel {
  margin-top: 1rem;
  text-align: center;
}
