/*
Theme Name:   RJKala Child
Theme URI:    https://rj-woqrdpress.ir
Description:  برای تهیه و استفاده از این قالب به پشتیبانی سایت rj-wordpress.ir یا در صفحه تماس با ما اقدام فرمایید.
Author:       Your Name
Author URI:   https://rj-woqrdpress.ir
Template:     woodmart
Version:      1.1.2
*/
/* 🔹 استایل فرم ورود/ثبت‌نام */
.login-register-wrapper {
  max-width: 400px;
  margin: 50px auto;
  padding: 30px;
  padding-bottom: 10px !important;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  background: #fff;
  direction: rtl;
}

.login-register-wrapper h2 {
  text-align: center;
  margin-bottom: 20px;
}

.login-register-wrapper form {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.login-register-wrapper input {
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  text-align: right;
}

.login-register-wrapper input::placeholder {
  font-size: 12px;
  color: #aaa;
}

.form-submit-btn {
  padding: 12px;
  border: none;
  background-color: #EF4056;
  color: white;
  border-radius: 8px;
  font-size: 16px;
  transition: background-color 0.3s ease;
  width: 100%;
  margin-top: 10px;
}

.form-submit-btn:hover:not(:disabled) {
  background: var(--wd-primary-color)!important;
  color:var(--e-global-color-ba1f776)!important;
  opacity: 0.8;
  cursor: pointer;
}

.form-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--wd-primary-color)!important;
  color:var(--e-global-color-ba1f776)!important;
}

.login-register-wrapper .tab {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  color: #333;
  background-color: #fcfcfc;
  cursor: pointer;
  font-size: 16px;
  border-radius: 8px 8px 0 0;
  transition: opacity 0.2s ease;
}

.tab-btn.active {
  background-color: #EF4056;
  color: white;
  font-weight: bold;
}

/* وقتی تب فعال است، هاور تاثیری ندارد */
.tab-btn.active:hover {
  background-color: #EF4056 !important;
  color: white !important;
  cursor: pointer;
}

/* تب‌های غیر فعال در هاور */
.tab-btn:not(.active):hover {
  background-color: #fcfcfc; /* یا همان رنگ پیش‌فرض */
  color: #333;
  cursor: pointer;
}


.password-wrapper {
  position: relative;
}

.password-wrapper input {
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.password-wrapper .show-password-input {
  position: absolute;
  top: 40%;
  left: 10px;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-wrapper .show-password-input svg {
  stroke: #666;
  width: 18px;
  height: 18px;
  transition: stroke 0.2s ease, opacity 0.2s ease;
  opacity: 0.5;
}

.password-wrapper .show-password-input.active svg {
  opacity: 1;
}

/* 🔹 پیام‌های ووکامرس */
.woocommerce-notices-wrapper {
  margin: 20px auto;
  max-width: 400px;
  padding: 0 15px;
  direction: rtl;
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  border-radius: 6px;
  padding: 15px 15px 15px 50px;
  color: #856404;
  font-size: 15px;
  position: relative;
  list-style: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  line-height: 1.6;
}

.woocommerce-error::before,
.woocommerce-info::before,
.woocommerce-message::before {
  content: "\f06a";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 15px;
  top: 14px;
  font-size: 14px;
  color: #ff9900;
}

.woocommerce-password-hint { display: none !important; }

.woocommerce-password-strength {
  font-size: 14px;
  border-radius: 6px;
  padding: 10px 14px;
  font-weight: 500;
  text-align: right;
  margin-bottom: 10px;
}

.woocommerce-password-strength.bad { background-color:#ffe5e5; color:#b70000; display:none; }
.woocommerce-password-strength.good { background-color:#fff6d6; color:#8a6d00; }
.woocommerce-password-strength.strong { background-color:#e0ffe5; color:#007c2f; }

.woocommerce-password-strength + .form-submit-btn { margin-top: 10px !important; }

.lost_reset_password {
  max-width: 400px;
  width: 400px;
  margin: 50px auto;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  background: #fff;
  direction: rtl;
}

.forgot-password-link { margin-top: 15px; text-align:center; }
.forgot-password-link a {
  color:#555;
  font-size:14px;
  text-decoration:none;
  transition: color 0.3s ease;
}
.forgot-password-link a:hover { color:#EF4056; text-decoration:none; }
