.landing-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100vw;
  min-height: 100vh;
  background-color: white;
}

.landing-wrapper-background-image {
  position: relative;
  width: 100%;
  max-width: 1920px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; 
  align-items: center;
  padding: 0rem 2rem;
  box-sizing: border-box;
}

.landing-header-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2rem 1rem;
  background-color: white;
}

.header-logo-container {
  display: flex;
  align-items: center;
  flex: 1;
}

.header-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo-link:hover {
  text-decoration: none;
}

.header-logo {
  height: auto;
  max-height: 5rem; /* Increased from 3rem to 5rem */
  margin-right: 0.5rem;
  margin-left: 0.4rem;
}

.header-logo-large {
  display: block;
}

.header-logo-small {
  display: none;
}

.lang-switch {
  display: flex;
  flex-wrap: nowrap;
  font-size: 1.5rem;
  flex: 0 0 auto; /* Changed from flex: 1 to prevent stretching */
  justify-content: flex-end;
  align-items: center;
}

.lang-button {
  margin-left: 0.5rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  border: none;
  background-color: white;
  color: black;
  text-decoration: none !important;
  position: relative;
  transition: all 0.3s ease;
}

.lang-button::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: var(--main-blue);
  bottom: -3px;
  left: 0;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.lang-button:hover::after,
.lang-button.active::after {
  transform: scaleX(1);
}

.lang-button:hover,
.lang-button.active {
  font-weight: bold;
  color: black; 
}

.lang-button.active::after {
  transform: scaleX(1);
}

.landing-title-website {
  text-align: center;
  margin-bottom: 2rem;
}

.landing-title-website.hidden {
  visibility: hidden;
}


.header-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 2.2rem ;
  padding: 2.5rem;
}

.header-title-main {
  font-size: 3.5rem;
  font-weight: normal;
  margin-bottom: 1rem;
}

.header-title-sub {
  font-size: 2.5rem;
  font-weight: bold;
}


.landing-image-container {
  position: relative;
  cursor: pointer;
  display: inline-block;
  padding-bottom: 5rem;
  max-width: 100%; /* Add this line */
}

.landing-background-image {
  width: 100%;
  max-height: 50vh;
  object-fit: contain;
  max-width: 100%; /* Add this line */
  height: auto; /* Add this line */
}

#landing-enter-button {
  background-color: transparent;
  border: none;
  color: black;
  font-size: 1.8rem; /* Increased font size */
  cursor: pointer;
  padding: 0.5rem 1rem; /* Adjusted padding */
  margin-top: 3rem; /* Increased top margin */
  position: absolute;
  bottom: 0;
  right: 0;
  transition: color 0.3s ease; /* Smooth color transition on hover */
}

#landing-enter-button::after {
  content: '';
  position: absolute;
  bottom: -0.2rem; /* Moved the line closer to the text */
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #0D4EA6;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.landing-image-container:hover #landing-enter-button::after,
#landing-enter-button:hover::after {
  transform: scaleX(1);
}
  

.auth-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--white);
  padding: 3rem;
  max-width: 90%;
  width: 60rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 10;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
}

.form-container {
  flex: 0 0 48%;
}

.auth-column {
  width: 100%;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--black);
}

.auth-form-field {
  margin-bottom: 1.5rem;
}

.auth-form-field input {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-bottom: 2px solid var(--light-gray);
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background-color: transparent;
}

.auth-form-field input:focus {
  outline: none;
  border-color: var(--main-blue);
}

.auth-form-checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.auth-form-checkbox input[type="checkbox"] {
  margin-right: 0.8rem;
  appearance: none;
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid var(--light-gray);
  position: relative;
  cursor: pointer;
}

.auth-form-checkbox input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--main-blue);
  font-size: 1rem;
}

.auth-form-checkbox label {
  color: var(--black);
  font-size: 0.9rem;
  line-height: 1.4;
}

.auth-form-checkbox a {
  color: var(--main-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.auth-form-checkbox a:hover {
  border-color: var(--main-blue);
}

.auth-button {
  margin-top: 2rem;
}

.auth-button button {
  background-color: var(--white);
  border: 2px solid var(--black);
  color: var(--black);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.8rem 2rem;
  transition: all 0.3s ease;
  width: 100%;
}

.auth-button button:hover {
  background-color: var(--black);
  color: var(--white);
}

.forgot-password-btn {
  background: none;
  border: none;
  color: var(--black);
  text-decoration: none;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
  margin-top: 1rem;
  transition: color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.forgot-password-btn:hover {
  color: var(--main-blue);
  border-color: var(--main-blue);
}

@media only screen and (max-width: 768px) {


  .auth-container {
    position: absolute; 
    flex-direction: column;
    width: 100%;
    max-width: none;
    align-items: center; 
    justify-content: center;
    min-height: 100vh;   
    overflow-y: auto;    
    transform: none;     
    top: 0;              
    left: 0;
    padding: 1rem 0;
    box-sizing: border-box;
  }

  .form-container {
    max-width: 100%; 
    margin-bottom: 1rem; 
    box-sizing: border-box;
  }

  .auth-column {
    flex: 1;
    width: 100%; 
    padding: 1rem;
    text-align: center; 
    box-sizing: border-box;
  }

  .auth-button {
    text-align: center; 
  }


    .landing-wrapper-background-image {
        padding: 0 1rem;
    }

    .landing-header-row {
      padding: 1rem 1rem;
    }
  
    .header-logo {
      max-height: 4rem; /* Slightly smaller for 768px screens, but still larger than before */
    }
  
    .lang-button {
      font-size: 1rem;
    }
  
    .header-title-main {
        font-size: 1.8rem;
    }
  
    .header-title-sub {
        font-size: 1.2rem;
    }
  
    .landing-background-image {
      max-width: 95%;
      max-height: 40vh;
    }
  
    #landing-enter-button {
        font-size: 1.2rem;
        align-self: center;
        margin-right: 0;
    }


.flex-spacer {
    flex-grow: 1;
}}


@media (max-width: 480px) {
  .header-logo-large {
      display: none;
  }
  .header-logo-small {
      display: block;
      max-height: 3rem; /* Changed to 3rem to match landing page */
  }

  .header-title-main {
      font-size: 1.4rem;
  }

  .header-title-sub {
      font-size: 1rem;
  }

  .lang-button {
      font-size: 1rem;
      padding: 0.2rem 0.3rem;
  }
}