body {
  margin: 0;
  padding: 0;
  background: url('../img/background.png') no-repeat center center fixed;
  background-size: cover;
  font-family: 'Segoe UI', sans-serif;
}


.header {
  background-color: white;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header img {
  height: 100px;
  object-fit: contain;
}

.lang-switch a {
  text-decoration: none;
  margin-left: 10px;
  color: #FFF;
  font-weight: bold;
}

.login-box {
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  width: 350px;
  margin: 80px auto;
  padding: 30px 40px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.login-box h2 {
  margin-bottom: 20px;
}

.login-box input[type="text"],
.login-box input[type="email"],
.login-box input[type="password"]{
  width: 100%;
  padding: 12px;
  margin: 5px 0;
  border: none;
  border-radius: 5px;
  box-sizing: border-box;
}

.login-box button {
  width: 100%;
  padding: 12px;
  background-color: #6a9477;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}

.login-box button:hover {
  background-color: #50715b;
}

.login-box .forgot,
.login-box .login-link {
  display: block;
  margin-top: 15px;
  font-size: 0.9em;
  color: #ddd;
  text-decoration: none;
}

.lang-switch {
  display: block;
  margin-top: 15px;
  font-size: 0.9em;
  text-decoration: none;
  color: #fff;
}

.login-box .forgot:hover,
.login-box .login-link:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  .login-box {
    width: 80%;
    padding: 25px 20px;
  }

  .header {
    height: 80px;
  }

  .header img {
    height: 50px;
  }
}

@media (max-width: 480px) {
  .login-box {
    width: 90%;
    padding: 20px 15px;
  }

  .login-box h2 {
    font-size: 1.2em;
  }

  .login-box input,
  .login-box button {
    font-size: 1em;
  }
}
.password-wrapper {
  position: relative;
  width: 100%;
  margin: 5px 0;
}

.password-wrapper input {
  width: 100%;
  padding: 12px 40px 12px 12px;
  border-radius: 8px;
  border: none;
  background-color: #fff;
  box-sizing: border-box;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  height: 24px;
  width: 24px;
}

.eye-icon {
  width: 24px;
  height: 24px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.login-box .error-message {
  color: #b00020 !important;
  background-color: #ffe6e6 !important;
  border: 1px solid #b00020;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 15px;
  font-weight: bold;
}

.login-box .warning-message {
  color: #b06d00 !important;
  background-color: #fff4e5 !important;
  border: 1px solid #b06d00;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 15px;
  font-weight: bold;
}

.disconnection-message {
  color: #2980b9 !important;
  background-color: #E3FFE5 !important;
  border: 1px solid #2980b9;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 15px;
  font-weight: bold;
}

.success-message {
  color: #2980b9 !important;
  background-color: #E3FFE5 !important;
  border: 1px solid #2980b9;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 15px;
  font-weight: bold;
}

.name-fields-container,
.invitation-field,
.email-field {
  display: flex;
  width: 100%;
  gap: 10px;
  margin: 5px 0; /* Match the margin of individual inputs */
}

.name-field {
  flex: 1;
}

.disabled-box {
  pointer-events: none;
  position: relative;
}

.disabled-box .success-message {
  opacity: 1 !important;
  pointer-events: auto !important;
  background: #e0ffe0;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #2ecc71;
  border-radius: 5px;
  color: #2c662d;
  font-weight: bold;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0;
}
input.gris {
  background-color: #A4A9AB;
  color: #555;
  cursor: not-allowed;
}

.user-menu {
  position: relative;
  display: inline-block;
  margin-left: 20px;
}

.user-menu-button {
  cursor: pointer;
  padding: 0.5em 1em;
  background-color: transparent;
  color: white;
  font-weight: bold;
  border-radius: 4px;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: #ffffff;
  border: 1px solid #ccc;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1000;
  border-radius: 4px;
  flex-direction: column;
}

.dropdown-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  white-space: nowrap;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.user-menu.dropdown-open .dropdown-content {
  display: flex;
}

.language-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0px;
  font-size: 14px;
}

.login-language-selector {
  margin-top: 25px;
}

.registration-language-selector {
  margin-top: 25px;
}

.language-selector .lang-link {
  color: #ccc;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 4px;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.language-selector .lang-link:hover {
  color: #333;
  background-color: #f0f0f0;
}

.language-selector .lang-link.active {
  color: #2a71d0;
  font-weight: bold;
  background-color: #e8f4ff;
}

.language-selector .separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  color: #ccc;
}

select {
    background-color: white !important;
}