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

/* Background */
body {
  background-color: white;
}
.identity-page--ready.identity-page--background-1 .identity-bg-layout {
  background-image: url('../assets/background-image-1.jpg');
}
.identity-page--ready.identity-page--background-2 .identity-bg-layout {
  background-image: url('../assets/background-image-2.jpg');
}
.identity-page--ready.identity-page--background-3 .identity-bg-layout {
  background-image: url('../assets/background-image-3.jpg');
}
.identity-page--ready.identity-page--background-4 .identity-bg-layout {
  background-image: url('../assets/background-image-4.jpg');
}
.identity-page--ready.identity-page--background-5 .identity-bg-layout {
  background-image: url('../assets/background-image-5.jpg');
}
.identity-bg-layout {
  background-position: center;
  background-size: cover;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.1);
  margin-right: 0;
}
.identity-page--ready .identity-bg-layout {
  animation-delay: 0.15s;
  animation-duration: 0.35s, 0.45s;
  animation-fill-mode: forwards;
  animation-name: fadeIn, scaleIn;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94),
    cubic-bezier(0.075, 0.82, 0.165, 1);
  opacity: 0;
  animation-delay: 0.3s;
  animation-duration: 0.5s, 1s;
}
@media (max-width: 428px) {
  .identity-bg-layout {
    display: none;
  }
}
@media (min-width: 428px) and (max-width: 991px) {
  .identity-bg-layout {
    height: 35%;
  }
}

/* Form Container */
main {
  height: 100%;
  display: flex;
}

.identity-logo {
  background-image: url(../../backbase-theme/assets/images/logo.svg);
  background-size: contain;
  background-repeat: no-repeat;
  width: 120px;
  height: 40px;
}
.identity-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}
@media (max-width: 991px) {
  .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 {
  width: 100%;
  max-width: 464px;
  padding: 0 2rem;
  overflow: auto;
  margin: auto;
}
.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 #0261c3;
  border-radius: 0.5rem;
  margin: -0.5rem;
  padding: 0.5rem;
}
.bb-terms-container {
  max-height: 50vh;
  overflow: scroll;
  margin: 1rem 0;
}
@media (max-width: 428px) {
  .bb-terms-container {
    max-height: 40vh;
  }

  .identity-container__form {
    padding: 0;
  }
}

/* Theme Modifications */
.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 + .btn {
  border-color: var(--danger);
}

.identity-card-section:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 3px #0261c3;
  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 #0261c3;
}

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

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

/*
 * Ensures phone number directions are LTR orientated.
 * This should only be used where the phone number appears on it's own.
 * Replace once ui-ang has a similar CSS class.
 */
.ltr-phone {
  direction: ltr;
  text-align: right;
}

.dropdown-menu-left {
  left: 0;
}
