/**
 * @file
 * Transmit Journey Page layout styles.
 */

.journey-layout {
  display: flex;
  height: 100vh;
  background-color: #f8f9fa;
}

.journey-layout__form-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background-color: #ffffff;
}

.journey-layout__form-section[data-show-env-message="true"] {
  border-width: 5px;
  border-style: inset;
  border-color: #ffca00;
}

.journey-layout__form-section[data-show-env-message="true"]::after {
  content: attr(data-env);
  position: absolute;
  bottom: 10px;
  color: #ffca00;
}

.journey-layout__form-section[data-show-env-message="true"][data-env="api-prod"] {
  border-color: red;
}

.journey-layout__form-section[data-show-env-message="true"][data-env="api-prod"]::after {
  color: red;
}

.journey-layout__form-container {
  width: 100%;
  max-width: 360px;
  padding: 0 20px;
}

/* Logo is now part of transmit-journey component */

/* Journey Container - styles are now handled by the transmit-journey component */
.journey-layout__form-container .transmit-journey {
  width: 100%;
}

/* Testimonial Section */
.journey-layout__testimonial-section {
  background-color: white;
  flex: 1;
  position: relative;
  min-width: 500px;
  max-width: 720px;
  padding: 24px 24px 24px 0;
}

.testimonial-carousel.testimonial-in-login-page .testimonial-card {
  min-height: unset;
  height: 100%;
}

/* Error and success message styles are now handled by the transmit-journey component */

/* Responsive design */
@media (max-height: 700px) {
  .journey-layout {
    height: auto;
  }
}

@media (max-width: 1024px) {
  .journey-layout__testimonial-section {
    display: none;
  }
}

@media (max-width: 768px) {
  .journey-layout {
    flex-direction: column;
  }

  .journey-layout__form-section {
    order: 2;
    padding: 20px;
  }

  .journey-layout__form-container {
    max-width: 100%;
    padding: 0;
  }

  .journey-layout__title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .journey-layout__form-section {
    padding: 16px;
  }

  .journey-layout__header {
    margin-bottom: 24px;
  }

  .journey-layout__title {
    font-size: 20px;
  }

  .journey-layout__form-container .transmit-journey {
    min-height: 250px;
  }
}
