.page-wrapper {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.site-header img {
  width: 100%;
  height: auto;
  display: block;
}

.otp-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  width: 100%;
  margin-top: 100px;
}

.otp-card {
  display: flex;
  width: 100%;
  max-width: 1126px;
  min-height: 576px;
  border-radius: 25px;
  /* box-shadow: 1px 2px 4.4px 0px rgba(0, 0, 0, 0.25); */
  overflow: hidden;
  background-color: var(--card-background);
}

.form-container {
  flex-basis: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 71px;
}

.title {
  color: var(--primary-color);
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 56.35px;
  margin-bottom: 30px;
}

.otp-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.otp-inputs {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  /* A consistent gap */
  width: 100%;
  max-width: 421px;
  margin-bottom: 41px;
}

.otp-input {
  width: 94px;
  height: 70px;
  border: none;
  background-color: var(--card-background);
  border-radius: 25px;
  box-shadow: 1px 2px 22.5px 0px rgba(15, 118, 110, 0.25);
  text-align: center;
  font-size: 24px;
  font-family: "Inter", sans-serif;
  color: #0f766e;
}

.otp-input:focus {
  outline: 2px solid var(--primary-color);
}

.submit-btn {
  width: 100%;
  max-width: 421px;
  background-color: #0f766e;
  color: #ffffff;
  border: none;
  border-radius: 25px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 1px 2px 22.5px 0px rgba(15, 118, 110, 0.25);
  margin: 0 auto 24px;
  /* Added margin auto for horizontal centering */
  display: block;
  /* Changed to block for proper margin auto behavior */
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: #138d84;
}

.resend-link {
  color: #0f766e;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  text-decoration: none;
}

.resend-link:hover {
  text-decoration: underline;
}

.image-container {
  flex-basis: 50%;
  position: relative;
}

.image-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: linear-gradient(
    180deg,
    rgba(15, 118, 110, 0.49) 0%,
    rgba(165, 209, 206, 0.49) 100%
  ); */
  z-index: 1;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 0;
}

@media (max-width: 1024px) {
  .otp-card {
    flex-direction: column;
    max-width: 500px;
  }

  .image-container {
    order: -1;
    /* Move image to the top */
    height: 300px;
  }

  .image-container img,
  .image-container::before {
    border-radius: 25px 25px 0 0;
  }

  .form-container {
    padding: 40px 30px;
  }

  .title {
    font-size: 36px;
    line-height: 1.2;
  }
}

@media (max-width: 480px) {
  .otp-section {
    padding: 20px;
  }

  .title {
    font-size: 28px;
  }

  .otp-inputs {
    gap: 10px;
  }

  .otp-input {
    width: 60px;
    height: 60px;
    font-size: 20px;
  }

  .form-container {
    padding: 30px 20px;
  }
}
