@font-face {
  font-family: NotesESAbold;
  src: url(/static/map/fonts/NotesEsaBol.otf) format("opentype")
}

@font-face {
  font-family: NotesESAregular;
  src: url(/static/map/fonts/NotesEsaReg.otf) format("opentype")
}

@font-face {
  font-family: NotesESAlogos;
  src: url(/static/map/fonts/NotesEsaLogos.otf) format("opentype")
}


:root {
  --login-font-family: NotesESAbold, sans-serif;
  --login-form-background-color: #113145;
  --login-button-background-color: #3D5D6D;
  --login-button-color: white;
  --login-button-font-family: "NotesESAregular", 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 1 50%;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
}

#login h1 {
  font-family: var(--login-font-family);
    max-width: 360px;
    color: var(--login-form-background-color);
    margin: 0;
    margin-bottom: 10px;
}

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

#side-image {
  flex: 1 1 50%;
  background-color: white;
  overflow: hidden;
}

#side-image img {
  height: 100vh;
  width: 100%;
  object-fit: cover;
}

#side-image .credit {
  font-family: Arial, Helvetica, sans-serif;
  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;
  border-radius: 5px;
  padding: 2rem 1rem;
  margin: 0 5px;
}

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);
}
