/* blocks/signup-form/style.css */

.memberstack-signup-form,
.memberstack-signup-form-preview {
  max-width: 400px;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
}

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

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

.memberstack-signup-form input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.memberstack-signup-form input:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 1px #0073aa;
}

.memberstack-button {
  width: 100%;
  padding: 10px;
  background: #0073aa;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.memberstack-button:hover {
  background: #005177;
}

.memberstack-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.memberstack-signup-form-editor {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 4px;
}

/* Inspector control styles */
.custom-fields-selection {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e2e4e7;
}

.memberstack-signup-form .form-group {
  position: relative;
  transition: all 0.2s ease;
}

.memberstack-signup-form .form-group:hover {
  background: rgba(0, 0, 0, 0.02);
}

.custom-field-option {
  background: #fff;
  transition: all 0.2s ease;
}

.custom-field-option:hover {
  background: #f8f9fa;
}

.form-group[draggable="true"] {
  cursor: move;
}

.form-group[draggable="true"]::before {
  content: "⋮";
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 20px;
}

.form-group.dragging {
  opacity: 0.5;
  border: 2px dashed #0073aa;
}

.form-group.drag-over {
  border-top: 2px solid #0073aa;
}

.remove-field-button {
  position: absolute;
  right: 8px;
  top: 8px;
  padding: 2px 6px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.form-group:hover .remove-field-button {
  opacity: 1;
}

.field-order-item {
  transition: background-color 0.2s ease;
}

.field-order-item:hover {
  background-color: #f8f9fa !important;
}

.field-order-item.is-dragging {
  background-color: #e9ecef;
  opacity: 0.8;
}

.components-drop-zone__provider {
  height: auto !important;
}

.memberstack-button {
  width: 100%;
  padding: 10px;
  background: #0073aa;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 16px;
}

.memberstack-button:hover {
  background: #005177;
}

.memberstack-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.field-order-item .components-drag-handle {
  cursor: move;
  color: #757575;
}

.field-order-item .components-drag-handle:hover {
  color: #007cba;
}

.memberstack-login-form,
.memberstack-login-form-preview,
.memberstack-signup-form,
.memberstack-signup-form-preview {
  margin: 20px auto;
  max-width: 400px;
}

.memberstack-login-form .form-group,
.memberstack-signup-form .form-group {
  margin-bottom: 15px;
}

.memberstack-login-form label,
.memberstack-signup-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.memberstack-login-form input,
.memberstack-signup-form input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.memberstack-login-form input:focus,
.memberstack-signup-form input:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 1px #0073aa;
}

.memberstack-button {
  width: 100%;
  padding: 10px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.memberstack-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Field ordering styles */
.field-order-list {
  margin: 10px 0;
}

/* Facebook Button */
.social-login-button.facebook {
  border-color: #1877f2;
  color: #1877f2;
}

.social-login-button.facebook:hover {
  background-color: #1877f2;
  color: white;
}

.social-login-button.facebook:before {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%231877F2" d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/></svg>');
}

/* LinkedIn Button */
.social-login-button.linkedin {
  border-color: #0077b5;
  color: #0077b5;
}

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

.social-login-button.linkedin:before {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%230077B5" d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/></svg>');
}
