:root {
  --color-simba-red: #b80030;
  --screen-small-max: 600px;
}
body,
html {
  padding: 0;
  margin: 0;
  height: 100%;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: hsl(0, 0%, 25%);
  color: white;
}
.page {
  height: 100%;
  width: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-areas: "top" "content" "footer";
}
.page .page-content {
  grid-area: content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}
.page .page-content .srv-info {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2rem;
  padding-top: 0.25rem;
  padding-left: 0.5rem;
  color: #c4cacf;
  opacity: 0.2;
}
.page .page-content .srv-info .srv-label {
  font-size: 8px;
}
.page .server-notification {
  grid-area: top;
  background-color: #b90834;
  padding: 10px;
  color: #fff;
  box-sizing: border-box;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}
.page footer {
  grid-area: footer;
  box-sizing: border-box;
  padding: 0 1rem 0.5rem;
  display: flex;
  gap: 0.5rem;
}
.page footer > a,
.page footer > a:visited {
  text-decoration: none;
  font-size: 0.6rem;
  color: #c4cacf;
}
.page footer > a:hover {
  color: #fff;
}
.portal-card-container {
  --portal-card-container-gap: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: var(--portal-card-container-gap);
  width: 100%;
  align-items: center;
  box-sizing: border-box;
  position: relative;
  padding-top: 1rem;
  padding-bottom: 1rem;
  --card-heading-height: 50px;
}
@media (max-width: 600px) {
  .portal-card-container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}
.portal-card-container .portal-card-heading {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: var(--card-heading-height);
}
.portal-card-container .portal-card-heading .portal-card-heading-title {
  font-size: 1.6rem;
}
.portal-card-container .portal-card-heading .portal-card-heading-subtitle {
  font-size: 1rem;
}
.portal-card-container .portal-card {
  margin-bottom: calc(var(--card-heading-height) + var(--portal-card-container-gap));
}
.portal-card {
  background-color: hsl(0, 0%, 100%);
  color: #444;
  padding: 1rem 1.5rem;
  box-sizing: border-box;
  width: 500px;
  height: 350px;
  display: flex;
  flex-direction: column;
  border-radius: 0.175rem;
}
@media (max-width: 600px) {
  .portal-card {
    width: 100%;
  }
}
.portal-card .portal-card-head {
  --portal-card-head-height: 120px;
  display: flex;
  flex-direction: row;
  height: var(--portal-card-head-height);
  align-items: start;
}
.portal-card .portal-card-head:not(.portal-card .portal-card-head.branded) {
  justify-content: center;
  padding-top: 1rem;
}
.portal-card .portal-card-head:not(.portal-card .portal-card-head.branded) img {
  width: 175px;
}
.portal-card .portal-card-head.branded {
  justify-content: space-between;
  margin: 0;
}
.portal-card .portal-card-head.branded .branding-img {
  flex: 0 1 50%;
  height: calc(var(--portal-card-head-height) - 1rem);
}
.portal-card .portal-card-head.branded .branding-img img {
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
}
.portal-card form {
  display: contents;
}
.login-form {
  --form-width: 375px;
  --form-gap: 0.5rem;
  --form-width-usable: calc(var(--form-width) - var(--form-gap));
  align-self: center;
  width: var(--form-width);
  position: relative;
  margin-bottom: 2.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.login-form.full {
  --form-width: 100%;
}
.login-form.small-2fa {
  --form-width: 275px;
}
.login-form.small-2fa .login-form-fields {
  --left-size: 0.45;
}
@media (max-width: 600px) {
  .login-form {
    --form-width: 100%;
  }
}
.login-form .explanation {
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.login-form .explanation h4 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: normal;
}
.login-form .login-form-fields {
  display: grid;
  justify-content: center;
  align-items: center;
  column-gap: var(--form-gap);
  row-gap: 0.25rem;
  --left-size: 0.35;
  --right-size: calc(1 - var(--left-size));
  grid-template-columns: calc(var(--left-size) * var(--form-width-usable)) calc(var(--right-size) * var(--form-width-usable));
}
.login-form .login-form-fields > label {
  grid-column: 1;
}
.login-form .login-form-fields > label.right {
  text-align: right;
}
.login-form .login-form-fields > label::after {
  content: ':';
}
.login-form .login-form-fields input[type='text'],
.login-form .login-form-fields input[type='password'] {
  height: 1.2rem;
  border: 1px solid #444;
  border-radius: 0.125rem;
}
.login-form .login-form-fields > .field {
  grid-column: 2;
}
.login-form .login-form-fields > .field label {
  font-size: 0.8rem;
}
.login-form .login-form-actions {
  margin-top: 1rem;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 0.5rem;
}
.login-form .login-form-actions > button {
  background-color: #b90834;
  color: white;
  border: none;
  padding: 0.25rem 1rem;
  border-radius: 0.125rem;
  cursor: pointer;
}
.login-form .login-form-actions > button.full {
  flex-grow: 1;
}
.login-form .login-form-errors {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 2rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-simba-red);
}
.login-form .login-form-errors .hint {
  color: #888;
}
input {
  accent-color: var(--color-simba-red);
}
