html,
body {
  height: 100%;
}

body {
  background-image: url("../images/background.jpg");
  background-size: cover;
  background-attachment: fixed;
}

.wrapper {
  min-height: 100%;
}

.wrapper .main {
  overflow: visible;
  padding-bottom: 40px;
}

.anim-fade-in {
  animation: fadeInAnimation ease 1.5s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

/**
 * Navigation section
 */
.navigation {
  background-color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(240,240,240,1) 100%);
}

.navigation .navbar-brand img {
  position: relative;
  top: 1px;
}

/**
 * Login section
 */
section.login {
  position: relative;
  margin-top: -40px;
  width: 100%;
  max-width: 550px;
  padding: 15px;
  animation: fadeInAnimation ease 1.5s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

section.login-md {
  max-width: 720px;
}

section.login .box {
  background: #fff;
  color: #505050;
  padding: 1em;
  border-radius: 0.5em;
}

section.login .box, .box-shadow {
  box-shadow: 0 2px 1px -1px #0003, 0 1px 1px #00000024, 0 1px 3px #0000001f;
}

section.login input, section.login select {
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.05), 0 -1px 1px #fff, 0 1px 0 #fff;
}

section.login .checkbox label {
  cursor: pointer;
}

section.login .checkbox input {
  cursor: pointer;
  font-weight: 500;
  position: relative;
  top: 1px;
}

section.login .form-floating:focus-within {
  z-index: 2;
}

section.login .logo {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

section.login button > .spinner-border {
  position: relative;
  top: -2px;
  display: none;
}

/**
 * Footer
 */
footer {
  width: 100%;
  height: 40px;
  position: relative;
  margin-top: -40px;
  clear: both;
  color: #fff;
  background: linear-gradient(180deg, rgba(85,85,85,1) 0%, rgba(51,51,51,1) 100%);
  box-shadow: 0 -0.125rem .35rem rgba(0,0,0,.2);
}

footer a, footer a:hover {
  font-weight: 600;
  color: #fff;
}

/**
 * Services section
 */
section.services .service {
  background: #fff;
  color: #505050;
  padding: 1em;
  border-radius: 0.5em;
  margin-bottom: 1em;
  border-left: solid 5px #eee;
  animation: fadeInAnimation ease 1s;
  animation-fill-mode: forwards;
  opacity: 0;
  box-shadow: 0 2px 1px -1px #0003, 0 1px 1px #00000024, 0 1px 3px #0000001f;
}

section.services .service:nth-child(2) {
  animation-delay: .25s;
}

section.services .service:nth-child(3) {
  animation-delay: .5s;
}

section.services .service:nth-child(4) {
  animation-delay: .75s;
}

section.services .service:nth-child(5) {
  animation-delay: 1s;
}

section.services .service:nth-child(n+6) {
  animation-delay: 1.25s;
}

section.services .service .logo {
  max-width: 110px;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

/**
 * Errors
 */
.error {
  text-align: center;
  background: #fff;
  color: #505050;
  padding: 1em;
  border-radius: 0.5em;
}

/**
 * Captcha
 */
.captcha-area .captcha-img {
  display: flex;
  margin-right: 5px;
  height: 80px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  user-select: none;
  border-radius: 5px;
  position: relative;
}

.captcha-img img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
  opacity: 0.95;
}

.captcha-img .captcha {
  position: absolute;
  left: -5%;
  top: -20px;
  width: 100%;
  height: 80px;
  color: black;
  font-family: cursive !important;
  font-style: italic !important;
  font-size: 50px !important;
  text-align: center;
  font-weight: bold;
  letter-spacing: 10px;
  transform-origin: top left;
  transform: skew(36deg, 4deg);
  text-shadow: 0px 0px 2px #b1b1b1;
}

/**
 * Password policy
 */
.password-progress {
  height: 30px;
  font-size: 0.85em;
}

/**
 * Simple MFa token field.
 */
#simple-mfa-token {
  font-family: monospace;
}

/**
 * Animations
 */
@keyframes fadeInAnimation {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes slideDownAnimation {
  0% {
    opacity: 0;
    bottom: 40px;
  }
  100% {
    opacity: 1;
    bottom: 0px;
  }
}