.login-hero-photo {
  --login-hero-image: url("/images/perdana-putra-login.png");
  --login-hero-position: 10% 35%;
  --login-hero-overlay: linear-gradient(
    to right,
    rgba(8, 35, 44, 0.76) 0%,
    rgba(8, 35, 44, 0.76) 40%,
    rgba(8, 35, 44, 0.58) 70%,
    rgba(8, 35, 44, 0.43) 100%
  );
}

.login-with-photo {
  position: relative;
  isolation: isolate;
}

.login-hero-photo .login-intro {
  position: relative;
  isolation: isolate;
  background-color: #102f3b;
  background-image: var(--login-hero-image);
  background-size: cover;
  background-position: var(--login-hero-position);
}

.login-hero-photo .login-intro::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: var(--login-hero-overlay);
  content: "";
}

.login-hero-photo .login-intro > * {
  position: relative;
  z-index: 1;
}

.login-with-photo .login-intro > * {
  opacity: 0;
  animation: login-content-reveal 380ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.login-with-photo::before {
  position: absolute;
  z-index: 10;
  inset: 0 auto 0 0;
  width: 100%;
  background-color: #102f3b;
  background-image: var(--login-hero-overlay), var(--login-hero-image);
  background-size: 100% 100%, cover;
  background-position: center, var(--login-hero-position);
  content: "";
  pointer-events: none;
  animation: login-hero-split 1.05s cubic-bezier(0.65, 0, 0.35, 1) both;
}

.login-with-photo .login-intro > :nth-child(1) {
  animation-delay: 1.1s;
}

.login-with-photo .login-intro > :nth-child(2) {
  animation-delay: 1.2s;
}

.login-with-photo .login-intro > :nth-child(3) {
  animation-delay: 1.3s;
}

.login-with-photo .login-panel > * {
  opacity: 0;
  animation: login-content-reveal 380ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.login-with-photo .login-panel > .login-brand-logo {
  animation-delay: 1.1s;
}

.login-page .login-brand-logo {
  display: block;
  width: 90px;
  height: auto;
}

.login-with-photo .login-panel > h2 {
  animation-delay: 1.18s;
}

.login-with-photo .login-panel > p {
  animation-delay: 1.26s;
}

.login-with-photo .login-panel > .alert {
  animation-delay: 1.3s;
}

.login-with-photo .login-panel form > label:first-of-type {
  opacity: 0;
  animation: login-content-reveal 380ms cubic-bezier(0.22, 0.61, 0.36, 1) 1.32s both;
}

.login-with-photo .login-panel form > .login-input:first-of-type {
  opacity: 0;
  animation: login-content-reveal 380ms cubic-bezier(0.22, 0.61, 0.36, 1) 1.39s both;
}

.login-with-photo .login-panel form > label:nth-of-type(2) {
  opacity: 0;
  animation: login-content-reveal 380ms cubic-bezier(0.22, 0.61, 0.36, 1) 1.46s both;
}

.login-with-photo .login-panel form > .login-password {
  opacity: 0;
  animation: login-content-reveal 380ms cubic-bezier(0.22, 0.61, 0.36, 1) 1.53s both;
}

.login-with-photo .login-panel form > .text-end {
  opacity: 0;
  animation: login-content-reveal 380ms cubic-bezier(0.22, 0.61, 0.36, 1) 1.6s both;
}

.login-with-photo .login-panel form > button {
  opacity: 0;
  animation: login-content-reveal 380ms cubic-bezier(0.22, 0.61, 0.36, 1) 1.67s both;
}

@keyframes login-hero-split {
  from {
    width: 100%;
    visibility: visible;
  }
  to {
    width: 52.38%;
    visibility: hidden;
  }
}

@keyframes login-content-reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 650px) {
  .login-hero-photo .login-intro {
    background-position: center 38%;
  }

  .login-page .login-brand-logo {
    width: 80px;
  }

  .login-with-photo::before {
    display: none;
  }

  .login-with-photo .login-intro > *,
  .login-with-photo .login-panel > *,
  .login-with-photo .login-panel form > label:first-of-type,
  .login-with-photo .login-panel form > .login-input:first-of-type,
  .login-with-photo .login-panel form > label:nth-of-type(2),
  .login-with-photo .login-panel form > .login-password,
  .login-with-photo .login-panel form > .text-end,
  .login-with-photo .login-panel form > button {
    opacity: 1;
    animation: none;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-with-photo::before {
    display: none;
    animation: none;
  }

  .login-with-photo .login-intro > *,
  .login-with-photo .login-panel > *,
  .login-with-photo .login-panel form > label:first-of-type,
  .login-with-photo .login-panel form > .login-input:first-of-type,
  .login-with-photo .login-panel form > label:nth-of-type(2),
  .login-with-photo .login-panel form > .login-password,
  .login-with-photo .login-panel form > .text-end,
  .login-with-photo .login-panel form > button {
    opacity: 1;
    animation: none;
    transform: none;
  }
}
