:root {
  color: #2d3b45;
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}
a { color: #0075af; }

a:hover, a:focus { color: #056a9d; }
a:focus { outline: 3px solid #78b9e7; outline-offset: 2px; }

.site-header {
  position: relative;
  height: 98px;
  background: #c83737;
  color: #fff;
}

.site-header__brand {
  position: absolute;
  top: 5px;
  left: max(8%, calc(50% - 496px));
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, serif;
  font-size: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-header__brand img {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.site-header__link {
  position: absolute;
  top: 42px;
  right: max(8%, calc(50% - 496px));
  color: #fff;
  font-size: 14px;
}

.login { flex: 1; width: 100%; margin: 64px auto 0; }
.login__options { width: min(100% - 32px, 357px); margin: 0 auto; }
.login__options p { margin: 0; }

.button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  height: 53px;
  margin: -1px 0 10px;
  padding: 0 22px;
  border: 1px solid #0075AF;
  border-radius: 3px;
  background: #0075AF;
  color: #fff;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}

.button:link, .button:visited, .button:hover, .button:focus, .button:active {
  color: #fff;
}

.button:hover, .button:focus { border-color: #3395CB; background: #3395CB; }
.button img { flex: 0 0 24px; }
.button img.openid-connect-icon { flex-basis: 19.5px; }
.login__alternative { margin: 13px 0 0 !important; text-align: center; }
.login__alternative a { text-decoration: none; }
.login__alternative a:hover, .login__alternative a:focus { text-decoration: underline; }

.help {
  width: 30%;
  margin: 62px auto 0;
  border-top: 1px solid #e2e2e2;
  padding-top: 20px;
}
.help a { display: block; text-decoration: none; }
.help a:hover, .help a:focus { text-decoration: underline; }
.help a::after {
  content: "\2197";
  display: inline-block;
  text-decoration: double;
  margin-left: 4px;
}
.help p { margin: 14px 0; }

footer {
  margin: 64px 0 0;
  padding: 32px max(8%, calc(50% - 496px));
  background: #c83737;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

footer h2 {
  margin: 0 0 8px;
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
}

footer ul { margin: 0; padding: 0; list-style: none; }
footer li + li { margin-top: 5px; }
footer a, footer a:visited { color: #fff; }
footer a:hover, footer a:focus { color: #fff; }

@media (max-width: 540px) {
  footer { padding: 28px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 540px) {
  .site-header__brand { left: 16px; }
  .login { margin-top: 50px; }
}
