/* auth-modal.css: Modern, responsive design for login/signup modal popup */

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34, 34, 34, 0.45);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

/* Modal Content */
/* .modal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(44, 44, 44, 0.18);
  max-width: 400px;
  width: 100%;
  padding: 32px 28px 24px 28px;
  position: relative;
  animation: modalFadeIn 0.3s;
} */
 .modal-content {
  background: #fff;
  border-radius: 18px; /* curve all corners */
  box-shadow: 0 8px 32px rgba(44, 44, 44, 0.18);
  max-width: 400px;
  width: 100%;
  max-height: 90vh;     /* limit height to viewport */
  overflow-y: auto;     /* enable scroll inside modal */
  padding: 28px;
  position: relative;
  animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modal Header */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}
.modal-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  /* color: #5b43f7; */
  color: rgb(162, 153, 221);
  margin: 0;
}
.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}
.close-btn:hover {
  color: #000;
}
#offcanvasMenu .close-btn:hover{
  color: #fff;
}
/* Modal Tabs */
.modal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.tab-btn {
  flex: 1;
  background: #f3f3fa;
  border: none;
  border-radius: 8px 8px 0 0;
  padding: 10px 0;
  font-weight: 600;
  /* color: #5b43f7; */
  color: rgb(162, 153, 221); 
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.tab-btn.active {
/* background-color: rgb(162, 153, 221);   */
background: #36C6F5;
  color: #fff;
}

/* Auth Forms */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  
}
/* .auth-form {
  position: fixed;             /* stays on screen */
  top: 20px;                   /* distance from top */
  right: 20px;                 /* stick to right side */
  width: 380px;                /* adjust width */
  max-height: 90vh;            /* limit height */
  overflow-y: auto;            /* scroll inside */
  background: #fff;            /* white background */
  padding: 20px;               /* spacing */
  border-radius: 20px;         /* ✅ all corners curved */
  box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* shadow effect */
  z-index: 1000;               /* above everything */
} */



.auth-form label {
  font-weight: 500;
  color: #222;
  margin-bottom: 2px;
}
/* .auth-form input[type="email"],
.auth-form input:focus {
  border-color: #5b43f7;
  outline: none;
} */

    
.password-field-wrapper {
  position: relative;
  display: flex;
  #logoutBtn:hover {
    background: #3d2bb7;
  align-items: center;
}
.password-input {
  flex: 1;
}
.toggle-password {
  position: absolute;
  /* right: 10px; */
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.2rem;
    color: #888; /* Set eye icon color */
  cursor: pointer;
  padding: 0 4px;
}

/* Error Message */
.error-msg {
  font-size: 0.98rem;
  color: #e53e3e;
  min-height: 18px;
  margin-top: 2px;
}

/* Forgot Link */
.forgot-link {
  font-size: 0.98rem;
  color: #5b43f7;
  text-decoration: none;
  margin-bottom: 8px;
  align-self: flex-end;
  cursor: pointer;
}
.forgot-link:hover {
  text-decoration: underline;
}

/* Buttons */
.auth-form button,
button,
.auth-form button[type="submit"],
.auth-form button[type="button"] {
  background: rgb(162, 153, 221);
  color: #fff;
  border: none;
  border-radius: 13px;
  padding: 12px 0;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.auth-form button:hover,
button:hover,
.auth-form button[type="submit"]:hover,
.auth-form button[type="button"]:hover {
  background: initial;
  color: initial;
}
}

