html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: linear-gradient(180deg, #104850 0%, #24a4b6 100%);
  overflow-x: hidden;
}

.login_page {
  position: relative;
  /* hacks to break out of any outer container max-width: */
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;

  display: flex;
  width: 100vw; /* full viewport width */
  height: 100vh;
}

/* Left Side stays fixed at 50% and is white */
.login_form_container {
  flex: 0 0 50%;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.clienthub_logo_text {
  color: #104850;
  font-size: 24px;
  font-style: normal;
  font-weight: 800;
  line-height: 100%; /* 24px */
  letter-spacing: -0.24px;
}

/* Welcome Text */
.welcome_text {
  color: #000;
  text-align: center;
  font-family: Inter;
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

/* Form Elements */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Input Fields and Labels */
.form_group {
  width: 95%;
  max-width: 400px; /* Ensures consistency */
  display: flex;
  flex-direction: column;
}

/* Input Fields and Labels */
.form-group {
  width: 100%;
  max-width: 400px; /* Ensures consistency */
  display: flex;
  flex-direction: column;
}

.form_group label {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #333;
}

.form_group input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: white;
  font-size: 14px;
  color: #333;
}

/* Buttons - Ensuring Same Width as Input Fields */
.login_button,
.microsoft_login {
  width: 100%;
  max-width: 400px; /* Matches input width */
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Login Button */
.login_button {
  background: #185abd;
  color: white;
}

/* Microsoft Login Button */
.microsoft_login {
  background: linear-gradient(90deg, #104850 52.67%, #24a4b6 100%);
  color: white;
  gap: 0.5rem;
}

.microsoft_login img {
  width: 20px;
  height: 20px;
}

/* Forgot Password Link */
.forgot_password {
  text-align: right;
  font-size: 12px;
  color: #185abd;
  text-decoration: none;
  margin-bottom: 1rem;
}

/* Separator */
.separator {
  text-align: center;
  margin: 1rem 0;
  font-size: 14px;
  font-weight: bold;
  color: #666;
}

/* Right Side simply shows whatever the parent background is */
.login_illustration {
  flex: 1;
  /* remove its own background entirely */
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 4rem;
  position: relative;
}
.login_illustration h2 {
  font-size: 48px;
  font-weight: bold;
}

.login_illustration p {
  font-size: 24px;
  font-style: italic;
}

.login_illustration img {
  width: 80%;
  max-width: 400px;
  margin-top: 1.5rem;
}

/* Responsive Design */
@media (max-width: 900px) {
  .login_page {
    flex-direction: column;
  }

  .login_form_container,
  .login_illustration {
    width: 100%;
    padding: 2rem;
  }

  .login_illustration img {
    width: 100%;
    max-width: 300px;
  }
}

.container-password {
  display: flex;
  flex-direction: column; /* Ensures elements are stacked vertically */
  align-items: center; /* Centers horizontally */
  min-height: 100vh; /* Ensures it takes up full viewport height */
}

/* Ensure the form has a proper width */
.container-password form {
  width: 100%;
  max-width: 400px; /* Adjust width as needed */
}

.bar-password {
  width: 120%;
}

.text-container-header {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* ✅ Styling for the text */
.centered-text {
  font-size: 14px;
  max-width: 80%; /* Adjust as needed */
  font-family: Roboto, sans-serif;
  color: black;
}

.container {
  max-width: 100%; /* Adjust as needed */
}

/* Non-field error messages */
.error-message {
  color: #721c24; /* Dark red text */
  padding: 10px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
}

.login_illustration .language-switcher {
  position: absolute;
  top: 1rem;
  right: 2rem;
}

.language-switcher .dropdown-toggle {
  display: inline-flex;
  align-items: center; /* vertically centers everything */
  gap: 0.3em; /* space between flag and label */
  font-size: 1rem; /* or whatever your body font is */
  line-height: 1; /* collapse any extra vertical space */
  cursor: pointer;
  background: #ffffff;
  border-radius: 15px;
  width: 120%; /* make it wider to accommodate the flag and text */
}

.language-switcher .dropdown-toggle img {
  height: 1em; /* exactly the same height as text */
  width: auto; /* preserve aspect-ratio */
  object-fit: contain; /* crop out any blank padding in the SVG */
  transform: translateY(-0.7em);
  gap: 0.5em; /* space between flag and label */
  border-radius: 15px; /* match the button's border radius */
}

.language-switcher .dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  margin-top: 2.9em;
  list-style: none;
  background: #ffffff;
  border: 1px solid #ccc;
  padding: 0.2em 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.language-switcher:hover .dropdown-menu {
  display: block;
}

.language-switcher .dropdown-menu li button {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.5em; /* space between flag and label */
}

.language-switcher .dropdown-menu li button img {
  height: 1em; /* exactly the same height as text */
  width: auto; /* preserve aspect-ratio */
  object-fit: contain; /* crop out any blank padding in the SVG */
  transform: translateY(-0.7em);
  gap: 0.5em; /* space between flag and label */
  border-radius: 15px; /* match the button's border radius */
}

.language-switcher .check-icon {
  margin-left: auto;
  flex-shrink: 0;
  color: #007bff;
}
.language-switcher .dropdown-menu li button:hover,
.language-switcher .dropdown-menu li button.selected {
  background-color: #d2d6e1;
}
