/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes scaleIn {
  to {
    transform: scale(1);
  }
}
@keyframes formFadeIn {
  from {
    opacity: 0;
  }
  50% {
  }
  to {
    opacity: 1;
  }
}
@keyframes formTranslateIn {
  from {
    transform: translateY(30px);
  }
  to {
    transform: translateY(0);
  }
}

.qr-help-page-img {
  background-image: url(../img/qr-page-help.png) !important;
}

/* Background */
.identity-bg-layout {
  background-image: url(../img/login-image.jpg);
  background-position: center right;
  background-size: cover;
  width: 100%;
  height: 100%;
  margin-right: 0;
  opacity: unset;
  transform: unset;
}
@media (max-width: 428px) {
  .identity-bg-layout {
    display: none;
  }
}
@media (min-width: 428px) and (max-width: 1199px) {
  .identity-bg-layout {
    height: 35%;
  }
}

/* Form Container */
.identity-logo {
  background-image: url(../img/logo-emblem.svg);
  background-size: contain;
  width: 40px;
  height: 46px;
}
.identity-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}
@media (max-width: 1199px) {
  .identity-container {
    min-height: 65%;
    height: unset;
  }
}
.identity-container ol {
  padding-left: 1rem;
  font-size: 0.875rem;
}
.identity-container__panel {
  animation-delay: 0.525s;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 0 2rem;
}
.identity-container__panel.identity-container__panel--animated {
  animation-delay: 0s;
  animation-duration: 0.35s, 0.4s;
  animation-fill-mode: forwards;
  animation-name: formFadeIn, formTranslateIn;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94),
  cubic-bezier(0.075, 0.82, 0.165, 1);
  opacity: 0;
}
.identity-container__form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 464px;
  padding: 0 2rem;
}
.identity-page-wide .identity-container__form {
  max-width: 564px;
}
.identity-page-narrow .identity-container__form {
  max-width: 400px;
}
.identity-qr-code {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 200px;
}
.identity-section {
  margin: -0.5rem;
  padding: 0.5rem;
  white-space: normal;
  font-weight: normal;
  border-radius: 0.5rem;
}
.identity-section--highlight:focus {
  outline: 0;
  box-shadow: 0 0 0 3px #dceaf7;
  border-radius: 0.5rem;
  margin: -0.5rem;
  padding: 0.5rem;
}
.bb-terms-container {
  max-height: 50vh;
  overflow-y: scroll;
  overflow-x: hidden;
  margin: 1rem 0;
}
@media (max-width: 428px) {
  .bb-terms-container {
    max-height: 40vh;
  }

  .identity-container__form {
    padding: 0;
  }
}

/* Theme Modifications */
.dropleft .dropdown-menu {
  right: 0;
  margin-top: 0.25rem;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}
.dropdown-menu {
  max-height: 400px;
  overflow: auto;
  cursor: pointer;
}

.identity-locale {
  z-index: 1;
  align-self: flex-end;
}

/* Hide arrow icons on otp input */
input.identity-otp-input::-webkit-outer-spin-button,
input.identity-otp-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input.identity-otp-input[type=number] {
  -moz-appearance: textfield;
}

/* Fix for hr disappearing in a flex container */
hr.identity-separator {
  margin-left: 0;
  margin-right: 0;
}

.identity-button-break {
  white-space: normal;
  text-align: left;
}

.bb-input-password__input.is-invalid + .input-group-append .btn {
  border-color: var(--danger);
}

.identity-icon-emblem {
  background-image: url(../img/logo-emblem.svg);
  background-size: contain;
  width: 2rem;
  height: 2rem;
  background-repeat: no-repeat;
}

.eye, .password-new-eye, .password-confirm-eye {
  background-image: url(../img/visibility.svg);
  margin-top: -30px;
  width: 25px;
  z-index: 2;
  height: 25px;
  position: absolute;
  right: 15px;
  cursor: pointer;
}

.crossed-eye, .password-new-crossed-eye, .password-confirm-crossed-eye {
  background-image: url(../img/visibility_off.svg);
  margin-top: -30px;
  width: 25px;
  z-index: 2;
  height: 25px;
  position: absolute;
  right: 15px;
  cursor: pointer;
  display: none;
}

.identity-card-section:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 3px #dceaf7;
  background-color: #f2f2f2;
}

.identity-card-section:hover {
  background-color: #f2f2f2;
}

.identity-card-section::after {
  border-bottom: none;
  content: "";
}

.bb-card:not(.bb-card--ignore).identity-card--outline {
  border: 1px solid #d3d3d3;
}

.bb-card:not(.bb-card--ignore).identity-card--outline:focus {
  outline: 0;
  box-shadow: 0 0 0 3px #dceaf7;
}

.identity-dropdown-menu--full-width {
  width: 100%;
}

.identity-icon--push-device {
  background-image: url(../img/SMS-OTP.svg);
  background-size: contain;
  background-repeat: no-repeat;
  height: 80px;
  width: 50px;
}

.identity-letter-spacing {
  letter-spacing: 5px;
}

.qr-code-image {
  padding: 20px;
  background-color: white;
  border-radius: 16px;
  display: flex;
  font-size: 14px;
}

.qr-code-image img {
  margin-right: 24px;
  min-width: 160px; 
  min-height: 160px;
}

.qr-code-image .qr-steps {
  display: grid;
  align-items: center;
}

.qr-code-image .bb-subtitle hr {
  margin: 32px 0 24px 0;
}

div.modal-body:has(div[data-role="security-advice-modal__body"]) {
  overflow: auto;
  max-height: 85vh;
}

div.modal-body:has(div[data-role="security-advice-modal__body"]) h2 {
  font-family: "LardySans", sans-serif;
}

div.modal-body:has(div[data-role="security-advice-modal__body"]) p, div.modal-body:has(div[data-role="security-advice-modal__body"]) ul {
  margin-bottom: 1.5rem;
}

.bb-subtitle {
  margin-bottom: 1.5rem;
}

[class^="ico-"], [class*=" ico-"] {
  font: normal 1em/1 Arial, sans-serif;
  display: inline-block;
}

.ico-close::before { content: "\2715"; }
.modal-button-close {
  min-width: 2rem;
  min-height: 2rem;
  background-color: unset;
  border: none;
  border-radius: 1rem;
}

.modal-button-close:hover {
  background-color: #e1e8ef;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.5);
  background-clip: content-box;
  border: 2px solid transparent;
}