:root {
  --easing: ease-in-out;
  --duration: 0.75s;
  --logo-delay: 0.25s;
  --form-delay: calc(var(--duration));
  --footer-delay: calc(var(--form-delay) + var(--duration) - 1.5 * var(--logo-delay));
  --form-padding: 0.75rem;
  --form-width: 300px;
  --form-element-width: calc(var(--form-width) - 2 * var(--form-padding));
}

html,
body,
#app,
#app > div:first-child {
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-size: 12px;
  color: #ccc;
  font-family: sans-serif;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes logo-in {
  from {
    opacity: 0;
    transform: translateY(-25%);
  }
  60% {
    transform: translateY(5%);
    opacity: 1;
  }
  to {
    transform: none;
  }
}

iframe {
  display: none;
}

.loginPage {
  background: linear-gradient(
      to top,
      black -5%,
      rgba(0, 38, 58, 0.88) 66%,
      rgba(54, 119, 150, 0.95) 110%
    ),
    url('/idsrv/halo_ap/login-background.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.loginContent {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
}

.loginForm {
  display: flex;
  flex: 1 1 0%;
  align-content: center;
  flex-direction: column;
  justify-content: center;
  width: var(--form-width);
}

.logoImg {
  width: 100%;
  margin-bottom: 24px;
  box-shadow: 0px 3px 9px 3px #05121877;
  border-radius: 30px;
}

.logo {
  width: var(--form-width);
  align-items: center;
  display: flex;
  flex-direction: column;
  animation: logo-in var(--duration) var(--easing) var(--logo-delay);
  animation-fill-mode: both;
}

a, .centeredText {
  text-decoration: none;
  color: #ccc;
  text-align: center;
}
a:hover {
  color: #009a9a;
}

form {
  width: 100%;
  display: grid;
  grid-gap: 1rem;

  animation: fade-in var(--duration) var(--easing) var(--form-delay);
  animation-fill-mode: both;
}

h2 {
  animation: fade-in var(--duration) var(--easing) var(--form-delay);
  animation-fill-mode: both;
}

button,
input,
select {
  border: 0;
  border-radius: 4px;
  padding: var(--form-padding);
  height: 14px;
  width: var(--form-element-width);
}

.passwordInputContainer {
  display: flex;
  align-items: baseline;
}

.passwordInputContainer input {
  width: var(--form-element-width);
}

.passwordStrengthMeter {
  width: var(--form-element-width);
}

select,
button {
  box-sizing: content-box;
}

input:focus,
select:focus {
  box-shadow: 0 0 5px #009a9a;
  outline: none;
}

.loginRemember {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: flex-end;
}

.loginRemember input {
  margin-right: 0.5rem;
  width: auto;
  cursor: pointer;
}

.loginError {
  color: #ff4444;
  font-style: italic;
}

button {
  background: #164a67;
  font-variant: all-small-caps;
  transition-duration: 0.4s;
  color: #ccc;
  cursor: pointer;
}

button:disabled,
button[disabled]:hover {
  background: #164a67;
  opacity: 0.5;
}

button:hover {
  background: #164a67;
}

label {
  font-weight: 500;
  margin-bottom: 0.25rem;
  display: block;
}

.showPasswordIcon {
  position: relative;
  margin: 0 auto;
  right: 20px;
  cursor: pointer;
  color: #00000099;
}
.showPasswordIcon:hover {
  color: #009a9a;
}

.disclaimer {
  color: rgb(116, 119, 116);
  font-style: italic;
  animation: fade-in var(--duration) var(--easing) var(--footer-delay);
  animation-fill-mode: both;
  width: var(--form-width);
  text-align: center;
  margin: 1rem 0;
}

.indicaLink > img {
  width: calc(2/3 * var(--form-width));
  margin: 1rem 0;
  animation: fade-in var(--duration) var(--easing) var(--footer-delay);
  animation-fill-mode: both;
}

.logoutMsg {
  text-align: center;
}

.twoFactorConfig {
  display: flex;
  flex: 1 1 0%;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 700px;
}

.twoFactorConfig form {
  justify-content: center;
}

.twoFactorConfigContent {
  animation: fade-in var(--duration) var(--easing) var(--footer-delay);
  animation-fill-mode: both;
}

.twoFactorConfigSteps li {
  padding: 0px 0px 0.5rem;
}

.twoFactorConfigSteps a {
  color: #e1eba8;
  fill: #e1eba8;
}

.twoFactorConfigSteps a:hover {
  color: #eff1df;
  fill: #eff1df;
  cursor: pointer;
}

.twoFactorKey {
  background-color: #000000;
  color: #ffffff;
  font-family: monospace;
  font-size: 1rem;
}

.twoFactorQRCode {
  height: 128px;
  width: 128px;
  margin-right: auto;
  margin-left: auto;
  padding: 0.5rem 0rem;
}

.twoFactorQRCode img {
  height: inherit;
  width: inherit;
  margin-left: -20px;
}

.twoFactorCancel {
  color: #121212;
  background: #cccccc;
}

.twoFactorCancel:hover {
  background: #cccccc;
}

.configureForm {
  margin: 2rem 0px 0px 0px;
}

.form-group input {
  margin-left: 0px;
}
