#wpl-popup.wpl-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#wpl-popup.wpl-popup * {
  overflow: visible !important;
}

body.wpl-sign-show #wpl-popup.wpl-popup {
  display: block;
}

#wpl-popup .wpl-popup-mask {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 9998;
}

#wpl-popup .wpl-popup-container {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  max-width: 90vw;
  background-color: var(--wpl-popup-bg-color, #fff);
  background-image: var(--wpl-popup-bg-image, none);
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  z-index: 9999;
  padding: 50px 30px 40px;
  box-sizing: border-box;
  transition: height 0.3s ease;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

#wpl-popup .wpl-popup-close {
  position: absolute;
  top: 12px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 0px;
}
#wpl-popup .wpl-popup-close:hover {
  color: #333;
  background: none;
}

#wpl-popup .wpl-tabs {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
}

#wpl-popup .wpl-tab-btn {
  flex: 1;
  padding: 12px 0;
  font-weight: 600;
  font-size: 16px;
  color: #666;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

#wpl-popup .wpl-tab-btn.active, .wpl-tab-btn:hover {
  color: var(--wpl-tab-active-color, #0073e6);
  border-color: var(--wpl-tab-active-color, #0073e6);
  font-weight: 700;
  background: none;
}

#wpl-popup .wpl-contents {
  flex-grow: 1;
  position: relative;
  overflow: hidden;
}

#wpl-popup .wpl-content {
  display: none;
  min-height: 300px;
  animation: fadeIn 0.3s ease forwards;
}

#wpl-popup .wpl-content.active {
  display: block;
}

#wpl-popup .wpl-content input[type="text"],
#wpl-popup .wpl-content input[type="email"],
#wpl-popup .wpl-content input[type="password"] {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

#wpl-popup .wpl-content input[type="text"]:focus,
#wpl-popup .wpl-content input[type="email"]:focus,
#wpl-popup .wpl-content input[type="password"]:focus {
  border-color: #0073e6;
  outline: none;
}

.wpl-content button, #wpl-popup .well-popup-google-login-btn {
  display: block;
  box-sizing: border-box;
  text-align: center;
  cursor: pointer;
  background-color: var(--wpl-button-bg-color, #0073e6);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  width: 100%;
  margin-top: 8px;
  text-decoration:none;
}

.wpl-content button:hover:not(:disabled) {
  background-color: var(--wpl-button-hover-color, #005bb5);
}

.wpl-content button:disabled {
  background-color: #a0a0a0;
  cursor: not-allowed;
}

#wpl-popup .wpl-register-email-row,
#wpl-popup .wpl-forgot-captcha-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 0px;
}

#wpl-popup .wpl-register-email-row input,
#wpl-popup .wpl-forgot-captcha-row input {
  flex: 1;
  margin-bottom: 0;
  height: 38px;
  padding: 0 10px;
  box-sizing: border-box;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.wpl-register-email-row button,
.wpl-forgot-captcha-row button {
  flex-shrink: 0;
  padding: 0 20px;
  height: 38px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  background-color: #0073aa;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 0px;
}

.wpl-register-email-row button:hover,
.wpl-forgot-captcha-row button:hover {
  background-color: #005177;
}

#sform input,
#wpl-register-form input,
#wpl-reset-form input {
  margin-bottom: 10px;
}

#wpl-popup .wpl-register-email-row input,
#wpl-popup .wpl-forgot-captcha-row input {
  margin-bottom: 0;
}

#wpl-send-captcha,
#wpl-send-pass-captcha {
  width: auto;
  padding: 8px 16px;
  margin-bottom: 15px;
  background-color: #00aaff;
  font-weight: 500;
}

#wpl-send-captcha:hover,
#wpl-send-pass-captcha:hover {
  background-color: #008ecc;
}

#wpl-popup .wpl-sign-tips {
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  color: red;
  font-size: 14px;
  text-align: center;
  height: auto;
  line-height: 29px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  line-height: 14px;
}
#wpl-popup .wpl-sign-tips.show {
  opacity: 1;
  pointer-events: auto;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

#wpl-popup .separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 10px 0;
}

#wpl-popup .separator-line {
    flex: 1;
    border: 0;
    height: 1px;
    background: #ccc;
}

#wpl-popup .separator-text {
    padding: 0 10px;
    color: #666;
    font-weight: bold;
}
