.member-nav-container{
  position: relative;
}

/* Login Success Notification */
.popup-login-success-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #4CAF50;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  max-width: 300px;
}

.popup-login-success-notification.show {
  transform: translateX(0);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-icon {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.notification-message {
  font-size: 14px;
  font-weight: 500;
}
.popup-login-box {
  background: #fff;
  padding: 20px; 
  width: 100%;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid #ddd;
}

.popup-login-box h2 {
  text-align: center;
  margin-bottom: 10px;
}

.popup-login-box input {
  width: 100%;
  padding:8px 12px;
  border: 1px solid   #D0D5DD ;
  background:   #FFF ;
  box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
  font-size: 16px;
  font-weight: 400;
  color: #222222;
  line-height: 150%; 
  display: block;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  padding-right: 40px;
}

.password-toggle-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: color 0.2s ease;
}

.password-toggle-btn:hover {
  color: #222222;
}

.password-toggle-btn:focus {
  outline: 2px solid #155AA2;
  outline-offset: 2px;
  border-radius: 2px;
}

.password-toggle-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Default state: show eye icon, hide eye-off icon */
.password-toggle-btn .password-icon-eye {
  display: block;
}

.password-toggle-btn .password-icon-eye-off {
  display: none;
}

/* When password is visible: hide eye icon, show eye-off icon */
.password-toggle-btn.show-password .password-icon-eye {
  display: none;
}

.password-toggle-btn.show-password .password-icon-eye-off {
  display: block;
} 
.popup-login-form-item label{
  font-size: 16px;
  font-weight: 400;
  color: #222222;
  line-height: 150%;
  margin-bottom: 6px;
  display: block;
}
.popup-login-box button[type="submit"], .popup-logout-btn {
  width: 100%;
  padding: 12px 20px;
  cursor: pointer;
  background:#155AA2;
  color:#FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none; 
  font-size: 16px; 
  line-height: 150%;
}
.popup-login-box button[type="submit"]:after, .popup-logout-btn:after{
  width:24px;
  height:24px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url('../assets/img/icon-login.svg') no-repeat center center  ;
  background-size: 16px;
  content: '';
  flex: 0 0 24px;
}
.popup-logout-btn:after{
  background: url('../assets/img/icon-logout.svg') no-repeat center center  ;
}
.popup-login-box button[type="submit"]:hover, .popup-logout-btn:hover {
  background: #0F4073; 
}
.popup-close {
  position: absolute;
  top: 5px; right: 8px;
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
  width: 24px;
  height: 24px;
  background: red;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.popup-error{
  display: none;
}
.popup-error.show {
 
  background: #FBECEB;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;  
  margin-top: 8px;
  padding: 8px;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%; /* 18.2px */
  color: #000;
}

.popup-error.show::before{
  content: '';
  display: block;
  width: 20px;
  flex: 0 0 20px;
  height: 20px;
  background: url('../assets/img/icon-error.svg') no-repeat center center;
  background-size: 20px; 
  border-radius: 50%;
  border: 1px solid #FBECEB; 
  
}

.user-info {
  margin: 15px 0;
}

.user-info p {
  margin: 5px 0;
  font-size: 14px;
}

.user-roles {
display: flex;
flex-direction: column;
gap: 8px;
width: 100%;
}
.user-roles .role-item{
  display: flex;
  padding: 8px 16px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  align-self: stretch;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  background: #E8EFF6;
  color: #155AA2;
}
.role-item {
  display: inline-block;
  background: #007cba;
  color: white;
  padding: 4px 8px;
  margin: 2px; 
  font-size: 12px;
  font-weight: bold;
}
.popup-user-btn {
  background: #007cba;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.popup-user-btn:hover {
  background: #fff;
}

.g-recaptcha {
  margin: 10px 0;
  display: flex;
  justify-content: center;
}
.img-avatar-container{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding:16px;
  background:#F9F9F9;
  flex:0 0 100%;
  width:100%;
}
.popup-login-box-content-title{
  font-size: 16px;
  font-weight: 400;
  color: #222222; 
  line-height: 150%;
  text-align: center;
}
.popup-login-box-content{
  gap: 20px;
}
#popup-login-form{
  width:100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.popup-login-box-username{
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%;
}
.popup-login-box-userinfo{
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.popup-login-box-email{
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
}
#popup-login-overlay.popup-active{ 
  position: fixed; 
  width: 350px;
  z-index: 999;
}

.popup-2fa-item {
  margin-top: 8px;
  display: none !important;
}

.popup-2fa-item.show-2fa {
  display: block !important;
}

.popup-2fa-description {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
  line-height: 1.4;
}

#two_factor_code {
  text-align: center;
  letter-spacing: 4px;
  font-size: 18px;
  font-weight: 600;
}

.forgot-password-wrapper {
  position: relative;
  display: inline-block;
  margin-top: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.forgot-password-link-text {
  color: #155AA2;
  font-size: 14px;
  cursor: pointer; 
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  display: flex;
 
}
.forgot-password-link-text span{
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #155AA2;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;

}
.forgot-password-link-text:hover {
  color: #0F4073;
}

.forgot-password-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #333;
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin-bottom: 8px;
}

.forgot-password-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #333;
}

.forgot-password-tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