/* Social Login */
.social-login {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
/* Specific hover for Sign In button in login popup */
/* #loginForm button[type="submit"]:hover {
  background-color: #19253a !important;
  color: #fff !important;
} */

.social-btn {
  flex: 1;
  background: #f3f3fa;
  color: #222;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 0;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.social-btn:hover {
  background: #e0e0f7;
  color: #5b43f7;
}

/* Password Policy */
.password-policy {
  background: #f8f8fc;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 8px;
  color: #6b7280;
  font-size: 0.95rem;
}
.password-policy ul {
  margin: 6px 0 0 18px;
  padding: 0;
}

/* Responsive */
@media (max-width: 500px) {
  .modal-content {
    max-width: 98vw;
    padding: 18px 8px 12px 8px;
  }
  .modal-header h2 {
    font-size: 1.2rem;
  }
}

/* User Menu & Logout Container */

#userMenu {
  display: flex;
  align-items: center;
  gap: 12px;
}
#userMenu .user-avatar {
  width: 44px;
  height: 44px;
  background: #161e31;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 20px;
}
#userDropdown {
  display: none;
  position: absolute;
  top: 32px;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  padding: 16px 18px;
  min-width: 180px;
}
#userDropdown button {
  background: none;
  border: none;
  color: #222;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 0;
  margin-top: 8px;
}

/* Hide modal by default */
.modal-overlay[style*="display:none"] {
  display: none !important;
}
.otp-btn {
  /* background-color: rgb(162, 153, 221); default */
  background-color: #36C6F5;
  color: #fff;
  border: none;
  border-radius: 13px;
  font-weight: 600;
  padding: 9px 20px;
  cursor: pointer;
  /* transition: background-color 0.3s ease; smooth hover */
  /* transition: background 0.2s; */
}

/* .otp-btn:hover {
  background-color: rgb(64, 72, 85);
} */

.verify-btn{
  /* background-color: rgb(162, 153, 221);  */
  background-color:  #36C6F5;
  color: #fff;
  /* border: none; */
  border-radius: 13px;
  font-weight: 600;
  padding: 9px 20px;
  cursor: pointer;
  /* transition: background-color 0.3s ease; smooth hover */
  /* transition: background 0.2s; */

}
.act-btn{
z-index: 1000; padding: 09px 20px;
color: #fff;
border: none; 
/* background-color: rgb(162, 153, 221);  */
background-color: #36C6F5;
color: #fff;
  /* border: none; */
border-radius: 13px;
font-weight: 600;
padding: 9px 20px;
cursor: pointer;
  /* transition: background-color 0.3s ease; smooth hover */
/* transition: background 0.2s; */
width: fit-content;
margin: auto;
}
.sendotp-btn{
  /* background-color: rgb(162, 153, 221); default */
  background-color: #36C6F5;
  color: #fff;
  border: none;
  border-radius: 13px;
  font-weight: 600;
  padding: 9px 20px;
  cursor: pointer;
}
.sendotp-btn:hover{
    /* background-color: rgb(64, 72, 85); */
}
.otpverify-btn{
  /* background-color: rgb(162, 153, 221);  */
  background-color: #36C6F5;
  color: #fff;
  /* border: none; */
  border-radius: 13px;
  font-weight: 600;
  padding: 9px 20px;
  cursor: pointer;
  border: none;
  width: fit-content;
  margin: auto;
}
.resetpws-btn{
   /* background-color: rgb(162, 153, 221);  */
   background-color: #36C6F5; 
  color: #fff;
  /* border: none; */
  border-radius: 13px;
  font-weight: 600;
  padding: 9px 20px;
  cursor: pointer;
  margin-top:16px;
  border: none;
  width: fit-content;
  margin: auto;
}
.main-login-btn{
  position: absolute; 
  top: 20px;
  right: 100px;
  height: 48px;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000; 
  padding: 09px 20px; 
  background: #36C6F5; 
  color: #fff;
  border: none;
   border-radius: 50%;
    font-weight: 600; 
    cursor: pointer; 
    transition: background 0.2s,
   color 0.2s;
}
/* .main-login-btn:{
  background-color: rgb(64, 72, 85);
} */
/* .main-login-btn:hover{ 
    background-color: rgb(64, 72, 85);
 }*/

.back-btn {
    background-color: #36C6F5;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    padding: 9px 20px;
    cursor: pointer;
    margin-left: 8px;
}

    .back-btn:hover {
        background-color: #b3b3b3;
    }
#authModal .modal-content{
  max-height: 93vh;
  overflow-y: auto;
  height: fit-content;
}