body,
html {
  font-family: "Inter", sans-serif;
}

.bg-image {
  background-image: url("../images/ucpmp_banner.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.login-card {
  z-index: 1;
  width: 100%;
  max-width: 800px;
  border-radius: 12px;
  overflow: hidden;
  border: none;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  background: #fff;
}

.card-header-logos {
  padding: 15px 20px 5px;
}

.logo-img {
  width: 300px;
}

.form-container {
  padding: 0px 140px 40px;
}

.ucpmp-title {
  font-weight: 500;
  color: #000;
  font-size: 24px;
  line-height: 34px;
}

.ucpmp-code-title {
  font-size: 15px;
  color: #000;
}

.resend-code-title {
  color: #41a1d7;
  font-weight: 500;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 400;
  color: #111827;
  margin-bottom: 5px;
}

.form-control,
.form-select {
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 0.9rem;
  border: 1px solid #ddd;
}

.forgot-link {
  text-decoration: none;
  font-size: 0.8rem;
  color: #848484;
  display: block;
  text-align: right;
  margin-top: 10px;
}

.btn-login {
  background-color: #389b2e;
  border: 1px solid #2e8026;
  color: white;
  font-weight: 600;
  padding: 12px;
  width: 100%;
  margin-top: 15px;
  transition: opacity 0.3s;
}

.btn-login:disabled {
  background-color: #389b2e;
  opacity: 0.5;
  cursor: not-allowed;
  color: white;
}

.btn-login:hover:not(:disabled) {
  background-color: #2e8026;
  border: 1px solid #1e5619;
  color: #fff;
}

.az-btn-modal {
  background-color: #389b2e !important;
}

.card-footer-custom {
  background-color: #41a1d7;
  color: white;
  text-align: center;
  padding: 14px;
  font-size: 0.9rem;
  font-weight: 400;
}

.card-footer-custom a {
  color: white;
  font-weight: 700;
  text-decoration: none;
  margin-left: 5px;
}

.card-footer-custom a:hover {
  text-decoration: underline;
}

.form-check-label {
  font-size: 0.85rem;
  color: #444;
  line-height: 1.5;
}

.input-group-text {
  cursor: pointer;
  background-color: transparent;
}

.refresh-captch-btn i {
  color: #42a2d9;
  font-size: 22px;
}

.otp-input {
  background-color: #f3f3f3;
  border-color: #bebebe;
  height: 75px;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
}

.btn-outline-primary:hover {
  background: none;
}

.modal-body {
  padding: 20px 40px !important;
  height: 380px;
  overflow: scroll;
  font-size: 16px;
  line-height: 30px;
  color: #000;
}

.modal-footer {
  display: flex;
  justify-content: center;
}

/* Container for the forms to allow sliding */
.form-wrapper {
  position: relative;
  overflow: hidden;
  transition: height 0.4s ease-in-out;
}

#az-cust-form-2 {
  display: none;
  /* Hidden by default */
}

/* Slide animation classes */
.slide-out {
  animation: slideOutLeft 0.4s forwards ease-in-out;
}

.slide-in {
  animation: slideInRight 0.4s forwards ease-in-out;
}

.slide-out-right {
  animation: slideOutRight 0.4s forwards ease-in-out;
}

.slide-in-left {
  animation: slideInLeft 0.4s forwards ease-in-out;
}

@keyframes slideOutLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media screen and (max-width: 1450px) {
  .bg-image {
    height: auto;
    min-height: 100vh;
    padding: 20px 0;
  }

  .login-card {
    max-width: 700px;
  }

  .logo-img {
    width: 260px;
  }

  .ucpmp-title {
    font-size: 20px;
    line-height: 28px;
  }

  .card-header-logos {
    padding: 10px 20px 5px;
  }

  .form-container {
    padding: 0px 100px 20px;
  }
}

@media screen and (max-width: 768px) {
  .login-card {
    margin: 0 15px;
  }

  .bg-image {
    height: auto;
    padding: 80px 0;
  }

  .ucpmp-title {
    font-size: 18px;
    line-height: 28px;
  }

  .form-container {
    padding: 20px 20px 30px;
  }

  .otp-input {
    height: 60px;
    font-size: 24px;
    font-weight: 600;
  }
}

/* Modals & extra overrides added from forgot.css to fix page issues */
.login-back-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.login-back-section i {
  color: #41a1d7;
  font-size: 18px;
}

.login-back-section p {
  color: #111827;
}

.ucpmp-instruct-title {
  color: #4b5563;
  font-size: 15px;
}

.ucpmp-respond-title {
  color: #41a1d7 !important;
  font-size: 15px;
  text-decoration: none;
}

.email-logo {
  width: 85px;
}

.validation-link {
  text-decoration: none;
  font-size: 0.8rem;
  color: #848484;
  display: block;
  text-align: left;
  margin-top: 4px;
}

/* Scoped classes for set-password page to slide correctly */
.form-wrappers {
  position: relative;
  width: 100%;
  min-height: 580px;
  /* Increased to accommodate validation errors */
  overflow: hidden;
  transition: min-height 0.4s ease-in-out;
}

.form-wrappers .form-container {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition:
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s;
}

#az-cust-form {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

#az-cust-form.hide-left {
  opacity: 0;
  transform: translateX(-100%) !important;
  pointer-events: none;
}

#az-cust-form2 {
  opacity: 0;
  transform: translateX(100%);
  z-index: 1;
}

#az-cust-form2.show-center {
  opacity: 1;
  transform: translateX(0) !important;
  z-index: 3;
}