@font-face {
  font-family: DanoneOne-Condensed;
  src: url(/static/map/fonts/DanoneOne-Condensed.woff) format("woff"),
    url(/static/map/fonts/DanoneOne-Condensed.woff2) format("woff2"),
    url(/static/map/fonts/DanoneOne-Condensed.eot) format("eot"),
    url(/static/map/fonts/DanoneOne-Condensed.ttf) format("ttf"),
    url(/static/map/fonts/DanoneOne-Condensed.ttf) format("otf");
}

@font-face {
  font-family: DanoneOne-CondensedBold;
  src: url(/static/map/fonts/DanoneOne-CondensedBold.woff) format("woff"),
    url(/static/map/fonts/DanoneOne-CondensedBold.woff2) format("woff2"),
    url(/static/map/fonts/DanoneOne-CondensedBold.eot) format("eot"),
    url(/static/map/fonts/DanoneOne-CondensedBold.ttf) format("ttf"),
    url(/static/map/fonts/DanoneOne-CondensedBold.otf) format("otf");
}

@font-face {
  font-family: DanoneOne-Light;
  src: url(/static/map/fonts/DanoneOne-Light.woff) format("woff"),
    url(/static/map/fonts/DanoneOne-Light.woff2) format("woff2"),
    url(/static/map/fonts/DanoneOne-Light.eot) format("eot"),
    url(/static/map/fonts/DanoneOne-Light.ttf) format("ttf"),
    url(/static/map/fonts/DanoneOne-Light.otf) format("otf");
}


:root {
  --login-font-family: DanoneOne-Light, sans-serif;
  --login-form-background-color: #0057aa;
  --login-button-background-color: #3db0ff;
  --login-button-color: white;
  --login-button-font-family: DanoneOne-Condensed, sans-serif;
  --login-errornote-color: white;
}

body {
  font-family: var(--login-font-family);
  position: relative;
  height: 100vh;
  display: flex;
  margin: 0;
}

body.ar {
  direction: rtl;
}

#login {
  flex: 1 0 auto;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
}

#footer-image {
  z-index: -1;
  position: absolute;
  right: 10px;
  bottom: 0;
  background-color: white;
  height: 80px;
  width: auto;
}

#top-image {
  margin-bottom: 10px;
}

#side-image {
  flex: 0 0 auto;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
}

#side-image img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

#side-image .credit {
  font-size: 0.8em;
  color: white;
  background-color: #333333cc;
  position: absolute;
  bottom: 0;
  left: 0;
  text-align: center;
  padding: 5px;
  margin: 2px;
  border-radius: 5px;
}

form {
  position: relative;
  background: var(--login-form-background-color);
  width: 350px;
  padding: 2rem 1rem;
}

form input,
form .as-input {
  margin: 1rem;
  width: 90%;
  height: 2rem;
  box-sizing: border-box;
  padding-inline: 0.5rem;
}

form .as-btn {
  cursor: pointer;
  box-shadow: none;
  box-sizing: border-box;
  border: 0px;
  background-color: var(--login-button-background-color);
  color: var(--login-button-color);
  padding: 1px 2px;
  font-family: var(--login-button-font-family);
}

form .as-btn:hover {
  background-color: var(--login-button-color);
  color: var(--login-button-background-color);
}

.errornote {
  margin-block-start: 0px;
  color: var(--login-errornote-color);
}
