/* Memberstack Divi Integration Frontend Styles */

/* Gated Content Module */
.et_pb_memberstack_gated_content .memberstack-content-area {
  width: 100%;
}

.et_pb_memberstack_gated_content .memberstack-fallback-message {
  padding: 20px;
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-top: 20px;
  text-align: center;
  color: #666;
}

/* Login Form Module */
.et_pb_memberstack_login_form form {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.et_pb_memberstack_login_form .form-group {
  margin-bottom: 15px;
}

.et_pb_memberstack_login_form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.et_pb_memberstack_login_form input[type="email"],
.et_pb_memberstack_login_form input[type="password"],
.et_pb_memberstack_login_form input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.et_pb_memberstack_login_form button {
  width: 100%;
  padding: 12px;
  background: #2ea3f2;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  margin-top: 10px;
}

.et_pb_memberstack_login_form button:hover {
  background: #0c71c3;
}

/* Social login buttons */
.et_pb_memberstack_login_form .social-login-separator {
  display: flex;
  align-items: center;
  margin: 20px 0;
  width: 100%;
}

.et_pb_memberstack_login_form .social-login-separator:before,
.et_pb_memberstack_login_form .social-login-separator:after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background: #ddd;
}

.et_pb_memberstack_login_form .social-login-separator span {
  padding: 0 10px;
  color: #999;
}

.et_pb_memberstack_login_form .social-login-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.et_pb_memberstack_login_form .social-login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  border-radius: 4px;
  border: none;
  color: white;
  font-size: 14px;
  cursor: pointer;
}

.et_pb_memberstack_login_form .social-login-button.google {
  background-color: #4285f4;
}

.et_pb_memberstack_login_form .social-login-button.facebook {
  background-color: #3b5998;
}

.et_pb_memberstack_login_form .social-login-button.github {
  background-color: #333;
}

.et_pb_memberstack_login_form .social-login-button.linkedin {
  background-color: #0077b5;
}

/* Signup Form Module - add this to divi-frontend.css */
.et_pb_memberstack_signup_form form {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.et_pb_memberstack_signup_form .form-group {
  margin-bottom: 15px;
}

.et_pb_memberstack_signup_form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.et_pb_memberstack_signup_form input[type="email"],
.et_pb_memberstack_signup_form input[type="password"],
.et_pb_memberstack_signup_form input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.et_pb_memberstack_signup_form button {
  width: 100%;
  padding: 12px;
  background: #2ea3f2;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  margin-top: 10px;
}

.et_pb_memberstack_signup_form button:hover {
  background: #0c71c3;
}

/* Social signup buttons */
.et_pb_memberstack_signup_form .social-login-separator {
  display: flex;
  align-items: center;
  margin: 20px 0;
  width: 100%;
}

.et_pb_memberstack_signup_form .social-login-separator:before,
.et_pb_memberstack_signup_form .social-login-separator:after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background: #ddd;
}

.et_pb_memberstack_signup_form .social-login-separator span {
  padding: 0 10px;
  color: #999;
}

.et_pb_memberstack_signup_form .social-login-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.et_pb_memberstack_signup_form .social-login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  border-radius: 4px;
  border: none;
  color: white;
  font-size: 14px;
  cursor: pointer;
}

.et_pb_memberstack_signup_form .social-login-button.google {
  background-color: #4285f4;
}

.et_pb_memberstack_signup_form .social-login-button.facebook {
  background-color: #3b5998;
}

.et_pb_memberstack_signup_form .social-login-button.github {
  background-color: #333;
}

.et_pb_memberstack_signup_form .social-login-button.linkedin {
  background-color: #0077b5;
}

/* Profile Form Module */
.et_pb_memberstack_profile form {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.et_pb_memberstack_profile .form-group {
  margin-bottom: 15px;
}

.et_pb_memberstack_profile label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.et_pb_memberstack_profile input[type="email"],
.et_pb_memberstack_profile input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.et_pb_memberstack_profile button {
  width: 100%;
  padding: 12px;
  background: #2ea3f2;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  margin-top: 10px;
}

.et_pb_memberstack_profile button:hover {
  background: #0c71c3;
}

/* Profile image styling */
.et_pb_memberstack_profile .ms-profile-image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.et_pb_memberstack_profile .ms-profile-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 10px;
  border: 2px solid #ddd;
}

.et_pb_memberstack_profile .ms-profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.et_pb_memberstack_profile .ms-profile-upload {
  background: #f5f5f5;
  border: 1px solid #ddd;
  color: #333;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.et_pb_memberstack_profile .ms-profile-upload:hover {
  background: #e5e5e5;
}

/* Profile Module with separate image section and form */
.et_pb_memberstack_profile .ms-divi-profile-wrapper {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* Profile image container - now outside the form */
.et_pb_memberstack_profile .ms-profile-image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.et_pb_memberstack_profile .ms-profile-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 10px;
  border: 2px solid #ddd;
}

.et_pb_memberstack_profile .ms-profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.et_pb_memberstack_profile .ms-profile-upload {
  background: #f5f5f5;
  border: 1px solid #ddd;
  color: #333;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.et_pb_memberstack_profile .ms-profile-upload:hover {
  background: #e5e5e5;
}

/* Profile form - now separate from image section */
.et_pb_memberstack_profile .ms-profile-form {
  width: 100%;
}

.et_pb_memberstack_profile .form-group {
  margin-bottom: 15px;
}

.et_pb_memberstack_profile label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.et_pb_memberstack_profile input[type="email"],
.et_pb_memberstack_profile input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.et_pb_memberstack_profile button[type="submit"] {
  width: 100%;
  padding: 12px;
  background: #2ea3f2;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  margin-top: 10px;
}

.et_pb_memberstack_profile button[type="submit"]:hover {
  background: #0c71c3;
}

/* Memberstack Button Module */
.et_pb_memberstack_button .ms-divi-button {
  display: inline-block;
  padding: 12px 24px;
  background: #2ea3f2;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  transition: all 0.3s ease;
  line-height: 1.5em;
  text-decoration: none;
}

.et_pb_memberstack_button .ms-divi-button:hover {
  background: #0c71c3;
  color: white;
}

/* Button variations for different actions */
.et_pb_memberstack_button [data-ms-action="logout"] {
  background-color: #f44336;
}

.et_pb_memberstack_button [data-ms-action="logout"]:hover {
  background-color: #d32f2f;
}

.et_pb_memberstack_button [data-ms-modal="login"],
.et_pb_memberstack_button [data-ms-modal="signup"] {
  background-color: #2ea3f2;
}

.et_pb_memberstack_button [data-ms-modal="login"]:hover,
.et_pb_memberstack_button [data-ms-modal="signup"]:hover {
  background-color: #0c71c3;
}

.et_pb_memberstack_button [data-ms-modal="profile"] {
  background-color: #4caf50;
}

.et_pb_memberstack_button [data-ms-modal="profile"]:hover {
  background-color: #388e3c;
}

.et_pb_memberstack_button [data-ms-modal="forgot-password"] {
  background-color: #ff9800;
}

.et_pb_memberstack_button [data-ms-modal="forgot-password"]:hover {
  background-color: #f57c00;
}

/* Button wrapper alignment */
.et_pb_memberstack_button .ms-divi-button-wrapper {
  text-align: center;
}

.et_pb_memberstack_button .ms-divi-button-wrapper.left {
  text-align: left;
}

.et_pb_memberstack_button .ms-divi-button-wrapper.right {
  text-align: right;
}
